fix(ui): handle session created SSE events#562
Conversation
Route session.created events through the existing session update handler so sessions emitted by newer OpenCode servers are normalized and stored instead of being logged as unknown SSE events. When a created session is a root session, prepend it to the session pagination id list so the sidebar renders it immediately without waiting for a full session refetch. Child sessions continue to use the existing parent-thread behavior. Validated with npm run typecheck --workspace packages/ui.
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review for latest PR state complete. What I understood Findings Quality Notes
Regression Checks
Validation
Verdict: approve from a gatekeeper perspective, with the type-cast cleanup and direct SSE regression test as follow-up-quality improvements rather than blockers. -- |
Summary
session.createdSSE events through the existing session update handler.Fixes #560
Validation
npm run typecheck --workspace packages/ui