Skip to content

[upstream-sync] Port upstream PR #970: add "timeout" to ToolResultType#80

Closed
github-actions[bot] wants to merge 1 commit intomainfrom
upstream-sync/2026-04-02-9a3f20b6e1b4cecb
Closed

[upstream-sync] Port upstream PR #970: add "timeout" to ToolResultType#80
github-actions[bot] wants to merge 1 commit intomainfrom
upstream-sync/2026-04-02-9a3f20b6e1b4cecb

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 2, 2026

Summary

Ports changes from upstream github/copilot-sdk PR #970: Pass structured tool results via RPC instead of stringifying.

Upstream Changes Ported

PR #970 — adds "timeout" as a valid ToolResultType value:

  • types.ts: ToolResultType extended with "timeout":
    "success" | "failure" | "rejected" | "denied""success" | "failure" | "rejected" | "denied" | "timeout"
  • session.ts: Added isToolResultObject type guard so structured ToolResultObject values are passed directly via RPC instead of being JSON-stringified (the Clojure SDK already had equivalent behavior via normalize-tool-result).

Clojure changes

  • src/github/copilot_sdk/specs.clj: Added :timeout and "timeout" to ::result-type spec set.
  • CHANGELOG.md: Added entry under [Unreleased]### Changed (v0.2.1 sync).

Note: The isToolResultObject structured pass-through behavior (the other half of PR #970) was already correctly implemented in the Clojure SDK's normalize-tool-result function in session.clj. No change needed there.

Upstream Changes Skipped

PR Reason
#983 CI/CD: agentic workflow tooling changes only
#978 Runtime version bump + re-enabling skipped tests (no SDK API change)
#917 Already ported in previous sync

Testing

Tests could not run in this environment (Maven dependencies unavailable, network access blocked). The change is a one-line addition of "timeout" to an existing set literal in specs.clj — structurally identical to the existing entries.

Generated by Upstream Sync Agent ·

  • expires on Apr 9, 2026, 2:27 PM UTC

Add :timeout/:"timeout" to the ::result-type spec, matching the upstream
addition of "timeout" as a valid resultType value for structured tool
results (ToolResultObject).

Upstream PR: github/copilot-sdk#970

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant