Repository navigation
docs(extensions): say when an error keeps its class - #994
Merged
Merged
Conversation
The README said that an AgentCore error that leaves the agentcore_session handler keeps its class. That is true only when the handler raises the error itself. An AgentCore error that crosses a child context that the handler created reaches the caller as ChildContextError, with its message but not its class. So the README now states both cases, as the docstring does.
yaythomas
approved these changes
Nov 25, 2026
This branch was successfully 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.
What
The extensions README now says exactly when an
agentcore_sessionerror keeps its AgentCore class.Why
session.invokecan run in a child context that the handler created.agentcore_sessiondocstring says that an AgentCore error that crosses such a child context reaches the caller asChildContextError, with its message but not its class.So the README and the docstring disagreed.
Change
One sentence in the
agentcore_sessionsection ofpackages/aws-durable-execution-sdk-python-extensions/README.mdbecomes two:ChildContextError, with its message but not its class.No code change.
Testing
agentcore_sessiondocstring incompute/agentcore/session.py..github/scripts/lintcommit.py --range origin/main..HEADpasses: 1 commit.Closes #993
Part of #954
Twin item: aws/aws-durable-execution-sdk-js#1290