chore: release main#463
Merged
stainless-app[bot] merged 4 commits intoJul 16, 2026
Merged
Conversation
stainless-app
Bot
force-pushed
the
release-please--branches--main--changes--next
branch
from
July 16, 2026 19:24
3ce2224 to
ab3217e
Compare
… capture (AGX1-391) (#462)
stainless-app
Bot
force-pushed
the
release-please--branches--main--changes--next
branch
from
July 16, 2026 20:14
ab3217e to
44dea4f
Compare
declan-scale
approved these changes
Jul 16, 2026
stainless-app
Bot
deleted the
release-please--branches--main--changes--next
branch
July 16, 2026 20:22
Contributor
Author
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Stainless prepared a new release
agentex-client: 0.20.0
0.20.0 (2026-07-16)
Full Changelog: agentex-client-v0.19.0...agentex-client-v0.20.0
Features
agentex-sdk: 0.20.0
0.20.0 (2026-07-16)
Full Changelog: agentex-sdk-v0.19.0...agentex-sdk-v0.20.0
Chores
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
Greptile Summary
This release (v0.20.0) adds a non-terminal
task/interruptverb that stops an agent's in-flight turn without tearing down the Temporal workflow, leaving the task continuable for the next message. It also ships a cooperative session-capture fix that records the CLI session ID from the earlysystem/init(claude-code) orthread.started(codex) envelope — rather than only from the terminalresult— so a turn that is interrupted before completion remains resumable.RPCMethod.TASK_INTERRUPT/InterruptTaskParamsin the ACP protocol,BaseACPServer.on_task_interruptdecorator,TemporalACPhandler,TemporalTaskService.interrupt()that sends aninterrupt_turnsignal (not cancel/terminate), and a non-abstractBaseWorkflow.on_interruptsignal handler so existing agents keep working unchanged.finallybackstop that closes the underlying source iterator/subprocess handle when the consuming task is cancelled mid-turn.TasksResource.interrupt()(sync + async),INTERRUPTEDadded to thestatusLiteral acrossTask, list/retrieve responses, and filter params; raw/streaming response wrappers wired consistently.Confidence Score: 5/5
Safe to merge — the interrupt path is additive and non-breaking; existing agents that do not override on_interrupt continue to work via the no-op base implementation.
All changes are additive: new protocol enum value, new Pydantic model, new Temporal signal handler (non-abstract), and new SDK endpoint. The signal-vs-cancel distinction is correctly enforced throughout. Stream-converter wrappers use a well-understood try/finally aclose pattern. Session-id early-capture fallback is guarded (prefers result, falls back to init). Tests cover the protocol shape, routing, Temporal signal identity, and the non-terminal invariant. No existing behavior is modified.
No files require special attention.
Important Files Changed
Sequence Diagram
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant CP as Control Plane participant ACP as TemporalACP (FastACP) participant TS as TemporalTaskService participant TW as BaseWorkflow (Temporal) participant Agent as Agent on_interrupt hook CP->>ACP: POST /api task/interrupt (JSON-RPC) ACP->>TS: interrupt(agent, task, request) TS->>TW: send_signal("interrupt_turn", InterruptTaskParams) Note over TW: Signal interleaves at await point<br/>WITHOUT acquiring turn lock TW->>Agent: on_interrupt(params) [override in interruptible agents] Agent-->>TW: stops in-flight turn (SIGINT / cancel asyncio.Task) Agent->>Agent: "calls tasks.interrupt(task_id) POST /tasks/{id}/interrupt" Note over Agent: Task status INTERRUPTED (non-terminal) Note over CP: Next event/message resumes task to RUNNING%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% sequenceDiagram participant CP as Control Plane participant ACP as TemporalACP (FastACP) participant TS as TemporalTaskService participant TW as BaseWorkflow (Temporal) participant Agent as Agent on_interrupt hook CP->>ACP: POST /api task/interrupt (JSON-RPC) ACP->>TS: interrupt(agent, task, request) TS->>TW: send_signal("interrupt_turn", InterruptTaskParams) Note over TW: Signal interleaves at await point<br/>WITHOUT acquiring turn lock TW->>Agent: on_interrupt(params) [override in interruptible agents] Agent-->>TW: stops in-flight turn (SIGINT / cancel asyncio.Task) Agent->>Agent: "calls tasks.interrupt(task_id) POST /tasks/{id}/interrupt" Note over Agent: Task status INTERRUPTED (non-terminal) Note over CP: Next event/message resumes task to RUNNINGReviews (3): Last reviewed commit: "chore: release main" | Re-trigger Greptile