Files
opencode-manager/frontend/src/pages
Alexander DrewekeandChris Scott eac09090c6 Fix question prompt not rendering for active session (#325)
* Fix question prompt not rendering for active session

currentQuestion was the first pending question globally across all
sessions. When another session had the first question in the flat list,
the QuestionPrompt would not render for the session being viewed even
though it had its own pending question.

Add getForSession() to the questions context and use it in
SessionDetail to look up questions scoped to the current session.

* test(frontend): cover session-scoped question prompt resolution

The SessionDetail useQuestions mocks did not expose getForSession, so
every page test threw on the new session-scoped lookup. Add it to each
mock and lock in the behaviour with regression coverage: the context
helper resolves questions per session while another session owns the
global current question, and SessionDetail renders the prompt for the
session being viewed.

---------

Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
2026-07-28 19:32:45 -04:00
..