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
classifyTool: codex fileChange yields no file path (its input is the changes array) #166
classifyTool("codex", "fileChange", input) returns { kind: "edit_file" } with no detail. codexItemInput (codex/item-detail.ts) makes a fileChange item's input JSON.stringify(item.changes), an array, and detailOf only reads a JSON object (asRecord(parseJson(...)) is null for an array), so no path comes out.
Every other runtime's edit tool yields its file path (claude Edit/Write → file_path, pi/opencode/cursor edit/write → path).
Why it matters to a host
Ferry now builds a short opening for a conversation started fresh after a long break (Ferry D072). It lists the files the agent read or wrote, from classifyTool on each call. Codex edits show up as actions but never as files, so a fresh codex conversation doesn't know which files it changed. Any host showing "edited " lines has the same gap for codex.
Suggestion
For codex fileChange, read the changed paths from the changes array (app-server v2 FileUpdateChange has path, plus kind and diff; please confirm against a recording, since tests/replay/fixtures has no fileChange item with changes today):
detail: the first changed path (or path (+N more)), consistent with other edit tools;
possibly a paths: string[] field on ToolAction for multi-file changes, if you think hosts need all of them.
Found while building Ferry D072 (Raft #proj-ferry, task #57).
Shape decided by @cindy (Raft #proj-ferry thread b5bd1066, msg a4c67663):
Record first. Commit a real codex fileChange as a replay fixture (codex-aimock script: have it apply_patch two files, one of them new; or a real run). The mapping and tests follow the recording. From codex source the shape is changes: [{ path, kind, diff }] with kind: { type: "add" | "delete" | "update", move_path? }; whether move_path is snake or camel case in JSON is whatever the recording says.
Every file path the call involves, in the runtime's order, deduplicated. Set only on read_file and edit_file; absent when the input has no path.
Uniform across runtimes: claude Edit/Write/Read, and pi, opencode, cursor read/write tools also get paths (the one path detail extracts today), so hosts read paths without per-runtime logic.
codex fileChange: each change's path, plus the move target for renames.
detail keeps its meaning: the first of paths. No display text like "(+N more)" in detail; how to show it is the host's call.
kind is not split per change: one fileChange may add, update and delete; the call stays edit_file.
Tests: assert codex paths and detail against the recording; for each runtime with read/write tools, one assertion that paths equals the old detail; absent when there's no path. Docs: tool-activity.ts comments and the observe docs. Additive only → minor.
Activity
xxchan commentedon Oct 7, 2026
Shape decided by @cindy (Raft #proj-ferry thread
b5bd1066, msga4c67663):Record first. Commit a real codex
fileChangeas a replay fixture (codex-aimock script: have it apply_patch two files, one of them new; or a real run). The mapping and tests follow the recording. From codex source the shape ischanges: [{ path, kind, diff }]withkind: { type: "add" | "delete" | "update", move_path? }; whethermove_pathis snake or camel case in JSON is whatever the recording says.ToolActiongains optionalpaths?: readonly string[]read_fileandedit_file; absent when the input has no path.Edit/Write/Read, and pi, opencode, cursor read/write tools also getpaths(the one pathdetailextracts today), so hosts readpathswithout per-runtime logic.fileChange: each change'spath, plus the move target for renames.detailkeeps its meaning: the first ofpaths. No display text like "(+N more)" indetail; how to show it is the host's call.kindis not split per change: onefileChangemay add, update and delete; the call staysedit_file.Tests: assert codex
pathsanddetailagainst the recording; for each runtime with read/write tools, one assertion thatpathsequals the olddetail; absent when there's no path. Docs:tool-activity.tscomments and the observe docs. Additive only → minor.fix(observe): claude NotebookEdit names its notebook in paths
chore: release v0.29.0 (#168)
fix(codex): keep sessions open on a refused name and start in the ses…