chore: release main#456
Merged
danielmillerp merged 3 commits intoJul 1, 2026
Merged
Conversation
…#447) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…l event (#453) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
4f3a81a to
05514b6
Compare
danielmillerp
approved these changes
Jul 1, 2026
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.17.0
0.17.0 (2026-07-01)
Full Changelog: agentex-client-v0.16.2...agentex-client-v0.17.0
Features
agentex-sdk: 0.17.0
0.17.0 (2026-07-01)
Full Changelog: agentex-sdk-v0.16.2...agentex-sdk-v0.17.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 (0.17.0) introduces opt-in continue-as-new recycling for long-lived Temporal agent workflows, allowing chat/session agents to stay open indefinitely without hitting Temporal's ~50k-event/50MB history limit. The execution timeout default is also changed from 24h to
Noneto support these indefinitely-running workflows.BaseWorkflowgains four lifecycle helpers (should_continue_as_new,drain_and_continue_as_new,run_until_complete,is_continued_run) that implement the full recycle loop: waiting for Temporal's suggestion, draining in-flight signal handlers before crossing the boundary, and guarding one-time prologue work on recycled runs.WORKFLOW_EXECUTION_TIMEOUT_SECONDSdefault changed from86400(24h) toNone; thetemporal_task_serviceandtemporal_clientare updated to passNonethrough to Temporal as no execution timeout.000_hello_acptutorial is updated to userun_until_completeas the canonical adoption pattern, and new unit tests covershould_continue_as_new/is_continued_runby fakingworkflow.info().Confidence Score: 5/5
Safe to merge; the continue-as-new recycling logic is correctly implemented and the opt-in design means existing agents are unaffected until they adopt run_until_complete.
The core recycle loop correctly sequences wait_condition, handler drain, and continue_as_new; the completion-during-drain edge case is explicitly handled. The execution timeout default change and the per-run timeout semantics were already reviewed in prior comment threads. No new defects were found in this pass.
No files require special attention beyond what was already discussed in prior review threads.
Important Files Changed
Sequence Diagram
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant C as Client participant W as BaseWorkflow participant T as Temporal Server C->>T: start_workflow(CreateTaskParams) T->>W: on_task_create(params) - original run W->>W: is_continued_run false, emit welcome W->>W: run_until_complete(params) loop wait_condition W->>W: wait for is_complete OR should_continue_as_new T->>W: on_task_event_send(signal) W-->>T: activity result end alt Temporal suggests continue-as-new W->>W: drain_and_continue_as_new(params) W->>W: wait all_handlers_finished W->>T: workflow.continue_as_new(params) T->>W: on_task_create(params) - recycled run W->>W: is_continued_run true, skip welcome W->>W: run_until_complete(params) else is_complete becomes true W-->>C: workflow completes normally end%%{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 C as Client participant W as BaseWorkflow participant T as Temporal Server C->>T: start_workflow(CreateTaskParams) T->>W: on_task_create(params) - original run W->>W: is_continued_run false, emit welcome W->>W: run_until_complete(params) loop wait_condition W->>W: wait for is_complete OR should_continue_as_new T->>W: on_task_event_send(signal) W-->>T: activity result end alt Temporal suggests continue-as-new W->>W: drain_and_continue_as_new(params) W->>W: wait all_handlers_finished W->>T: workflow.continue_as_new(params) T->>W: on_task_create(params) - recycled run W->>W: is_continued_run true, skip welcome W->>W: run_until_complete(params) else is_complete becomes true W-->>C: workflow completes normally endReviews (2): Last reviewed commit: "chore: release main" | Re-trigger Greptile