Commit d3171a3
committed
fix(tools): exit_plan_mode now exits correctly in YOLO mode
In YOLO mode, coreToolScheduler auto-approves tools without calling
onConfirm(), leaving wasApproved=false in ExitPlanModeToolInvocation.
execute() would then always return the rejection message.
Fix: check config.getApprovalMode() === YOLO as a fallback in execute().
When YOLO, treat as approved without downgrading to AUTO_EDIT (preserving
the user's --yolo intent for the rest of the session).
Non-interactive auto-deny (shouldAutoDeny path) is unchanged — that
behavior is intentional and correct.
Fixes #2522
Generated by Nuno Salvação <nuno.salvacao@gmail.com> & Co-Authored with: Nexo <nexo.modeling@gmail.com>1 parent 38caa0b commit d3171a3
2 files changed
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
243 | 274 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
137 | 142 | | |
138 | 143 | | |
139 | 144 | | |
| |||
0 commit comments