Repository navigation
Conversation
A Strands tool or hook can call interrupt() to wait for a person's answer. The agent then returns with stop_reason "interrupt" and the pending question in result.interrupts. invoke_durably() treated that as a finished run: it deleted the saved state and returned, so a task that returned str(invoke_durably(...)) succeeded with the interrupt list in XCom, and the tool that asked never ran. invoke_durably() now raises UnsupportedToolDeferralError naming each interrupt, and the task fails without retrying, as run_durably does for the OpenAI Agents SDK when a run stops for tool approval. The message leaves out each interrupt's reason, which can hold the data waiting for review. The saved state is kept, so clearing the task with its task state kept resumes from the last pause instead of running the earlier cycles again.
Lee-W
force-pushed
the
common-ai-strands-interrupt-fail
branch
from
December 1, 2026 15:11
50a45d2 to
7c60ac6
Compare
This branch has not been deployed
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.
The modal connection type only modelled an API token, so a deployment that
was given Modal OAuth client credentials had to fall back to MODAL_OAUTH_*
environment variables on every worker.
The connection now accepts oauth_refresh_token, oauth_client_id and
oauth_client_secret in its extra. With all three set and login/password
empty, ModalHook builds the client with Client.from_oauth_credentials, on
both the sync and the async (trigger) path. A token field together with an
OAuth field, or only some of the OAuth fields, raises ModalConnectionError
instead of falling back to ambient credentials.
Client.from_oauth_credentials first shipped in modal 1.5.5, so the floor
moves from 1.5.0 to 1.5.5.
The async path now reads the connection extra with get_async_extra_dejson,
since Connection.extra_dejson masks secrets through a synchronous
supervisor call that must not run on the triggerer's event loop.
The Common AI Modal sandbox backend's rejected-credentials message no
longer says "login and password", which would be wrong for an OAuth
connection.
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.