chore(mobile): clear the legacy-list deletion fallout #13203
main fromrefs/pull/13203/head·merged by juliusmarminge View on GitHubThe problem#
Retiring the legacy grouped thread list (#13149 / #13183, both merged) left dead deletion fallout on main, flagged by an audit of the removal head:
homeThreadList.tsstill imported eight v1-only helpers and kept the recency-window constants (RECENT_THREAD_WINDOW_MS,RECENT_THREAD_FALLBACK_COUNT) only v1 read — 13no-unused-varswarnings.home-list-options.tsstill stored athreadSortOrderpreference with a setter no screen calls; the mobile UI no longer has any thread sort order (#13183's body claimed it was gone — with this PR the claim is finally true end to end).projectSortOrderandprojectGroupingModestay; v2 uses them for scope ordering/grouping.homeThreadList.test.tscarried an unusedthreadSearchMatchKeyimport andNOWfixture constant;threadListV2.test.tsimported the batch availability helper it no longer calls (that coverage lives inthreadOrderAvailability.test.ts).- A HomeScreen comment still referenced "the legacy list", which no longer exists.
The fix#
Also: DEFAULT_SIDEBAR_THREAD_SORT_ORDER in contracts loses its export (mobile was the last consumer of the value; the wire field keeps its internal decoding default), which is what knip flags once the mobile side is gone.
Straight deletion only — no behavior changes. The stored preference is a runtime-state field with no persisted schema; dropping it just stops a value nothing reads from being carried.
Verification: no-unused-vars clean on all touched files (HomeScreen stays at its pre-existing 13-warning baseline, unchanged), tsc --noEmit clean, full mobile suite 186 files / 1702 tests pass, formatting clean.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
Approvability#
Verdict: Approved at
a348da9Macroscope's review found this PR approvable — This is a contained cleanup that removes unused mobile state, imports, constants, test fixtures, and a stale comment. The existing settings schema and
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).updated_atdecoding default remain unchanged, with no new runtime capability or meaningful behavior change.Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 13.5 KiB 13.5 KiB +4 B (+0.0%) 15.1 KiB ✅ Codex Thread snapshot wire 7.1 KiB 7.1 KiB +3 B (+0.0%) 7.3 KiB ✅ Codex Live turn WebSocket wire 6.5 KiB 6.5 KiB +1 B (+0.0%) 7.8 KiB ✅ Codex Live turn WebSocket decoded 56.3 KiB 56.3 KiB 0 B (0.0%) 66.4 KiB ✅ Codex Live turn messages 10 10 0 (0.0%) 21 ✅ Claude Total thread wire 13.5 KiB 13.5 KiB +1 B (+0.0%) 15.1 KiB ✅ Claude Thread snapshot wire 7.1 KiB 7.1 KiB +1 B (+0.0%) 7.3 KiB ✅ Claude Live turn WebSocket wire 6.5 KiB 6.5 KiB 0 B (0.0%) 7.8 KiB ✅ Claude Live turn WebSocket decoded 57.0 KiB 57.0 KiB 0 B (0.0%) 66.4 KiB ✅ Claude Live turn messages 9 9 0 (0.0%) 21 ✅ Baseline:
eafb4a9· PR result:a348da9· Source CI: successScenario and decoded snapshot size
10 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.
- Codex decoded thread snapshot: 114.0 KiB
- Claude decoded thread snapshot: 114.6 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged thisaca3c87
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed