Skip to content

ACP view drops tool input that arrives in tool_call_update (opencode, kimi) #147

Closed

Description

@xxchan

What happens

Some ACP runtimes send a tool call's real arguments only in a later tool_call_update, not in the first tool_call. oar's projection takes tool_call_started.input from the first frame only, so hosts never see the command or the file path.

Seen with opencode 1.18.30 through opencodeRuntime (oar 0.23.0), on a real turn run through Ferry (2026-10-06):

tool_call         title "bash"  kind execute  status pending      rawInput {"cwd":"/tmp/x"}
tool_call_update  title "echo hi > a.txt && cat a.txt"  status in_progress  rawInput {"command":"echo hi > a.txt && cat a.txt","cwd":"/tmp/x"}
tool_call         title "read"  kind read     status pending      rawInput {}
tool_call_update  title "read"  status in_progress  rawInput {"filePath":"/tmp/x/a.txt"}

Ferry's transcript then shows bash {"cwd":"/tmp/x"} and read {}: no command, no file. kimi's Bash has the same shape (its first frame has no arguments; noted as a known limitation in #139).

Suggestion

  • When a tool_call_update carries rawInput for a call whose started input was empty or a strict subset, surface it: either a new record (e.g. tool_call_input with the full input) that the view folds into the tool part's input, or let the view's tool part take the latest rawInput while the call runs. Keep the started record verbatim either way.
  • Then classifyTool can recognize opencode's bash (command, plus description if present) and read (filePath), with a recording of this turn as the test, the same way feat(observe): classifyTool reads grok's and kimi's recorded shell tools #139 did for grok and kimi.

Happy to send the PR if you agree on the shape.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions