Skip to content

fix(typecheck): unblock main — unused symbols from #450 - #473

Merged
aarontrowbridge merged 2 commits into
mainfrom
fix/main-typecheck-unused-symbols
Aug 21, 2026
Merged

fix(typecheck): unblock main — unused symbols from #450#473
aarontrowbridge merged 2 commits into
mainfrom
fix/main-typecheck-unused-symbols

Conversation

@aarontrowbridge

@aarontrowbridge aarontrowbridge commented Aug 20, 2026

Copy link
Copy Markdown
Member

PR #450 landed three TS6133 unused-symbol errors; CI runs pnpm -r run typecheck, so main is currently red for every new PR. All three symbols are genuinely unreferenced (checked call sites — no dropped calls, comment-only references): writeOnboardingConfig import in credential_scanner.ts, writeWelcomeShown import in extension.ts, importSection local in onboarding_webview.ts. Mechanical removals, no behavior change. Full suite green on top of the fix.

Summary by CodeRabbit

  • Chores
    • Removed unused internal references from the extension and onboarding components.
    • Improved test handling in environments without configured credentials.
    • No user-visible behavior or functionality has changed.

…s red

PR #450 (449-auto-import-credentials) landed three TS6133s:
writeOnboardingConfig (unused import in credential_scanner),
writeWelcomeShown (unused import in extension), importSection (dead
local in onboarding_webview). All three are genuinely unreferenced —
imports trimmed / dead local removed; no behavior change. CI runs
pnpm -r run typecheck, so main was red for every new PR until this.
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2cc33fd6-e8d6-46a6-a6fd-ca5b5b932749

📥 Commits

Reviewing files that changed from the base of the PR and between e6623ac and f9258a4.

📒 Files selected for processing (1)
  • packages/extension/test/credential_scanner.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The change removes unused references from extension onboarding code and updates the credential scan test to skip its live assertion when no credentials are available.

Changes

Onboarding cleanup

Layer / File(s) Summary
Remove unused references
packages/extension/src/credential_scanner.ts, packages/extension/src/extension.ts, packages/extension/src/onboarding_webview.ts
Removes unused imports and the unused importSection DOM reference while retaining required logic.
Handle empty credential scans
packages/extension/test/credential_scanner.test.ts
Skips the live credential assertion when the scan finds no credentials. Existing assertions remain unchanged when credentials are found.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to f9258

This PR removes unused symbols to restore typechecking and does not change runtime behavior. No actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: jeonghun-jj-lee

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the typecheck fix and removal of unused symbols that caused the main branch failures.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/main-typecheck-unused-symbols

Comment @coderabbitai help to get the list of available commands.

…I break

The same #450 carried an e2e test asserting THIS machine has real
opencode credentials (unconditional length>0). It passed on dev
machines and failed on every clean CI runner — #450's fast check was
red when it merged. Same skip idiom as the sibling testConnection case:
zero credentials → log + return, dev machines still assert fully.
@aarontrowbridge
aarontrowbridge merged commit 34c4db6 into main Aug 21, 2026
7 checks passed
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