You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 82c4c11
Browse filesBrowse the repository at this point in the historyBrowse files
feat(server): deliver messages by class, never into a compaction (#144)
* feat(server): deliver messages by class, never into a compaction
A message arriving while the provider is compacting now waits for the
compaction to finish instead of aborting it. Senders set a delivery
class: interrupt, steer_at_tool_boundary, next_turn, when_idle, or
digest. Digests never start a turn and ride with the next one. An
undelivered message with the same coalesce key replaces the older one,
and one past its expiry is dropped and logged. Alerts default to digest.
t3_thread_send accepts the class, coalesce key and expiry, and t3_queue
shows them.
The pre-commit lint and knip hooks fail in this worktree because Node
cannot load the repo's TypeScript oxlint plugin and knip schemas. Both
fail the same way on the untouched base commit.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(server): a digest never starts a turn and is never dropped silently
Review of the delivery classes found six holes. A slash-prefixed message
now carries its digest instead of discarding it. A digest sent to a
thread that has never run waits instead of starting a provider turn. An
agent send that names no class rides in the digest. A steer waiting for
the next tool result releases when that tool is interrupted or
cancelled, not only when it completes or fails. An expired digest is
dropped even when it is the only queued message. A turn that starts
through a fork, merge-back or provider switch carries the digest too.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(server): a message to the sender's own thread keeps its mode
The agent digest default keyed off the caller having any thread, so an
agent sending its next instruction to its own thread had it held as a
digest that never started a turn. The default now applies only when the
sender and the target are different threads.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(server): hold an alert behind a queued digest and retry with its expiry
A flush read the watcher once and delivered every due alert together, and a
queued digest is hidden from the shell, so the next alert never saw the turn
the first one queued and queued behind it instead of waiting. Deliveries now
go one at a time, and a watcher whose only turn is a waiting digest counts as
busy.
A retry recomputed the digest expiry from the clock, so it disagreed with the
failed send and was not a replay. The expiry is fixed when the alert is queued.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(web): keep a timed-out draft test from breaking the next one
The ARC voice job's first fake-timer test hit the 15s timeout, then the
next test failed: that run was still going, so its cleanup uninstalled
the clock or its late upload showed up in the next assertion. Import the
modules on real timers, leave setImmediate and performance real so the
clock can yield, and ignore a superseded test's cleanup.
Model: grok-4.7
Task: fix
Agent: Builder
Lane: grok
Harness: t3
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
"Send a message to any thread. The target cannot run with broader modes than yours. `mode:'auto'` starts an idle thread, steers a running turn, or queues. `queue`: new turn. `steer`: mid-turn update. `restart`: interrupt and restart. A send to a finished child thread starts a fresh task and returns its `taskId`. In your reply, name it as its `link` verbatim.",
288
+
"Send a message to any thread. The target cannot run with broader modes than yours. `mode:'auto'` starts an idle thread, steers a running turn, or queues. `queue`: new turn. `steer`: mid-turn update. `restart`: interrupt and restart. `deliveryClass` overrides `mode`: `interrupt`, `steer_at_tool_boundary` (after the next tool result), `next_turn`, `when_idle` (once nothing runs), or `digest` (never starts a turn; rides with the next one, grouped by `digestCategory`). `coalesceKey` replaces an undelivered message with the same key; past `expiresAt` an undelivered one is dropped. A send to a finished child thread starts a fresh task and returns its `taskId`. In your reply, name it as its `link` verbatim.",
"Manage a thread's queued messages. Omit `threadId` for this thread. list: send order, paged by `cursor` and `limit`. read: up to 16,000 chars of one. edit: replace its `text`; attachments stay. cancel. reorder: before `beforeRunId`, or to the end with null. promote_to_steer: send it now as steering to active `targetRunId`. Writes fail once the run is no longer queued.",
91
+
"Manage a thread's queued messages. Omit `threadId` for this thread. list: send order, paged by `cursor` and `limit`. read: up to 16,000 chars of one. edit: replace its `text`; attachments stay. cancel. reorder: before `beforeRunId`, or to the end with null. promote_to_steer: send it now as steering to active `targetRunId`. Entries show their `deliveryClass`, `coalesceKey` and `expiresAt`; a `digest` entry never starts a turn and goes out with the next one. Writes fail once the run is no longer queued.",
0 commit comments