Repository navigation
Commit f7a504f
Frame interrupt-delivered prompts as mid-task steers
Busy-sends abort the running turn (opencode has no mid-turn steer), and the
truncated turn left in history primes a short acknowledge-then-stop reply —
the main announce-then-stop trigger (twice today in bks-019f54f8). Mark the
session in abortTurnAndDrain and have the next drain append a fenced
INTERRUPT_STEER_NOTE telling the model the delivery interrupted its own
in-progress turn: fold the message in and keep executing. Fenced via
wrapContext so the transcript shows only the user's text; TTL'd mark so a
parked drain can't mislabel a later prompt.
Stopgap until opencode's v2 SessionRunner supports config providers — its
/api/session prompt has real delivery:"steer"|"queue" (verified working on
our live server for catalog models; our Meridian/bridge providers hit
ModelUnavailableError on both 1.17.15 and the 0.0.0-beta-202607112149
snapshot — that support lands with anomalyco/opencode#36196 on the v2
branch, together with CodeMode MCP tool search).
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent c8fc978 commit f7a504f
2 files changed
Lines changed: 46 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
20 | 37 | | |
21 | 38 | | |
22 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
127 | 145 | | |
128 | 146 | | |
129 | 147 | | |
| |||
499 | 517 | | |
500 | 518 | | |
501 | 519 | | |
502 | | - | |
| 520 | + | |
503 | 521 | | |
504 | 522 | | |
505 | 523 | | |
506 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
507 | 532 | | |
508 | 533 | | |
509 | 534 | | |
| |||
609 | 634 | | |
610 | 635 | | |
611 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
612 | 640 | | |
613 | 641 | | |
614 | 642 | | |
| |||
0 commit comments