Skip to content

Revert support for draft session#9

Merged
chiragjn merged 1 commit into
mainfrom
cj-revert-draft-session-support
Jul 13, 2026
Merged

Revert support for draft session#9
chiragjn merged 1 commit into
mainfrom
cj-revert-draft-session-support

Conversation

@chiragjn

@chiragjn chiragjn commented Jul 13, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
Breaking API change for callers that wrapped DraftSession or relied on optional agent_name; scope is limited to the agents session wrapper layer.

Overview
Removes draft session support from the high-level AgentSession and AsyncAgentSession wrappers so they only accept the regular Session type again.

Constructors no longer accept DraftSession (the DraftSession type import is removed), and agent_name is typed as required str on both sync and async classes instead of Optional[str], matching persisted sessions rather than draft payloads.

Reviewed by Cursor Bugbot for commit f288e91. Bugbot is set up for automated code reviews on this repo. Configure here.

@chiragjn
chiragjn merged commit aca1ff8 into main Jul 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant