Repository navigation
feat(room)!: drop the legacy chat message field - #83
Conversation
Quest-Claim: baaca99aa258a041
Chat messages travel only on the room chat window; hang/chat.json carries typing alone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe chat snapshot schema and publisher now carry typing state only. Chat messages use the separate message window. The consumer no longer reads messages from the legacy snapshot field. Tests now check typing cleanup when a catalog entry is removed and repeated message delivery. The chat-window-only plan document was deleted. Merge Risk:
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Closes the quest quest/m1/chat-window-only.md, deleted here.
Problem
Chat messages moved to
@moq/room'schatwindow in room-media, buthang/chat.jsonstill carried a duplicatemessagefield for tabs that predate it. That deploy (fc0dc04) has been live since 2026-11-25, over a day.Approach
serveExtraswrites onlytypingonhang/chat.json.consumeExtrasreads messages only from the window; thewindowed/legacy branch andChatValue.messageare gone.metadata.test.ts: the typing-cleanup test no longer relies onmessage; the "ignores the legacy field" assertion is removed with the field.Impact
ChatValueis module-private;ChatFieldsis unchanged).!; migrate by reloading):hang/chat.jsonno longer carriesmessage; readers ignore it (zod strips unknown keys), so it is reversible by reverting. A tab opened before 2026-11-25 and never reloaded stops showing new tabs' messages, and a broadcast whose catalog lackshang.messages(e.g. such a tab) shows none here.Alternatives
Keep the legacy read longer: rejected, the scheduled day has passed.
Validation
quest gate just checkpasses (Quest validation, fallow, doc-comment check, tsc, Biome, API/app/media tests, including the browser media tests).Models
Size: XS
Implementer: Claude Code, claude-sonnet-5-5, unknown (arm A)
Implementer: Claude Code, claude-sonnet-5-5, unknown (iterate, XS, arm A)
Follow-ups
None.
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: 4e5569f
Base: origin/main at f73ebef
Risk: medium,
the base has no RISK.md to name what is always high or customer-facing, so every change is mediumClassified: medium by default
Risk file: none
Reviewer: Codex, gpt-6.2-sol, low effort
Session:
01a21c8d-4567-7480-a9ef-0c41a57bc93a, round 2Score: 10/10,
The branch’s chat changes are unchanged since the previous review, so the legacy message field can be retired while typing and `hang.messages` delivery continue.Rounds: 2; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none