Repository navigation
feat(observe): tool parts carry when OAR saw their start and end - #92
Merged
Merged
Conversation
A host could show what a call did but not how long it took. Codex `sleep` calls (#84) need it most: the model asks to wait 50 s, a steer cuts it short, and only the observed times tell how long it really waited. `startedAt` / `endedAt` on a view tool part are the `receivedAt` of its `tool_call_started` / `tool_call_ended` records, the same rule as `tasksOf`'s TaskView: OAR's observation, not a runtime-reported time, and only what was seen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
xxchan
added a commit
that referenced
this pull request
Oct 3, 2026
Patch release: #92 adds `startedAt` and `endedAt` (the `receivedAt` of the start and end records) to SessionView tool parts. Version bump only. 🤖 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]>
xxchan
added a commit
that referenced
this pull request
Oct 3, 2026
Codex `sleep` items arrive as tool calls since #84. `classifyTool` left them as `other`, so hosts showed "Used a tool" while the model was waiting. **What changes** - **New `ToolActionKind` `"wait"`.** Codex `sleep` maps to it. - **New `ToolAction.durationMs`.** For a wait, this is the duration the agent asked for, taken from the input's `durationMs`. It's set only when the value is a finite positive number. - **Actual wait time.** The time actually waited is the tool part's `endedAt - startedAt` (#92), since a steer can end a wait early. With both, a host can show "Waited 8 s of 50 s". - **Labels and summaries.** Labels are "Waiting" / "Waited" / "Wait failed". `toolGroupSummary` says "waited" or "waited N times". **Compatibility.** Hosts that switch exhaustively on `ToolActionKind` get one more case. Otherwise the change is additive. **Tests.** Classification, the duration guard, labels and the summary wording. `pnpm run check` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Oct 29, 2026
<!-- stamp:review:v1 --> <sup><img src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_e6a24614c82047bc447bfb66211a3320"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp →</a></sup> --- <!-- /stamp:review:v1 --> A host could not select Claude's native permission mode through OAR: the adapter always added bypass and refused `--permission-mode`. Accept `default`, `dontAsk`, `acceptEdits` and `plan` through `launchArgs`, omit OAR's bypass when a mode is supplied, and force native `--permission-prompts none` so remaining approvals are denied locally instead of waiting for an unavailable host answer. Reject permission prompt tools, non-none prompt targets, missing or unknown modes, and a conflicting explicit bypass before process launch with `UnsupportedOptionError`. Default bypass is unchanged. No approval API or new event is added; the native init frame remains the evidence for the actual mode. Document the consequential resume rule: the host must repeat its mode, because omission restores OAR bypass. Also record plan's model-classifier limits and the design decision to defer human approvals until a host needs them. The prior native investigation remains linked as historical evidence. Validation: `CI=1 pnpm run check` on current main passed (2,252 unit tests and 19 mock cases), as did the build, Claude's shared behavior suite, and all 68 applicable native vendor tests on Linux with Claude 2.1.312 and local model providers. The new native cases cover every mode, reapplying versus omitting a mode on resume, and both plan-classifier decisions. The new launch regression failed before the implementation and verifies typed refusals occur without spawning. No real account quota was used. Windows CI exposed a native denial for a temporary-directory 8.3 alias in the acceptEdits fixture. Document that native safety check, canonicalize fixture paths, and use a separate Bash script with literal quoted arguments. Keep native tool-result diagnostics and all original side-effect expectations. The seven focused native cases and full check pass locally. The Windows Claude job also passes at 8cd53b6, including all seven new permission cases with unchanged assertions. Task #92; implements the maintainer decision following merged #506. --------- Co-authored-by: Otter <[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.
A host can show what a tool call did, but not how long it ran. Codex
sleepcalls (#84) need this most. The model asks to wait 50 s and a steer cuts the wait short; only the observed times show how long it actually waited ("Waited 8 s of 50 s").What changes
ViewParttool gets optionalstartedAtandendedAt: thereceivedAtof the call'stool_call_startedandtool_call_endedrecords, in epoch ms. This is the same rule astasksOf'sTaskView.endedAt.startedAt.docs/design/chat-ui.md's mapping row says so.Tests
pnpm run checkpasses.Scope agreed with @cindy.
🤖 Generated with Claude Code