Skip to content

fix: replay scripted tool calls in session history - #346

Open
omarluq wants to merge 1 commit into
agentclientprotocol:mainfrom
omarluq:fix/scripted-tool-call-history
Open

fix: replay scripted tool calls in session history#346
omarluq wants to merge 1 commit into
agentclientprotocol:mainfrom
omarluq:fix/scripted-tool-call-history

Conversation

@omarluq

@omarluq omarluq commented Jul 30, 2026

Copy link
Copy Markdown

Newer Codex models record a tool call as custom_tool_call (a script in input) instead of function_call (JSON in arguments), and the history fallback only handled the latter, so on session/load those calls hit default and were dropped.

The fix adds both record types to the existing tool-call branches, which already carry the dedup and terminal bookkeeping, and teaches the builder to read input as well as arguments.

@omarluq
omarluq force-pushed the fix/scripted-tool-call-history branch from 7e0d5df to 9bde195 Compare July 30, 2026 20:23
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.

1 participant