Skip to content

fix: preserve cancelled shell command tool results#13262

Draft
oz-for-oss[bot] wants to merge 1 commit into
masterfrom
oz-agent/implement-issue-13251
Draft

fix: preserve cancelled shell command tool results#13262
oz-for-oss[bot] wants to merge 1 commit into
masterfrom
oz-agent/implement-issue-13251

Conversation

@oz-for-oss

@oz-for-oss oz-for-oss Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Closes #13251

Summary

  • Preserve command text for cancelled run_shell_command results.
  • Send cancelled request-command results back to the API as explicit RunShellCommandResult tool results instead of dropping them.
  • Update restored conversation, shell-command execution, UI, and SDK output paths for the new cancellation result shape.

Validation

  • cargo test --manifest-path /workspace/warp/Cargo.toml -p ai cancelled_request_command_converts_to_explicit_tool_result
  • cargo test --manifest-path /workspace/warp/Cargo.toml -p warp test_into_exchanges_with_tool_calls_and_cancellation
  • cargo fmt --manifest-path /workspace/warp/Cargo.toml --all --check
  • cargo check --manifest-path /workspace/warp/Cargo.toml -p warp --lib

Notes

  • No approved spec context was attached for this issue.
  • The requested GitHub context fetch script was not present in the checkout/workspace, so the issue body/comments could not be fetched through that mandated script.

Conversation: https://app.warp.dev/conversation/b4ab29ea-b7a7-4c27-83d4-ebc3257b32c5
Run: https://oz.warp.dev/runs/019f1ac3-0710-7729-8001-f2af1227e47f
This PR was generated with Oz.

Co-Authored-By: Safia Abdalla <captainsafia@users.noreply.github.com>

Co-Authored-By: Oz <oz-agent@warp.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autonomous runs: slow commands self-cancel + retry loop (unresolved tool call)

1 participant