Repository navigation
Conversation
Codex `sleep` items arrive as tool calls since #84, but classifyTool left them as "other", so hosts said "Used a tool" for the model waiting. A new `wait` kind carries the duration the agent asked for (`durationMs`); with the tool part's startedAt/endedAt (#92) a host can say "Waited 8 s of 50 s", since a steer can end a wait early. Labels: Waiting / Waited, and group summaries say "waited". Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review: the wait duration was read from `durationMs` for every wait, so a runtime naming it differently would lose it silently. The shell table is now FIELDS, keyed by runtime and tool like before, and codex `sleep` reads its own key through `asNumber`. The comment says the times are when OAR saw the call start and end. Tests cover bad JSON, strings and 0, and that groupToolActivity counts a sleep as a wait. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
xxchan
added a commit
that referenced
this pull request
Oct 3, 2026
Minor release, version bump only. - #96: cursor runs through the official `@cursor/sdk` 1.0.35 in process. Breaking for cursor: sessions opened through cursor-agent cannot be resumed, cursor signs in with `CURSOR_API_KEY` or `Cursor.auth.login()`, and cursor has no update check or upgrade. `SessionOptions.systemPrompt` and `env` are refused for cursor. - #95: `classifyTool` reads codex `sleep` as the new `wait` kind with its `durationMs`; hosts that switch exhaustively on `ToolActionKind` need a `wait` case. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: exe.dev user <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex
sleepitems arrive as tool calls since #84.classifyToolleft them asother, so hosts showed "Used a tool" while the model was waiting.What changes
ToolActionKind"wait". Codexsleepmaps to it.ToolAction.durationMs. For a wait, this is the duration the agent asked for, taken from the input'sdurationMs. It's set only when the value is a finite positive number.endedAt - startedAt(feat(observe): tool parts carry when OAR saw their start and end #92), since a steer can end a wait early. With both, a host can show "Waited 8 s of 50 s".toolGroupSummarysays "waited" or "waited N times".Compatibility. Hosts that switch exhaustively on
ToolActionKindget one more case. Otherwise the change is additive.Tests. Classification, the duration guard, labels and the summary wording.
pnpm run checkpasses.🤖 Generated with Claude Code