Skip to content

chore: clear the 81 unused exports so the commit hook passes - #392

Merged
tannerpolley merged 2 commits into
mainfrom
issue-256-commit-hook-fails-on-every-typescript
Nov 13, 2026
Merged

tannerpolley merged 2 commits into
mainfrom
issue-256-commit-hook-fails-on-every-typescript

Conversation

@tannerpolley

@tannerpolley tannerpolley commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #256.

vp run knip:check reported 81 unused exports on main, so every TypeScript commit failed the pre-commit hook. This clears all 81 with no behavior change.

  • Dropped export where only the file itself uses the name (server scanners and workers, web logic modules, tokenizeShell, inlineShellContext, and similar).
  • Deleted code nothing uses: dead helpers in the Codex, Claude and port-scanner test harnesses, and unused web helpers (ContextWindowMeter.logic, Sidebar.logic, UsageLimits) plus subagentResultOwed, with the imports and constants they left behind.
  • Dead re-exports removed: delegatedTaskModes from OrchestratorMcpService.ts (evals import it directly) and formatDuration from session-logic.ts.
  • Hook blockers in touched files: trimmed two over-length comments in shellCommand.ts and removed an unused lint directive in inlineShell.ts, because the hook lints staged files.

Ignored (upstream-owned; upstream leaves it unused): WorktreesDirectoryRow in apps/web/src/components/settings/StorageSettings.tsx, via a knip ignoreIssues entry. That file stays identical to main/upstream so upstream edits to it don't conflict. No other ignore entries were needed.

Checks: vp run check:changed passes format, lint, both knip passes, graphql, 28 test files (749 tests) and React Compiler. Typecheck passes everywhere except apps/mobile, which has 3 errors in files this PR does not touch (ComposerCommandPopover.tsx, projectIcon.ts, asset-url-state.ts). The commit hook passed without --no-verify.

🤖 Generated with Claude Code

Drops `export` from helpers only their own file uses, and deletes code
nothing uses (dead test-harness helpers and web logic helpers). No
behavior change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…sed export (#256)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tannerpolley
tannerpolley marked this pull request as ready for review November 13, 2026 20:26
@tannerpolley
tannerpolley merged commit ef1a02b into main Nov 13, 2026
@tannerpolley
tannerpolley deleted the issue-256-commit-hook-fails-on-every-typescript branch November 13, 2026 20:27
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.

Commit hook fails on every TypeScript change: 74 unused exports on main

1 participant