Skip to content

🤖 refactor: auto-cleanup#2244

Open
github-actions[bot] wants to merge 2 commits intomainfrom
auto-cleanup
Open

🤖 refactor: auto-cleanup#2244
github-actions[bot] wants to merge 2 commits intomainfrom
auto-cleanup

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 7, 2026

Summary

Periodic auto-cleanup: remove dead code, fix stale config, deduplicate helpers, and tighten module exports.

Latest Change

  • Remove dead fuzzy-search helpers from fuzzySearch.ts: After PR 🤖 fix: rank command palette results by fuzzy match quality #2492 introduced commandPaletteRanking.ts, the higher-level wrappers fuzzySubsequenceMatch, matchesAllTerms, scoreAllTerms (and private fuzzySubsequenceMatchNormalized) lost all production callers. Removed the dead functions and their test cases (-126 LoC). The actively-used primitives (normalizeFuzzyText, splitQueryIntoTerms, scoreSingleTermNormalized) remain.
Previous changes
  • Deduplicate ConnectionHealth interface from SSH2ConnectionPool.ts.
  • Delete src/common/utils/tools/taskToolTypeGuards.ts: Dead module with zero imports.
  • Delete src/common/utils/ai/providerFactory.ts: Dead since folder restructure.
  • Fix stale ESLint dynamic-import override paths.
  • Remove dead isStreamingPart type guard from messageUtils.ts.
  • Deduplicate formatDuration into shared utility.
  • Remove dead formatNewCommand, ThemeToggleButton, canonicalModelId, hasSubtitle prop.
  • Deduplicate compaction type guards into shared module.
  • Remove dead re-exports from RightSidebar.tsx.
  • Rename partialService.test.tshistoryService.partial.test.ts.
  • Fix orphaned JSDoc comment on UpdaterService.getStatus().
  • Deduplicate normalizeAgentId, getProviderDisplayName, getCustomModels/getAllCustomModels.
  • Remove dead backward-compat aliases in codexOauthAuth.ts and re-exports.
  • Unexport file-private helpers in modelEntries.ts.
  • Remove dead pendingReplayReset field from WorkspaceStore.ts.
  • Remove dead onLogEntry, formatPendingCommand, parseGitShowBranchForStatus, path helpers.
  • Remove dead ChatInputProps barrel re-export.
  • Unexport file-private isBashOutputTool.
  • Remove dead collectToolConfigsFromDefinitionGraph and AgentToolsLike.
  • Remove dead code in chatEditing.ts.

Validation

  • make typecheck passes
  • make static-check passes (excluding shfmt not available in CI env)
  • Verified removed exports have zero imports across the codebase

Auto-cleanup checkpoint: 29d08e3


Generated with mux • Model: anthropic:claude-opus-4-6 • Thinking: xhigh

@github-actions github-actions bot force-pushed the auto-cleanup branch 17 times, most recently from 82a5b7e to 297c0e5 Compare February 18, 2026 00:16
@github-actions
Copy link
Contributor Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 297c0e5298

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@github-actions
Copy link
Contributor Author

@codex review

Fixed: restored readExtensionMetadata that was incorrectly removed (missed import in vscode/src/muxConfig.ts). Also added the new cleanup: removed dead pendingReplayReset field from WorkspaceStore.

@chatgpt-codex-connector
Copy link

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

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@github-actions
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Mux Auto-Cleanup added 2 commits February 18, 2026 08:10
ConnectionStatus and ConnectionHealth were identically defined in both
sshConnectionPool.ts and SSH2ConnectionPool.ts. Since SSH2ConnectionPool
already imports SSHConnectionConfig from sshConnectionPool, extend the
import to include ConnectionHealth (ConnectionStatus is used transitively
through ConnectionHealth, so no direct import needed).
…teRanking

After PR #2492 introduced commandPaletteRanking.ts, the higher-level
wrappers fuzzySubsequenceMatch, matchesAllTerms, scoreAllTerms (and the
private fuzzySubsequenceMatchNormalized) lost all production callers.

Remove the dead functions and their corresponding tests. The low-level
primitives (normalizeFuzzyText, splitQueryIntoTerms, scoreSingleTermNormalized)
remain — they are actively used by commandPaletteRanking.ts.
@github-actions
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

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

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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.

0 participants