Repository navigation
Commit 06890e5
fix(ai): apply the autopilot toggle live, not as a run-start snapshot
ctx.autopilot was captured when the run started, so flipping Autopilot mid-run
had no effect on the in-flight run — it kept gating every command with no
"Autopilot paused" reason (the manual-mode path). Pass it as a getter so
agent.js reads the current value at each run_command; toggling now takes effect
on the very next command.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent cdf2549 commit 06890e5
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
963 | 966 | | |
964 | 967 | | |
965 | 968 | | |
| |||
0 commit comments