fix: harden worktree creation and improve subagent mode support#1889
fix: harden worktree creation and improve subagent mode support#1889mohammedahmed18 wants to merge 3 commits intomainfrom
Conversation
- Make worktree creation mandatory by exiting on failure instead of silently skipping - Remove redundant git repo check from create_detached_worktree (caller handles it) - Skip duplicate optimization checks in subagent mode (same as LSP) - Log optimization results as markdown in subagent mode instead of Rich tree - Disable custom benchmark loop overrides for subagent runs - Downgrade Jest benchmarking failure logs from info to debug Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @mohammedahmed18's task in 2m 23s —— View job PR Review Summary
Prek ChecksAll checks passed ( Code Review
|
|
LGTM. i have noticed the windows tests are a bit flaky. will investigate a bit. |
Summary
setup_worktreeexits with an error instead of silently skipping when the git repo check fails or worktree creation returnsNone. This prevents optimizations from running in an invalid state.create_detached_worktree()— the caller inoptimizer.pyalready performs this check, so the parameter and duplicate logic were unnecessary.was_function_previously_optimizedchecks in subagent mode (same behavior as LSP), and render optimization result trees as markdown logs instead of Rich console output.pytest_min_loops/pytest_max_loops) for subagent runs — commented out pending further tuning.infotodebugto reduce noise.Test plan
🤖 Generated with Claude Code