agents: add size_slug convenience property to AgentSession - #724
Open
mishraishika24-pixel wants to merge 1 commit into
Open
mishraishika24-pixel wants to merge 1 commit into
mishraishika24-pixel wants to merge 1 commit into
Conversation
harness-api now persists and returns the effective sandbox size a session actually booted at (session.size_slug, e.g. "mars-2vcpu-4gb"). pydo's hosted-agents layer is hand-written and untyped — SessionsOperations.get() returns the raw JSON dict verbatim — so the field already flows through unmodified. Add a size_slug property to AgentSession / AsyncAgentSession, mirroring the existing agent_kind accessor; None when absent (no sandbox yet, or a session predating the field). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
mishraishika24-pixel
force-pushed
the
marsohs-1076-size-slug-property
branch
from
October 1, 2026 06:47
29f86e8 to
c200ae6
Compare
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
MARSOHS-1076: harness-api now persists and returns the effective sandbox size a session booted at (
session.size_slug, e.g."mars-2vcpu-4gb").pydo's hosted-agents layer (
src/pydo/agents/) is hand-written and untyped:SessionsOperations.get()returns the raw JSON dict verbatim, so the new field already flows through unmodified. This PR only adds asize_slugconvenience property toAgentSession/AsyncAgentSession, mirroring the existingagent_kindproperty.Server change: digitalocean/cthulhu#175680.
Changes
src/pydo/agents/session.py/src/pydo/aio/agents/session.py:size_slugproperty readinginfo.get("size_slug");Nonewhen absent.tests/agents/test_session_highlevel.py: sync + async tests (present, absent).Rebased onto current
main; the earlier version of this branch was stacked on unmergedOHS_endpointshistory and showed ~30k unrelated lines.Testing
pytest tests/agents/: 175 passed.black --check(24.x, as pinned) clean.