Skip to content

Follow-ups from tool-call ordering fix (3aa3ba9) #42

Open

Description

@anildukkipatty

Review findings deferred from the change that interleaves agent text and tool calls (commit 3aa3ba9).

Must fix

  • High: OpenCode history shows raw JSON as "files changed" chips. changedPath() (ui/app/lib/tool-ui.ts) treats string input as a path, but OpenCode stores input as JSON.stringify(input) (src/start-opencode.ts). Parse JSON strings and read filePath/file_path/path, or have the server send a clean path label.
  • Medium: the same bug hits Claude MultiEdit (no formatToolInput case) and Codex calls with unrecognised names, which keep their raw args (src/start-codex.ts). Real chips reached 25 KB. Also map Codex Write/Edit to file_path and Bash to command.
  • Medium-low: patchBlocks() trims lines, so a context line *** Update File: x becomes a phantom Edit. Match the raw line with only \r stripped.

Smaller

  • Patch edge cases: *** Move to: ignored; a patch with no headers, or an apply_patch with no input, disappears from history; a single 3-file patch counts as 3 tool calls.
  • No size cap on Codex tool inputs sent to the UI (cap at ~500 chars).
  • Expanded rows collapse when the user sends a message (startTurn resets openGroups) and at the live→history swap (keys differ).
  • Row text can change at the swap (absolute vs relative paths; shell wrapper vs bare command).
  • Jarvis readThreadTail default of 5 can now be all tool lines for Codex.
  • Add tests for changedPath / extractChangedFiles.

Unrelated, existing bug: Claude Code threads in folders under /tmp show no replies, because the transcript is saved under /private/tmp/... but gitbot looks under /tmp/....

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