Commit 47f9b9c
Yogthos
feat: wire mid-turn steering for interjections
Replace the legacy stop-and-respawn interjection model with mid-run
steering injection. User messages typed during an agent run are now
injected at turn boundaries as LoopMessage::User wrapped with
MID_TURN_STEER_WRAPPER, letting the model treat them as guidance
within the same run instead of spawning a new run.
Changes:
- provider: spawn_runner gains steering_queue parameter, wires it
into LoopSpawnConfig (replaces dead 'stays None' comment)
- ui: interjection_queue converted from VecDeque to
Arc<Mutex<VecDeque<String>>>, shared with spawn_runner at all
call sites
- ui: removed interject signal send from mid-run push path —
steering handles injection without stopping the run
- ui: updated comments and status messages to reflect 'inject at
turn boundary' behavior
- acp: passes None (no UI, no steering needed)
Infrastructure built in prior commits (steering.rs factory, loop
polling at run.rs:238/588, LoopSpawnConfig.steering_queue field)
is now wired end-to-end.1 parent 81ec468 commit 47f9b9c
4 files changed
Lines changed: 97 additions & 101 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
655 | 660 | | |
656 | 661 | | |
657 | 662 | | |
| |||
703 | 708 | | |
704 | 709 | | |
705 | 710 | | |
| 711 | + | |
706 | 712 | | |
707 | 713 | | |
708 | 714 | | |
709 | 715 | | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| |||
0 commit comments