Uh oh!
There was an error while loading. Please reload this page.
chore: remove unused code and brittle tests - #9150
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
There was a problem hiding this comment.
All findings are inline. Common thread: the removals in apps/web/src correctly delete unreferenced exports (verified no remaining consumers at head), but several deleted test blocks were the only coverage of virtualized-scroll and stateful-styling contracts that the production components still implement.
Posted via Macroscope — UI Consistency
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a deletion-focused cleanup with production components, defaults, workflows, and wire contracts left unchanged; active provider-instance behavior is preserved. The main tradeoff is reduced implementation-level test coverage, with only limited compatibility risk for unsupported out-of-tree imports. You can add or adjust custom eligibility rules. Learn more. |
4eb248b to
ea2122aComparet3dotgg
commented
Sep 2, 2026
Note 🤖 GPT-5.6 Sol responding on behalf of Theo @macroscope Please re-evaluate approvability on head |
Just FYI for future @mentions, I'm Re-evaluated at |
t3dotgg
commented
Sep 2, 2026
Note 🤖 GPT-5.6 Sol responding on behalf of Theo @macroscope-app Please rerun the Approvability check on head |
Manual reviews triggered for commit All prior checks · these links stay valid even if you push more commits. |
Rerun initiated. The cited policy does prohibit the static-markup, attribute, callback-wiring, and implementation-mirroring assertions removed here; the Approvability result will update when the check completes. |
Uh oh!
There was an error while loading. Please reload this page.
…e skill snapshots, sticky model defaults, code-block copy fix, tool group scrolling, error report copy) Upstream b8262b4..827345a. Conflicts resolved keep-both: - ProviderCommandReactor: keep fork's model-changed notice + handedOff return, add upstream's refreshWorkspaceSnapshot on session reuse. - Migrations: upstream 044_ClearAutomaticProjectModelDefaults registered as fork id 48 (behind 041-047); its 016 test renumbered 43/44 -> 47/48. - contracts/server + ProviderDriver + ProviderRegistry.test: fork's on-demand listWorkspaceCapabilities coexists with upstream's cached workspaceSnapshots / snapshotForCwd. - composerProviderState: MT Auto guard kept; available branch now uses upstream's buildExplicitProviderOptionSelectionsFromDescriptors. - SidebarChrome: BrandWordmark (MT mark) kept, renders upstream's shared T3Wordmark component for the T3 distro. - markdown-clipboard.test: FakeElement.querySelector handles both the fork's KaTeX annotation selector and upstream's :scope/checkbox forms. - TextGeneration: drop the unused Promise-based TextGenerationService (upstream pingdotgg#9150), keep PullRequestRanking types. Drops fixed: cli/project.ts still called the deleted getAutoBootstrapDefaultModelSelection (project.create no longer seeds a model, per upstream pingdotgg#9164). build-desktop-artifact.test: the winWithoutWslPrebuild expectation now lists the fork's t3-desktop-mcp and app-icons resources like the win case. Backup: backup/mtcode-pre-upstream-sync-20260902.
The nightly merge resolution restored three tests and a block of LegendList mock surface that upstream deleted in pingdotgg#9150 as brittle and unused. None of them is fork work, and no remaining assertion touches the restored mock, so carrying them forward only guarantees the same conflict next nightly in the file that holds the fork's reply-to-block tests. Yield to upstream there. The fork's reply tests are untouched.
The codebase still had unused helpers, compatibility aliases, and tests that exercised dead code or repeated markup and class strings.
This cleanup removes the unused code, stale setup, redundant direct dependencies, old release comments, and tests for dead paths. It removes selected class-string assertions and circular mock assertions while keeping tests for observable behavior.
This deletes five unreferenced marketing assets, totaling 1,255,570 bytes. No repository code references these files, but unknown external links to their public URLs can still exist.
Verification:
vp fmt --checkpassed for 31 changed text and config files.git diff origin/main...HEAD --checkpassed.Changes made by GPT-5.6 Sol in Codex.
Note
Low Risk
Mostly deletions and test loosening; the only API surface change is
ProviderAdapterRegistryShape, which could affect external consumers but in-tree call sites were updated.Overview
This PR is a repo-wide dead-code and test-hygiene pass: it deletes unreferenced helpers, migration-era provider APIs, mobile terminal bootstrap logic, marketing tweet links, and a few direct dependencies that nothing imports anymore.
On the server,
ProviderAdapterRegistrydropslistProvidersandstreamChanges, docs narrow to instance-id routing only, and mocks/tests follow.TextGenerationShape/TextGenerationServicego away in favor ofTextGeneration["Service"].@effect/platform-node-sharedis removed fromapps/server.Mobile loses
resolveTerminalRouteBootstrap(module + tests) and@noble/hashes. Release workflow drops a large block of commented Windows updater manifest merge steps. Web removes many unused exports (cloud link helpers, provider UI helpers, keybinding shortcuts, draft finalization batch helper, etc.) and trims tests that asserted Tailwind class strings or layout implementation details while keeping behavioral checks. Desktop WSL install-script tests drop assertions tied to removed script behavior (effectpackage check, lock PID/sleep).apps/marketing/tweets.mdis deleted;vite.config.tsstops ignoringmockServiceWorker.jsin format checks.Reviewed by Cursor Bugbot for commit ea2122a. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Remove unused exports, legacy registry methods, and brittle markup tests
apps/web,apps/server, andapps/mobile(e.g.readPrimaryCloudLinkTarget,listCloudDevices,resolveTerminalRouteBootstrap,shouldHighlightDesktopUpdateError,isPreviewToggleShortcut)listProvidersandstreamChangesfromProviderAdapterRegistryShapeand its facade, mocks, and tests; the registry still provides instance lookup, metadata, listing, and sync change subscriptionsTextGenerationShapealias with theTextGenerationservice type in server tests and the harness; deletes the separateTextGenerationServiceinterface@noble/hashesand@effect/platform-node-sharedcatalog dependencies fromapps/mobileandapps/serverComposerCommandMenu,ComposerPrimaryActions,MessagesTimeline,ChangedFilesCard, and the hosted onboarding header suite so tests stop asserting brittle CSS and ordering detailslistProviders/streamChangesmembers or deleted exports will break; verify no remaining imports inProviderAdapterRegistry.ts,providerModels.ts,composer-logic.ts, and the other removed-export modulesMacroscope summarized ea2122a.