Skip to content

refactor(redesign): legacy sweep — delete proven-dead code from the one-chat era#587

Merged
HomenShum merged 1 commit into
mainfrom
feat/legacy-sweep
Jul 18, 2026
Merged

refactor(redesign): legacy sweep — delete proven-dead code from the one-chat era#587
HomenShum merged 1 commit into
mainfrom
feat/legacy-sweep

Conversation

@HomenShum

Copy link
Copy Markdown
Owner

Summary

Companion cleanup to the completed one-chat unification (A #583 · B #584 · C #586). Every deletion backed by a zero-consumers grep proof from a read-only hunt:

  • ChatSurface: dead branchFromTurnonBranch chain (prop threaded through StreamingAnswer, rendered nothing since feat(redesign): one chat interface — flagship answer is chat-shaped, unified #583), orphaned traceToToolCalls, four dead import groups left by the Phase A 847-line cut.
  • src/features/agents/components/ai/ wrapper layer removed entirely (AiMessage/AiConversation/AiPromptInput + barrel + story): zero runtime importers — FastAgentPanel wires primitives directly; completed answers render the canonical ChatAssistantMessage. Design-system registry + test updated to govern the canonical component's home, with an explicit not.toContain so the dead path cannot silently return.
  • ReproducibleChatPage: latency/cost dedup — banner keeps page identity (tier · model · date); the canonical receipt line is the single telemetry source.

Kept deliberately (hunter-flagged, verified): guard-pinned rd-shell--chat-no-inspector contract marker; backend/frontend sourceUrl twins (by-design pair).

Verification

  • tsc 0 · build clean · 512 tests green across redesign + agents + design-governance + convex suites (incl. rewritten registry test)

🤖 Generated with Claude Code

…ne-chat era

Every deletion backed by a zero-consumers grep proof from a read-only
hunt (Phase-C files excluded — that agent owns them):

- ChatSurface: dead branchFromTurn→onBranch chain (prop threaded through
  StreamingAnswer, rendered nothing since #583), orphaned traceToToolCalls,
  four dead import groups (isStructuredAnswer, ContextMenu*, Tooltip*,
  ResearchStage types) left by the 847-line Phase A cut.
- src/features/agents/components/ai/ wrapper layer removed entirely
  (AiMessage/AiConversation/AiPromptInput + barrel + story): zero runtime
  importers — FastAgentPanel wires primitives directly and completed
  answers render the canonical ChatAssistantMessage. designSystem registry
  + test now govern the canonical component's home, with an explicit
  not.toContain so the dead path cannot silently return.
- ReproducibleChatPage: latency/cost formatting deduplicated — banner
  keeps page identity (tier · model · date); the canonical receipt line
  is the single telemetry source.

Kept deliberately: guard-pinned rd-shell--chat-no-inspector contract
marker; backend/frontend sourceUrl twins (by-design pair).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@HomenShum
HomenShum enabled auto-merge (squash) July 18, 2026 21:08
@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nodebench-ai Ready Ready Preview, Comment Jul 18, 2026 9:14pm

Request Review

@github-actions

Copy link
Copy Markdown

PR size advisory

This PR adds 5125 lines of substantive change. CONTRIBUTING.md defines a soft limit of ~400 LOC.

If the PR is genuinely cohesive (e.g. an architecture map, a generated migration, a deletion of a dead module), no action is needed. Otherwise consider:

  • splitting into 2-3 PRs along independent concerns
  • pre-discussing the architecture change in a GitHub Discussion before merge

This is advisory — it does not block the merge.

@github-actions

Copy link
Copy Markdown

✅ Dogfood Visual QA Gate: PASSED

Check Status
Screenshots 7 captured (pass)
Walkthrough 9 chapters (pass)
Key Frames 9 extracted (pass)
Scribe Steps 8 how-to steps (pass)
Build success
Artifacts

Download the dogfood-evidence-18ddec0 artifact from the Actions tab for full screenshots, frames, and walkthrough video.


Generated by Dogfood QA Gate

@HomenShum
HomenShum merged commit 40514c2 into main Jul 18, 2026
16 checks passed
@HomenShum
HomenShum deleted the feat/legacy-sweep branch July 18, 2026 21:16
@github-actions

Copy link
Copy Markdown

Demo: walkthrough of the surfaces this PR changed is available as a workflow artifact (pr-demo-587) at https://github.com/HomenShum/NodeBenchAI/actions/runs/29661286360

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.

2 participants