Skip to content

chore: release v0.29.0 - #168

Merged
xxchan merged 1 commit into
mainfrom
chore/release-0.29.0
Oct 7, 2026
Merged

xxchan merged 1 commit into
mainfrom
chore/release-0.29.0

Conversation

@xxchan

@xxchan xxchan commented Oct 7, 2026

Copy link
Copy Markdown
Member

Release OAR and CLI 0.29.0. This PR changes only the two package version fields.

New

  • ToolAction.paths (feat(observe): ToolAction.paths names every file a read or edit call involves #167, closes classifyTool: codex fileChange yields no file path (its input is the changes array) #166): on read_file and edit_file, every file path the call involves, in the runtime's order, each once; absent when the input names none. detail is its first entry.
    • codex fileChange: each change's path, and a rename's target right after its source. Codex fileChange calls previously had no detail; now detail is the first changed path, so oar run prints [Editing file] <path> for them.
    • claude Read / Edit / Write / NotebookEdit and the pi, opencode and cursor read and write tools: the one path the call names (NotebookEdit now has notebook_path as its detail too).
    • The ls tools (pi, cursor) give the listed directory.
    • kind stays edit_file for a fileChange that adds, updates and deletes at once.

Validation: all 13 checks passed on #167's final head (ab273f5), with a new real codex 0.160.1 fileChange replay fixture. After this PR passes CI and merges, tag its exact squash commit as v0.29.0 to trigger npm trusted publishing.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@xxchan
xxchan merged commit f1a2b88 into main Oct 7, 2026
13 checks passed
@xxchan
xxchan deleted the chore/release-0.29.0 branch October 7, 2026 04:23
stamp-build Bot added a commit that referenced this pull request Nov 5, 2026
<!-- stamp:review:v1 -->
<sup><img src="https://api.raft.build/api/avatars/pixel/bXVn.svg" width="16" height="16" align="absmiddle" alt=""> <b>Cindy</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_aae192914f0a2ddced59d68cf5f97163"><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 -->

Adds opt-in `SessionOptions.endTurnProcessesOnAbort` for Codex (task #168, Raft's #oar-raft:3a629875 item 1). Codex's `turn/interrupt` can leave a detached child and a yielded command running, so pressing Stop leaves the build going. Otter's native probe showed `thread/backgroundTerminals/terminate` and `clean` do not reach a setsid child and miss the launch window, and that `clean` also ends earlier work, so this does not use them.

How it works: a process-table read starts before each `turn/start` without delaying it, and another is taken before `turn/interrupt`. After `turn/completed` reports that turn `interrupted`, OAR ends the difference, with a start-identity check before any signal.

It spares:
- the app-server and everything in its process group (Codex's own `git` helpers, and the native binary behind the npm launcher)
- everything below an older process outside that group, so stdio MCP servers, their workers (including detached ones) and earlier background commands survive

OAR would rather not kill than kill wrongly. If either read fails or is unfinished, or the turn was not started by `prompt`, nothing is ended and the reason is recorded.

**Record:** a `cleanup` response on the abort request, after the turn's end. `SessionCleanup` `completed` and `failed` gain optional `signalled` (kills actually sent, not proof of exit), so `failed` can mean some were sent when others were refused. A host that needs the processes gone waits for this response, not the turn end.

**Other runtimes** refuse the option, and so does shared placement. **Windows** accepts it but ends nothing, recording why: with no process groups it cannot tell these processes apart. A vendor control that does not skip on Windows checks this; its first native run is this PR's CI.

Evidence on Linux x64, Codex 0.163.0 and 0.166.0, local provider (the vendor tests pass 6 of 6 on both):
- a foreground command's setsid child and a yielded command with its child are gone
- the MCP server, the earlier background command, and workers both fork during the aborted turn survive
- the next prompt completes, and a prompt sent from the old turn's end frame keeps its own baseline
- with the option off, the processes survive as before

The vendor test also asserts the process-group shape it relies on, so a Codex change turns it red. Guards were reverted one at a time and tests went red. `CI=1 pnpm run check` passed on this change before pushing.

Limits (in `docs/runtimes/codex.md`): a command started between the snapshot and the interrupt landing is missed. A launcher that gave the native binary its own group would make OAR end nothing. macOS has not been run natively, and Windows has only a unit test. Resume with the option was not exercised natively.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Cindy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

classifyTool: codex fileChange yields no file path (its input is the changes array)

1 participant