feat: integrate session lifecycle protocol into chat hooks and sidebar#188
Closed
bbsngg wants to merge 1 commit intosplit/d-frontend-scopefrom
Closed
feat: integrate session lifecycle protocol into chat hooks and sidebar#188bbsngg wants to merge 1 commit intosplit/d-frontend-scopefrom
bbsngg wants to merge 1 commit intosplit/d-frontend-scopefrom
Conversation
Wire the session lifecycle protocol (session-accepted, session-busy, session-state-changed) into the frontend chat hooks and sidebar. Chat hooks: - useChatComposerState: queued turn management (enqueue/dequeue/steer/ pause/resume), session scope key tracking, provider-scoped draft persistence, optimistic session creation via custom events - useChatRealtimeHandlers: handle session-accepted/busy/state-changed WebSocket messages, provider-aware message filtering, session filter debug logging - useChatSessionState: provider-scoped message cache reads, session snapshot cache for fast session switching, session load guards Type changes: - Add QueuedTurn types, extend session callback signatures with provider and projectName parameters - ChatInterfaceProps: add onShowAllTasks, nullable onStartWorkspaceQa Sidebar: - Session list uses scope key for React keys - SidebarSessionItem shows provider-aware display - Session list behavior tests added Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
session-accepted/session-busy/session-state-changedWebSocket messages, provider-aware message filteringPart of the session lifecycle PR split (6/6, final). Depends on #184 (foundation) and the frontend scope PR.
Test plan
npx tsc --noEmitpassesnpx vitest run src/components/sidebar/utils/__tests__/sessionListBehavior.test.ts src/components/chat/hooks/__tests__/useChatSessionState.test.tspasses🤖 Generated with Claude Code