Skip to content

feat(cli): add Interactions API long-decode continuation - #198

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara/1017739794
Nov 25, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
copybara/1017739794

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

feat(cli): add Interactions API long-decode continuation

Enables automatic multi-hop continuation across JSON and SSE streaming on
generate and agent run, exposes --continuation-token,
--previous-interaction-id, and --store, and allows stored-mode manual
resumes to omit prompt input.

@copybara-service
copybara-service Bot requested a review from a team November 10, 2026 02:03
copybara-service Bot pushed a commit that referenced this pull request Nov 10, 2026
Upstream changes (v2.959.1 -> v2.960.7):
- python: resolve enum discriminator tags in dict union input (#204)
- go: read nested and inferred error messages in typed errors (#202)
- java: read nested and inferred error messages in typed errors (#201)
- cli: compose continuation recipes across command modes (#190)
- cli: preserve error formats for raw artifact responses (#197)
- cli: classify invalid path parameters as usage errors (#198)
- typescript: type-check event streams against async-disposable ReadableStream iterators (#196)
- csharp: add bodyVariantOverloads option for union request bodies (#188)
- typescript,python,mcp: parse the debug environment variable as a boolean flag (#194)

PiperOrigin-RevId: 1017739788
copybara-service Bot pushed a commit that referenced this pull request Nov 10, 2026
Upstream changes (v2.959.1 -> v2.960.7):
- python: resolve enum discriminator tags in dict union input (#204)
- go: read nested and inferred error messages in typed errors (#202)
- java: read nested and inferred error messages in typed errors (#201)
- cli: compose continuation recipes across command modes (#190)
- cli: preserve error formats for raw artifact responses (#197)
- cli: classify invalid path parameters as usage errors (#198)
- typescript: type-check event streams against async-disposable ReadableStream iterators (#196)
- csharp: add bodyVariantOverloads option for union request bodies (#188)
- typescript,python,mcp: parse the debug environment variable as a boolean flag (#194)

PiperOrigin-RevId: 1017739788
copybara-service Bot pushed a commit that referenced this pull request Nov 16, 2026
Upstream changes (v2.959.1 -> v2.961.2):
- go: fall back on empty error messages and prefix inferred messages with the error code (#215)
- go,cli,mockserver,terraform: bump staticcheck to v0.8.2 for Go 1.27.2 (#214)
- cli: keep auto-assigned flag shorthands stable across regenerations (#208)
- python: base64-encode raw bytes passed to base64 file input fields (#200)
- ruby: stop sub-SDKs named after Ruby or SDK constants from shadowing them (#206)
- python: resolve enum discriminator tags in dict union input (#204)
- go: read nested and inferred error messages in typed errors (#202)
- java: read nested and inferred error messages in typed errors (#201)
- cli: compose continuation recipes across command modes (#190)
- cli: preserve error formats for raw artifact responses (#197)
- cli: classify invalid path parameters as usage errors (#198)
- typescript: type-check event streams against async-disposable ReadableStream iterators (#196)
- csharp: add bodyVariantOverloads option for union request bodies (#188)
- typescript,python,mcp: parse the debug environment variable as a boolean flag (#194)

PiperOrigin-RevId: 1017739788
copybara-service Bot pushed a commit that referenced this pull request Nov 16, 2026
Upstream changes (v2.959.1 -> v2.961.2):
- go: fall back on empty error messages and prefix inferred messages with the error code (#215)
- go,cli,mockserver,terraform: bump staticcheck to v0.8.2 for Go 1.27.2 (#214)
- cli: keep auto-assigned flag shorthands stable across regenerations (#208)
- python: base64-encode raw bytes passed to base64 file input fields (#200)
- ruby: stop sub-SDKs named after Ruby or SDK constants from shadowing them (#206)
- python: resolve enum discriminator tags in dict union input (#204)
- go: read nested and inferred error messages in typed errors (#202)
- java: read nested and inferred error messages in typed errors (#201)
- cli: compose continuation recipes across command modes (#190)
- cli: preserve error formats for raw artifact responses (#197)
- cli: classify invalid path parameters as usage errors (#198)
- typescript: type-check event streams against async-disposable ReadableStream iterators (#196)
- csharp: add bodyVariantOverloads option for union request bodies (#188)
- typescript,python,mcp: parse the debug environment variable as a boolean flag (#194)

PiperOrigin-RevId: 1017739788
copybara-service Bot pushed a commit that referenced this pull request Nov 17, 2026
Upstream changes (v2.959.1 -> v2.961.2):
- go: fall back on empty error messages and prefix inferred messages with the error code (#215)
- go,cli,mockserver,terraform: bump staticcheck to v0.8.2 for Go 1.27.2 (#214)
- cli: keep auto-assigned flag shorthands stable across regenerations (#208)
- python: base64-encode raw bytes passed to base64 file input fields (#200)
- ruby: stop sub-SDKs named after Ruby or SDK constants from shadowing them (#206)
- python: resolve enum discriminator tags in dict union input (#204)
- go: read nested and inferred error messages in typed errors (#202)
- java: read nested and inferred error messages in typed errors (#201)
- cli: compose continuation recipes across command modes (#190)
- cli: preserve error formats for raw artifact responses (#197)
- cli: classify invalid path parameters as usage errors (#198)
- typescript: type-check event streams against async-disposable ReadableStream iterators (#196)
- csharp: add bodyVariantOverloads option for union request bodies (#188)
- typescript,python,mcp: parse the debug environment variable as a boolean flag (#194)

Behavior note (Python SDK, #200):
`Base64EncodedString` (`format: byte`) fields — including inline media `data`
and step `signature` fields — now always treat `bytes`, `bytearray`, and
`memoryview` inputs as raw binary bytes and base64-encode them. Callers who
previously passed pre-encoded ASCII base64 `bytes` (e.g.
`base64.b64encode(raw)` or `sig.encode()` without `.decode()`) relying on
Pydantic lax UTF-8 coercion must pass a `str` instead to avoid double-encoding.

PiperOrigin-RevId: 1017739788
copybara-service Bot pushed a commit that referenced this pull request Nov 17, 2026
Upstream changes (v2.959.1 -> v2.961.2):
- go: fall back on empty error messages and prefix inferred messages with the error code (#215)
- go,cli,mockserver,terraform: bump staticcheck to v0.8.2 for Go 1.27.2 (#214)
- cli: keep auto-assigned flag shorthands stable across regenerations (#208)
- python: base64-encode raw bytes passed to base64 file input fields (#200)
- ruby: stop sub-SDKs named after Ruby or SDK constants from shadowing them (#206)
- python: resolve enum discriminator tags in dict union input (#204)
- go: read nested and inferred error messages in typed errors (#202)
- java: read nested and inferred error messages in typed errors (#201)
- cli: compose continuation recipes across command modes (#190)
- cli: preserve error formats for raw artifact responses (#197)
- cli: classify invalid path parameters as usage errors (#198)
- typescript: type-check event streams against async-disposable ReadableStream iterators (#196)
- csharp: add bodyVariantOverloads option for union request bodies (#188)
- typescript,python,mcp: parse the debug environment variable as a boolean flag (#194)

Behavior note (Python SDK, #200):
`Base64EncodedString` (`format: byte`) fields — including inline media `data`
and step `signature` fields — now always treat `bytes`, `bytearray`, and
`memoryview` inputs as raw binary bytes and base64-encode them. Callers who
previously passed pre-encoded ASCII base64 `bytes` (e.g.
`base64.b64encode(raw)` or `sig.encode()` without `.decode()`) relying on
Pydantic lax UTF-8 coercion must pass a `str` instead to avoid double-encoding.

PiperOrigin-RevId: 1017739788
copybara-service Bot pushed a commit that referenced this pull request Nov 17, 2026
Upstream changes (v2.959.1 -> v2.964.1):
- cli: keep response metadata and issuing-hop bindings in continuation results (#219)
- cli: add continuation primitives for omitted fields, request-shape skips, stalled tokens, and combined results (#218)
- typescript: defer schema construction and add lazy Node entry point (#210)
- typescript: validate request parameters against schema patterns (#212)
- typescript,mcp: reject path parameters that form dot segments (#211)
- go: fall back on empty error messages and prefix inferred messages with the error code (#215)
- go,cli,mockserver,terraform: bump staticcheck to v0.8.2 for Go 1.27.2 (#214)
- cli: keep auto-assigned flag shorthands stable across regenerations (#208)
- python: base64-encode raw bytes passed to base64 file input fields (#200)
- ruby: stop sub-SDKs named after Ruby or SDK constants from shadowing them (#206)
- python: resolve enum discriminator tags in dict union input (#204)
- go: read nested and inferred error messages in typed errors (#202)
- java: read nested and inferred error messages in typed errors (#201)
- cli: compose continuation recipes across command modes (#190)
- cli: preserve error formats for raw artifact responses (#197)
- cli: classify invalid path parameters as usage errors (#198)
- typescript: type-check event streams against async-disposable ReadableStream iterators (#196)
- csharp: add bodyVariantOverloads option for union request bodies (#188)
- typescript,python,mcp: parse the debug environment variable as a boolean flag (#194)

Behavior note (Python SDK, #200):
`Base64EncodedString` (`format: byte`) fields — including inline media `data`
and step `signature` fields — now always treat `bytes`, `bytearray`, and
`memoryview` inputs as raw binary bytes and base64-encode them. Callers who
previously passed pre-encoded ASCII base64 `bytes` (e.g.
`base64.b64encode(raw)` or `sig.encode()` without `.decode()`) relying on
Pydantic lax UTF-8 coercion must pass a `str` instead to avoid double-encoding.

PiperOrigin-RevId: 1017739788
@copybara-service
copybara-service Bot force-pushed the copybara/1017739794 branch 2 times, most recently from 1389a0d to ed2e716 Compare November 18, 2026 06:29
copybara-service Bot pushed a commit that referenced this pull request Nov 18, 2026
Upstream changes (v2.959.1 -> v2.965.1):
- cli,typescript,mcp: bound JSON number parsing and harden path parameter URLs (#220)
- mcp: document HTTP auth for MCP Registry publishing in generated README (#199)
- typescript: compile MCP server when the document defines no servers (#216)
- cli: quote installer temporary directory in EXIT trap (#217)
- cli: keep response metadata and issuing-hop bindings in continuation results (#219)
- cli: add continuation primitives for omitted fields, request-shape skips, stalled tokens, and combined results (#218)
- typescript: defer schema construction and add lazy Node entry point (#210)
- typescript: validate request parameters against schema patterns (#212)
- typescript,mcp: reject path parameters that form dot segments (#211)
- go: fall back on empty error messages and prefix inferred messages with the error code (#215)
- go,cli,mockserver,terraform: bump staticcheck to v0.8.2 for Go 1.27.2 (#214)
- cli: keep auto-assigned flag shorthands stable across regenerations (#208)
- python: base64-encode raw bytes passed to base64 file input fields (#200)
- ruby: stop sub-SDKs named after Ruby or SDK constants from shadowing them (#206)
- python: resolve enum discriminator tags in dict union input (#204)
- go: read nested and inferred error messages in typed errors (#202)
- java: read nested and inferred error messages in typed errors (#201)
- cli: compose continuation recipes across command modes (#190)
- cli: preserve error formats for raw artifact responses (#197)
- cli: classify invalid path parameters as usage errors (#198)
- typescript: type-check event streams against async-disposable ReadableStream iterators (#196)
- csharp: add bodyVariantOverloads option for union request bodies (#188)
- typescript,python,mcp: parse the debug environment variable as a boolean flag (#194)

Behavior notes:
- Python SDK (#200): `Base64EncodedString` (`format: byte`) fields — including
  inline media `data` and step `signature` fields — now always treat `bytes`,
  `bytearray`, and `memoryview` inputs as raw binary bytes and base64-encode
  them. Callers who previously passed pre-encoded ASCII base64 `bytes` (e.g.
  `base64.b64encode(raw)` or `sig.encode()` without `.decode()`) relying on
  Pydantic lax UTF-8 coercion must pass a `str` instead to avoid double-encoding.
- TypeScript SDK (#220): `allowReserved` path parameters containing `?` or `#`
  are now sent percent-encoded (`%3F`, `%23`), matching Go's `reservedPathChars`.

PiperOrigin-RevId: 1017739788
@copybara-service
copybara-service Bot force-pushed the copybara/1017739794 branch 2 times, most recently from de286fe to bf1dde5 Compare November 19, 2026 23:02
@copybara-service copybara-service Bot changed the title feat(cli): configure Interactions API long-decode continuation recipe feat(cli): add Interactions API long-decode continuation Nov 19, 2026
@copybara-service
copybara-service Bot force-pushed the copybara/1017739794 branch 3 times, most recently from 0ffa7f3 to 9062263 Compare November 25, 2026 00:24
Enables automatic multi-hop continuation across JSON and SSE streaming on
`generate` and `agent run`, exposes `--continuation-token`,
`--previous-interaction-id`, and `--store`, and allows stored-mode manual
resumes to omit prompt input.

PiperOrigin-RevId: 1029428354
@copybara-service
copybara-service Bot merged commit 8c8dd8d into main Nov 25, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the copybara/1017739794 branch November 25, 2026 00:31
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.

0 participants