bridge-sdk: add feature-flagged sessions transport scaffold for start_agent#31
Open
jt-poolside wants to merge 2 commits intomainfrom
Open
bridge-sdk: add feature-flagged sessions transport scaffold for start_agent#31jt-poolside wants to merge 2 commits intomainfrom
jt-poolside wants to merge 2 commits intomainfrom
Conversation
tkpoolside
reviewed
Apr 2, 2026
| from bridge_sdk.models import ContentPartInput, to_proto_content_part | ||
| from bridge_sdk.proto import bridge_sidecar_pb2, bridge_sidecar_pb2_grpc | ||
|
|
||
| _DEFAULT_AGENT_NAME = "agent_1003_cc_v2_rc-fp8-tpr" |
Collaborator
There was a problem hiding this comment.
nit: Do we want to have this in the sdk? I think we may be able to get this through an api call if we need it, but we may be fine not having a default
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.
Summary
This PR adds an opt-in sessions-API transport path to
BridgeSidecarClient.start_agent()while keeping existing sidecar behavior as the default.What this changes
sidecardefault,sessionsbehind flag)./v0/agents/{agent_id}/sessions.continue_fromtranslation for sessions payload (previous_session_id,strategy=no_compaction).Why
This is prep work for the sidecar-elimination project. It lets us land SDK plumbing now (safely, behind a flag) while backend approvals/review for full behavior are still in flight.
Compatibility and rollout
sidecar).Full project context
Next
After backend
continue_from(no-compaction) support lands, we can enable the sessions path in the bridge execution flow and then remove sidecar-specific agent orchestration code in a follow-up PR.