mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
* 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>