Skip to content

🤖 refactor: auto-cleanup#3058

Merged
ethanndickson merged 2 commits intomainfrom
auto-cleanup
Mar 24, 2026
Merged

🤖 refactor: auto-cleanup#3058
ethanndickson merged 2 commits intomainfrom
auto-cleanup

Conversation

@mux-bot
Copy link
Contributor

@mux-bot mux-bot bot commented Mar 24, 2026

Summary

Periodic auto-cleanup PR. Each commit is an independent, behavior-preserving refactor found by scanning recent main commits.

Current cleanup

Remove dead ask-agent fallback from agentResolution — The ask agent was removed in 395e956 (#3047). The special-case fallback path (ask → auto → exec) in the agent definition loader's catch block is now dead code, since the migration in that same PR already remaps persisted ask selections to auto before this code path is reached. Simplified the catch block to always fall back to exec directly (−8 lines).

Validation

  • make static-check passes (ESLint, TypeScript, Prettier)

Auto-cleanup checkpoint: fda7812


Generated with mux • Model: anthropic:claude-opus-4-6 • Thinking: xhigh • Cost: N/A

@mux-bot
Copy link
Contributor Author

mux-bot bot commented Mar 24, 2026

@codex review

@chatgpt-codex-connector
Copy link

To use Codex here, create a Codex account and connect to github.

mux-bot bot added 2 commits March 24, 2026 12:11
The ask agent was removed in 395e956. The special-case fallback
(ask → auto → exec) in the catch block is now dead code since no
request can arrive with effectiveAgentId === 'ask'. The migration
in that same PR already remaps persisted 'ask' selections to 'auto'.

Simplify the catch block to always fall back to exec directly.
@ethanndickson ethanndickson added this pull request to the merge queue Mar 24, 2026
Merged via the queue into main with commit 842e61a Mar 24, 2026
24 checks passed
@ethanndickson ethanndickson deleted the auto-cleanup branch March 24, 2026 14:21
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