Skip to content

Conversation

@github-actions
Copy link
Contributor

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

Summary

Periodic automated cleanup of the codebase. Each commit is a small, behavior-preserving refactor.

Current cleanups

  • refactor: remove unused AIServiceEvent type and isDefaultContinueMessage alias — Removed the dead AIServiceEvent union type from stream types and the unused isDefaultContinueMessage alias from message types (no callers remained).
  • refactor: remove unused RUNTIME_MODES_REQUIRING_GIT and hasDevcontainerConfigs — Removed the dead RUNTIME_MODES_REQUIRING_GIT constant and hasDevcontainerConfigs function from runtime types (no callers remained after runtime refactoring).
  • refactor: extract useWorkspaceFallbackModel hook — Deduplicate identical model fallback resolution logic from ProjectSidebar and WorkspaceListItem into a shared hook.
  • refactor: remove deprecated WorkspaceMetadataWithPaths type alias — Removed the dead WorkspaceMetadataWithPaths type alias (marked @deprecated, zero consumers, pointed to FrontendWorkspaceMetadata).
  • refactor: use THINKING_LEVELS constant in ThinkingLevelSchema — Replace manually duplicated enum values in ThinkingLevelSchema (in stream.ts) with an import of the THINKING_LEVELS constant from thinking.ts, eliminating drift risk.
  • refactor: remove dead constants/agents.ts — Deleted src/common/constants/agents.ts which exported BUILT_IN_SUBAGENT_TYPES, BuiltInSubagentType, and BUILT_IN_SUBAGENTS with zero consumers (orphaned since the user-defined agents refactor in 🤖 feat: user-defined agents (unify modes + subagents) #1289).

Auto-cleanup checkpoint: 3b5e294


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

@github-actions github-actions bot force-pushed the auto-cleanup branch 6 times, most recently from 0c1cc01 to 42783c5 Compare February 7, 2026 00:14
Mux Auto-Cleanup and others added 8 commits February 7, 2026 04:30
…age alias

- AIServiceEvent union type in stream.ts was defined but never imported or used
- isDefaultContinueMessage was a deprecated alias for isDefaultSourceContent, never referenced
…erConfigs

Remove dead code from runtime.ts:
- RUNTIME_MODES_REQUIRING_GIT: exported constant never imported anywhere
- hasDevcontainerConfigs: exported type guard never called anywhere
  (getDevcontainerConfigs covers the same logic and is actively used)
Deduplicate the identical model fallback resolution logic that was
repeated in both ProjectSidebar (MuxChatStatusIndicator) and
WorkspaceListItem. Both components subscribe to the global default
model preference and workspace-scoped model preference, migrating
gateway models and falling back through the same chain. The new
hook centralizes this in one place.
The type was marked @deprecated with zero consumers—it pointed to
FrontendWorkspaceMetadata and was never imported anywhere in the
codebase.
Replace the manually duplicated enum values in ThinkingLevelSchema with
an import of THINKING_LEVELS from thinking.ts. The old code had a comment
noting the duplication; this import keeps them in sync automatically.
The 9 short-name aliases (ISSUER, CLIENT_ID, AUTHORIZE_ENDPOINT, etc.)
were never imported by any consumer. All call sites use the prefixed
CODEX_* originals. Removing dead code.
Extract the triplicate cloneToolPreservingDescriptors function from
tools.ts, withHooks.ts, and system1ToolWrapper.ts into a single shared
module at common/utils/tools/cloneToolPreservingDescriptors.ts.

Also removes now-unused assert imports from the consumer files and
narrows appendToolNote visibility to file-private in system1ToolWrapper.
@ammario ammario enabled auto-merge February 7, 2026 05:08
@ammario ammario added this pull request to the merge queue Feb 7, 2026
Merged via the queue into main with commit ba1c572 Feb 7, 2026
23 checks passed
@ammario ammario deleted the auto-cleanup branch February 7, 2026 05: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