Skip to content

Feat/global chat#88

Merged
mhersson merged 6 commits into
mainfrom
feat/global-chat
May 15, 2026
Merged

Feat/global chat#88
mhersson merged 6 commits into
mainfrom
feat/global-chat

Conversation

@mhersson
Copy link
Copy Markdown
Owner

No description provided.

mhersson added 6 commits May 15, 2026 06:49
- Schema migrations and monotonic seq with UNIQUE (session_id, seq)
- Per-session append mutex so unrelated sessions skip the global lock
- Singleflight cold-open lets distinct sessions call StartChat in parallel
- setRehydrationActive store + cache writes share one critical section
- SSE hub with per-session subscriber cap and reattach
- Idle reaper transitions warm-idle to cold under quota
- /api/chats CRUD + messages, SSE stream, end/reopen/delete
- chat_rehydration_complete MCP tool gated on X-CM-Chat-Session
- Runner reconciliation on startup syncs tracker against active sessions
- Chat live-data fan-out via in-process bus to SSE consumers
- Up to 4 simultaneously open chats with LRU eviction toast
- Drag-and-drop from sidebar onto pane drop overlays
- Per-pane resize, focus, accent stripe from idColor hash
- Tab title stays at ContextMatrix; last_chat_id persisted per pane
- Mobile single-pane mode with the full ChatThread header
- markCardStalled validates the card before persisting
- TransitionTo and parent auto-transition release writeMu before commit
- Multi-step transitions snapshot per iteration with rollback on failure
- Async pattern matches the existing applyCardMutation contract
- Architecture sections for chat lifecycle, rehydration, runner bridge
- API reference for /api/chats and chat_rehydration_complete
- web/CLAUDE.md covers multi-pane layout, LRU, drag-and-drop
- Gotchas for SSE Firefox abort, MCP header gating, single-writer SQLite
- CLAUDE.md package tree updated for chat, clock, gitsync, refresh
- test-race runs the chat, api, mcp packages with -race
- Keeps CI under the timeout budget on the new chat-heavy suite
@mhersson mhersson merged commit 481324e into main May 15, 2026
6 checks passed
@mhersson mhersson deleted the feat/global-chat branch May 15, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant