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
fix(copilot): recover tool arguments lost when a call is checkpointed mid-generation
Tool arguments reach Sim two ways: whole on a frame's `arguments`, or in pieces
as `args_delta` chunks that accumulate into `streamingArgs`. Only the first
populated `params`, so a call checkpointed before any frame carried `arguments`
executed with `{}` and failed its own schema on every required property. The
file subagent's `workspace_file` calls arrive exactly that way, which left the
agent retrying and then routing around the tool entirely.
- executor: hydrate `params` from the streamed deltas before dispatch, covering
both normal dispatch and the never-dispatched resume path.
- handlers: record the subagent channel at registration rather than only on a
finalized frame, so the workspace_file -> edit_content intent handoff can find
its intent instead of reporting "No workspace_file context found".
- preview adapter: pass the frame's tool call id into file delegation, which
derives its audit id from it. Without it every preview threw and no file
content streamed at all.
- run: a checkpointed call with no recorded result now reports a failed result
instead of throwing, which ended the whole turn and cost the user the entire
response.
Each fix has a regression test verified to fail without it.
0 commit comments