Repository navigation
🤖 tests: drop browser exports that only tests used - #7619
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
🟢 e2e stories (Haiku): 14 passed22 agent steps · 7 replayed from cache · 15 model calls · 46.2k tokens (26% cached) All 14 tests in 9 files
e2e 0.20.0 · 1m 9s · web · run artifacts 🟢 e2e Electron stories (Haiku): 3 passed3 agent steps · 3 model calls · 7.9k tokens (22% cached) All 3 tests in 3 files
e2e 0.20.0 · 18.7s · electron · run artifacts 🟢 e2e agent repros (Haiku): no tests selectedSpend: $0.00 of the $1.00 cap (proxy ledger) e2e 0.20.0 · 5.3s · 2 targets (web, phone) · run artifacts |
Summary
Deletes eight browser exports that only tests called, plus two story helpers that nothing calls. The tests now go through the code that production runs. No app behavior changes.
Background
#7561 (P3-2) adds
check-test-only-exportsand lists these symbols underpendingDeletionwith owner P3-4 (frontend test audit). This PR clears every P3-4 entry exceptDraftAttachmentMatchesChatAttachment(see below).GoalsSectionGoalDefaultsControlsships (inGoalDefaultsSection).GoalDefaultsControls, the same inputs.highlightDiffChunkDiffRenderercallshighlightDiffChunks.highlightDiffChunks([chunk])and asserts one result.migrateWorkspaceStoragegetSuggestedModels,calculateTPS,calculateTokenCount,DeltaRecord,filterWorkflowDisplayOnlyMessages@/commonfunctions that only tests imported.@/commonmodule directly.textContrastOnBase,opaqueBackgroundOwner(story helpers)DraftAttachmentMatchesChatAttachmentstays: it is a compile-time drift check. Withoutexport,noUnusedLocalsandno-unused-varsboth reject it, so #7561 needs to move it toallowed.Validation
scripts/check-test-only-exports.tsat f8d1727) on this tree. It reports all eight targeted entries as stale, which means they are gone.make static-checkandmake crap-checkpass.Generated with
xum• Model:anthropic:claude-opus-5-5• Thinking:high• Cost:$36.68