chore(canvas/chat): delete historyHydration.ts now that PR-C-2 migrated callers (RFC #2945 PR-C-3) #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/rfc-2945-pr-c-3-delete-historyhydration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on PR #4. After PR-C-2 merges, this rebases cleanly onto staging.
PR-C-2 migrated canvas's
loadMessagesFromDBfrom/activityto/chat-history. The TS-side row-mapping helpers inhistoryHydration.ts(activityRowToMessages,ActivityRowForHydration) had exactly one consumer — ChatTab'sloadMessagesFromDB— and PR-C-2 removed it.Verification before deletion
canvas/srcforhistoryHydration/activityRowToMessages/ActivityRowForHydration: only the file itself and its own test.canvas/src/components/tabs/chat/index.tsbarrel does not re-export historyHydration symbols. Onlymessage-parser.tsis re-exported, which is independent.message-parser.ts(the parsershistoryHydration.tswraps) stays — still load-bearing for live A2A WebSocket messages inChatTab.tsx,AgentCommsPanel.tsx,canvas-events.ts.npx tsc --noEmit -p .— clean.npx vitest run src/components/tabs/— 242/242 green (one fewer test file than before;historyHydration.test.tsis gone).Why now (not after a longer observation window)
The parsers
historyHydration.tsdepended on are still in tree viamessage-parser.ts. Any unforeseen live-message consumer ofactivityRowToMessageswould have already failed at PR-C-2 merge time (TypeScript would have flagged the missing import). Removing the file itself is purely dead-code cleanup — no behavioral change.Stack
Merge PR #4 first; this one auto-retargets to staging.
🤖 Generated with Claude Code
Hongming-approved (chat 2026-05-07): RFC #2945 PR-C-3 canvas/chat-server delete historyHydration.ts now stale.