Skip to content

feat(room)!: drop the legacy chat message field - #83

Merged
kixelated merged 3 commits into
mainfrom
quest/m1/chat-window-only
Nov 27, 2026
Merged

kixelated merged 3 commits into
mainfrom
quest/m1/chat-window-only

Conversation

@kixelated

@kixelated kixelated commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Closes the quest quest/m1/chat-window-only.md, deleted here.

Problem

Chat messages moved to @moq/room's chat window in room-media, but hang/chat.json still carried a duplicate message field for tabs that predate it. That deploy (fc0dc04) has been live since 2026-11-25, over a day.

Approach

  • serveExtras writes only typing on hang/chat.json.
  • consumeExtras reads messages only from the window; the windowed/legacy branch and ChatValue.message are gone.
  • metadata.test.ts: the typing-cleanup test no longer relies on message; the "ignores the legacy field" assertion is removed with the field.

Impact

  • Public API: none (ChatValue is module-private; ChatFields is unchanged).
  • Wire (breaking for stale tabs, so the title carries !; migrate by reloading): hang/chat.json no longer carries message; 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 lacks hang.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 check passes (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 review after 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 medium

  • Classified: medium by default

  • Risk file: none

  • Reviewer: Codex, gpt-6.2-sol, low effort

  • Session: 01a21c8d-4567-7480-a9ef-0c41a57bc93a, round 2

  • Score: 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

kixelated and others added 2 commits November 27, 2026 02:27
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>
@kixelated kixelated changed the title Drop the legacy chat message field feat(room)!: drop the legacy chat message field Nov 27, 2026
@kixelated
kixelated marked this pull request as ready for review November 27, 2026 10:29
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The 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: Minimal · up to 0aefe

The chat snapshot now carries only typing state, and messages travel through the chat window. Tabs opened before the change and never reloaded stop showing new messages, which the PR explicitly accepts. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(room)!: drop the legacy chat message field" matches the main change. The PR removes the duplicate message field from hang/chat.json, so hang/chat.json carries only typing and mes…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states that the PR closes the chat-window-only quest and removes the legacy chat message field from hang/chat.json. It names the affected files and functions (serveExtras, consumeExtra…
Full details: Title check

Explanation

The title "feat(room)!: drop the legacy chat message field" matches the main change. The PR removes the duplicate message field from hang/chat.json, so hang/chat.json carries only typing and messages come from the chat window. The ! marks the wire change as breaking for stale tabs, which the description and objectives both state.

Full details: Description check

Explanation

The description states that the PR closes the chat-window-only quest and removes the legacy chat message field from hang/chat.json. It names the affected files and functions (serveExtras, consumeExtras, ChatValue.message, metadata.test.ts), so it relates directly to the changeset.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 797e4285-eaf0-45c8-9e6d-6a45a5310575
Commits

Reviewing files that changed from the base of the PR and between 97613b1 and 0aefe54.

Files selected for processing: 3

  • app/src/room/metadata.test.ts
  • app/src/room/metadata.ts
  • quest/m1/chat-window-only.md
Files with no reviewable changes: 1

  • quest/m1/chat-window-only.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kixelated
kixelated merged commit 9466cdc into main Nov 27, 2026
3 checks passed
@kixelated
kixelated deleted the quest/m1/chat-window-only branch November 27, 2026 11:07
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