Skip to content

🤖 refactor: delete unreferenced type aliases and re-exports in node/common - #7600

Merged
ThomasK33 merged 1 commit into
ta-p3-3/orpc-context-doublesfrom
ta-p3-3/dead-type-aliases
Oct 26, 2026
Merged

ThomasK33 merged 1 commit into
ta-p3-3/orpc-context-doublesfrom
ta-p3-3/dead-type-aliases

Conversation

@ThomasK33

@ThomasK33 ThomasK33 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Delete the type aliases, interfaces and re-exports in node/common that nothing references. P3-2's new check (check-test-only-exports, #7561) lists each of them in pendingDeletion for this workstream.

Deleted (no file imports them. Most hits for these names are other declarations with the same name):

  • z.infer aliases: AgentPluginInstallSource (and its unused re-export from appConfigOnDisk.ts), AnthropicSpeed, FastModePreviousServiceTier, ThemePreferenceConfig, RawQueryColumn and RawQueryResult (analytics.ts; queries.ts declares its own), ArtifactVersionSource, SkillsCliCommand, RuntimeEnablementOverrides (and its unused re-export), EvaluationInput, EvaluationProviderOptions, SessionTapeEventLine, SessionTapeLine (and SessionTapeLineSchema, which only that alias used), the three AutoRetry*Event aliases in stream.ts (retryManager.ts declares the ones production uses), StatusUpdateToolArgs, PlanReviewSnapshotRecord, PlanReviewFeedbackReply, PlanReviewThreadReply and MappedCodexHookEvent.
  • PersistedKeyScope, and the localStorage-era ReviewState and ReviewsState interfaces in types/review.ts. The DI tag ReviewState and ChatPane's local ReviewsState are other declarations.
  • Re-exports nothing imports: CLAUDE_DESIGN_SERVER_NAME from claudeDesignService.ts (callers import @/common/constants/claudeDesign), and AskUserQuestionOptionSchema from toolDefinitions.ts.

Test-only aliases. Each test now types its fixture with the production type:

  • ProviderModelEntry (providerModelEntry.ts): coderOauthService.test.ts imports the @/common/orpc/types one, like every other caller.
  • AWSCredentialStatus (orpc/types.ts): api.test.ts uses ProviderConfigInfo["aws"].
  • PlanReviewFeedbackComment: prepareFeedback.test.ts uses PlanReviewFeedbackRecord["comments"].

Validation

make typecheck and make lint-eslint pass. The touched suites pass (415 tests). I ran P3-2's checker from #7561 against this stack, and it reports every deleted entry as stale and nothing new.

Part of test-audit phase 3, workstream P3-3.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

@ThomasK33
ThomasK33 added this pull request to stack #7558 October 26, 2026 13:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T13:50:42.754753Z — New commits
🔒 Security Review ✅ Completed 2026-10-26T13:50:10.626157Z d947d8f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: f2ce2c03f9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: f2ce2c03f9

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ThomasK33
ThomasK33 force-pushed the ta-p3-3/dead-type-aliases branch 2 times, most recently from 1a67902 to f5119bc Compare October 26, 2026 13:13
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: f5119bcdec

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: f5119bcdec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e stories (Haiku): 14 passed

22 agent steps · 7 replayed from cache · 15 model calls · 45.8k tokens (28% cached)
Spend: $0.08 of the $1.00 cap (proxy ledger)

All 14 tests in 9 files
Test Agent Time
🟢 chatRestart.e2e.ts · 1 passed 1 step · 1 call 5.3s
🟢 a chat survives a restart of the server 1 step · 1 call 5.3s
🟢 compaction.e2e.ts · 1 passed 1 step · 1 call 4.4s
🟢 /compact replaces the old chat with a summary 1 step · 1 call 4.4s
🟢 pluginTrustRestart.e2e.ts · 1 passed 4 steps · 2 calls 9.1s
🟢 a trusted plugin hook stays trusted after the server restarts 4 steps · 2 calls 9.1s
🟢 settingsRoundTrip.e2e.ts · 1 passed 2 steps · 1 call 9.0s
🟢 a chat survives trips through Settings 2 steps · 1 call 9.0s
🟢 sidebarPerWorkspace.e2e.ts · 1 passed 4 steps · 1 call 5.0s
🟢 a new workspace starts with its right sidebar collapsed while another keeps it open 4 steps · 1 call 5.0s
🟢 smoke.e2e.ts · 1 passed 2 steps · 1 call 2.6s
🟢 the agent opens the playground workspace 2 steps · 1 call 2.6s
🟢 streamErrors.e2e.ts · 1 passed 1 step · 1 call 10.3s
🟢 stream errors show in the chat, and the chat recovers 1 step · 1 call 10.3s
🟢 todoNudge.e2e.ts · 1 passed 1 step · 1 call 2.6s
🟢 the agent finishes open TODO items after the turn-end nudge 1 step · 1 call 2.6s
🟢 touchAlignment.e2e.ts · 6 passed 6 steps · 6 calls 24.5s
🟢 the Settings close button is level with the title on a touch screen 390px wide 1 step · 1 call 4.3s
🟢 the Settings close button is level with the title on a touch screen 768px wide 1 step · 1 call 4.0s
🟢 Backup settings checkboxes are small and level with their labels on a touch phone 1 step · 1 call 5.2s
🟢 the heartbeat checkbox is small and level with its label on a touch phone 1 step · 1 call 3.2s
🟢 a reply's model and time stay on one line on a touch phone 1 step · 1 call 5.1s
🟢 the workspace actions menu stays on the title row on a touch phone 1 step · 1 call 2.7s

e2e 0.20.0 · 1m 16s · web · run artifacts

🟢 e2e Electron stories (Haiku): 3 passed

3 agent steps · 3 model calls · 8.0k tokens (32% cached)
Spend: $0.01 of the $1.00 cap (proxy ledger)

All 3 tests in 3 files
Test Agent Time
🟢 electron/deepLink.e2e.ts · 1 passed 1 step · 1 call 5.3s
🟢 a deep link of a second launch starts a chat in the running app 1 step · 1 call 5.3s
🟢 electron/menuBar.e2e.ts · 1 passed 1 step · 1 call 6.3s
🟢 the workspace menu bar is the desktop title bar 1 step · 1 call 6.3s
🟢 electron/smoke.e2e.ts · 1 passed 1 step · 1 call 4.7s
🟢 Xum Electron opens the playground workspace 1 step · 1 call 4.7s

e2e 0.20.0 · 18.3s · electron · run artifacts

🟢 e2e agent repros (Haiku): no tests selected

Spend: $0.00 of the $1.00 cap (proxy ledger)

e2e 0.20.0 · 5.3s · 2 targets (web, phone) · run artifacts

…ommon

Delete the z.infer aliases, interfaces and re-exports that no file
references (found by check-test-only-exports, #7561), and the
SessionTapeLineSchema only one of them used. Tests that typed fixtures
with a test-only alias now use the production type.
@ThomasK33
ThomasK33 force-pushed the ta-p3-3/dead-type-aliases branch from f5119bc to d947d8f Compare October 26, 2026 13:47
@ThomasK33
ThomasK33 added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 8cf94d3 Oct 26, 2026
32 of 34 checks passed
@ThomasK33
ThomasK33 deleted the ta-p3-3/dead-type-aliases branch October 26, 2026 14:20
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.

1 participant