room: steer mid-turn chat to the next step boundary
ci / checks (pull_request) Successful in 51s
ci / test (pull_request) Successful in 54s
ci / chart (pull_request) Successful in 4s
ci / web (pull_request) Successful in 16s
ci / docker (pull_request) Successful in 1m42s
ci / publish-edge-image (pull_request) Skipped
ci / publish-edge-chart (pull_request) Skipped
ci / checks (pull_request) Successful in 51s
ci / test (pull_request) Successful in 54s
ci / chart (pull_request) Successful in 4s
ci / web (pull_request) Successful in 16s
ci / docker (pull_request) Successful in 1m42s
ci / publish-edge-image (pull_request) Skipped
ci / publish-edge-chart (pull_request) Skipped
A message posted without a mention while the agent worked waited for the
next turn, so the model read it only once the work the line was about was
finished. The spec's turn rules already promised the mid-turn half ("the
next step of the running turn"); the runner implemented the turn-boundary
half only.
The turn now hands the framework a steering source. The driver drains it
between two steps and appends one User-role message per drain, so the line
lands in the history without the step in flight dying. The drain stops at
the first line it cannot carry -- a mention, which the drop path owns, or a
message with images, which a line cannot -- and leaves the cursor there, so
the boundary pass appends them in the log's order. What it drains advances
`absorbed_seq`, so nothing is appended twice.
A mention still drops the turn: that is the only way to stop a running
command, and this change does not touch it.
This commit is contained in:
1 parent
2e17e7463c
commit
d310735c71
4 files changed
+123
-12
No files matched your search
@@ -82,7 +82,10 @@ web/app/ Nuxt 4 SPA (no SSR)
|
||||
before its last message. `message` is `ReplaySafety::Unsafe`.
|
||||
- Turns are serialized per room. A new mention while a turn runs drops
|
||||
the turn future (turn-level steering) and starts a new turn over the
|
||||
committed session. Do not drop the room task.
|
||||
committed session. A message without a mention never drops anything:
|
||||
`runner::RoomSteering` hands it to the framework's steering hook, which
|
||||
appends it at the next step boundary and advances `absorbed_seq` so the
|
||||
next boundary pass cannot repeat it. Do not drop the room task.
|
||||
- The preview host label is `r<room>-p<port>-<expiry>-<hmac>.<preview
|
||||
host>` for a port, or `r<room>-s<hash>-<expiry>-<hmac>.<preview host>`
|
||||
for a static target. The HMAC covers the target and expiry with a key
|
||||
|
||||
Reference in new issue
Block a user