Skip to content

refactor(console): remove web console components nothing reaches - #6772

Merged
hurttlocker merged 1 commit into
mainfrom
del/web-console
Nov 24, 2026
Merged

hurttlocker merged 1 commit into
mainfrom
del/web-console

Conversation

@hurttlocker

Copy link
Copy Markdown
Collaborator

Removes web console components and hooks that nothing in production reaches. The owner cut them on 2026-11-24.

How "unreachable" was decided

  • Roots. The walk starts from every production entry point: Next pages, layouts and routes, middleware, src/ws-server.ts, the CLI, scripts/, native/, src-tauri/, crates/, apps/ and config files.
  • Path strings. Files named by path in a non-test source also count as roots. This covers the server bundle list, Rust tests and .mcp.json.
  • Edges. Static imports, import() with a literal path, require and require.resolve.
  • Not counted. Template-literal dynamic imports. None of them could resolve into src/components.

Removed (20 files, plus the 10 tests that covered only them)

  • CodexCliUpdateNotice, IssueLinkPicker, the onboarding RuntimeRow and the orchestrator ModePicker.
  • The PR panel's usePrCheckout and check-status, the chat read-state, and spawned-agents-hover-card-utils.
  • ChatActionCard, TurnSummaryCard, composer-mode-storage, toolClassifier, TranscriptPeek, TurnFilePreview and transcript/turns.
  • GithubReadStatus.
  • use-experimental-chat, use-experimental-canvas, use-orchestrator-model, use-remote-flag, and packet-state-colors.

TS: −3,483 lines. Rust: none. None of this code was loaded at server startup. No loops or timers removed.

use-experimental-canvas is also removed in #6771. Both deleting it rebases cleanly.

Kept (36 unreachable console files, about 4.2k lines), and why

Real-path tests of live behaviour use these console helpers as their reference:

  • thoughts/utils.ts (mergeTranscriptEntries) is the oracle for the native transcript merge corpus (next-merge-differential-real-path).
  • chat-panel/resolve-display-messages.ts is the display order that owner-chat-chronology-real-path checks.
  • The use-orchestrator-stream helpers, history-transcript, replay-cursor and the control-room helpers serve model attribution, compaction, replay, quota fallback and cloud job tests.

Removing them means rewriting those tests against native or server code. That is a separate change.

Verification

Rebased on 67b5845cd.

  • npm run typecheck:fast, tsc -p cli/tsconfig.json and ESLint on the changed files pass.
  • The nine enumerating real-path suites (ci: run the enumerating real-path suites on every merge group #6768) pass against an o8d built from this branch, as do next-merge-differential, owner-chat-chronology, orchestrator-model-attribution and real-path-seams, with two exceptions:
    • 9 cases in orchestrator-model-attribution-real-path fail identically on unchanged main.
    • 2 "seam G" cases in real-path-seams fail identically on unchanged main.
    • This PR touches neither file, so the merge queue does not select them.
  • npm run verify:ci: Lint, Type Check, Test Classification, Server Bundle Size, Security Audit and Governance Smoke pass.
    • Hermetic Unit Tests found one stale allowlist entry for the deleted composer-mode-storage.ts in storage-ownership.test.ts. It is fixed, and src/components/desktop now passes: 412 of 412.
    • Integration (changed files) fails locally on one gate only: api-front-door requires 15 GiB free disk, and this machine has less. That suite passed in the run above with the gate lowered.

🤖 Generated with Claude Code

Removes 20 web console components and hooks that no page, route, bundle
entry, script or native source reaches, with the 10 tests that covered
only them: the Codex CLI update notice, issue link picker, runtime row,
mode picker, PR checkout panel, chat read state, spawned-agent hover
card, chat action and turn summary cards, composer mode storage, tool
classifier, transcript peek and file preview, the GitHub read status
badge, the experimental chat, canvas, model and remote flags, and
packet state colors.

Console helpers that real-path tests use as the reference for live
behaviour stay: the transcript merge oracle for the native merge corpus,
the display resolver, and the stream, history and model helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hurttlocker hurttlocker added the tests-removed-ok Human-reviewed: test deletions/assertion loss are intentional label Nov 24, 2026
@github-actions github-actions Bot added the size/XL Pull request with XL diff size label Nov 24, 2026
@github-actions

Copy link
Copy Markdown

📝 o8.run docs may need updating

This PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):

  • The Brain the-brain — tracks src/lib/cortex/qa/compose-prompts.test.ts, src/lib/cortex/qa/compose-prompts.ts, src/lib/cortex/indexer/index.ts

Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited.

@github-actions

Copy link
Copy Markdown

🔍 PR Review Bot

Metric Value
Files changed 35
Additions +2
Deletions -3494
New files 0

⚠️ Large files (>300 lines changed)

  • src/components/desktop/IssueLinkPicker.tsx — +0/-450
  • src/components/desktop/thoughts/chat-panel/ChatActionCard.tsx — +0/-398
  • src/components/desktop/thoughts/chat-panel/TurnSummaryCard.tsx — +0/-324

Note: This PR touches 35 files. Consider splitting into smaller PRs.


Automated review — CI workflow

@hurttlocker
hurttlocker added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 2cf9aa8 Nov 24, 2026
34 of 35 checks passed
@hurttlocker
hurttlocker deleted the del/web-console branch November 24, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Pull request with XL diff size tests-removed-ok Human-reviewed: test deletions/assertion loss are intentional

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant