Skip to content

fix: expose the scripted sandbox session type - #4406

Merged
seratch merged 1 commit into
mainfrom
fix/scripted-sandbox-public-type
Aug 14, 2026
Merged

fix: expose the scripted sandbox session type#4406
seratch merged 1 commit into
mainfrom
fix/scripted-sandbox-public-type

Conversation

@seratch

@seratch seratch commented Aug 14, 2026

Copy link
Copy Markdown
Member

This pull request fixes the pre-release typing surface for scripted sandbox sessions. scripted_sandbox_session() now returns a public abstract ScriptedSandboxSession that retains nominal BaseSandboxSession compatibility while exposing calls, remaining_steps, and assert_complete().

The private implementation continues to own normalized-step construction, so internal machinery does not become part of the public API. The change also explicitly types the scripted-call exception metadata and records the canonical re-export in the prospective API contract policy for v0.21.0.

@seratch seratch added this to the 0.21.x milestone Aug 14, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd88ffa024

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +88 to +92
"canonical_module": "agents.testing.sandbox",
"canonical_name": "ScriptedSandboxSession",
"module": "agents.testing",
"name": "ScriptedSandboxSession"
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Register the new public result properties

When the next released API contract is generated, this entry preserves only the canonical import identity; the generator deliberately does not infer properties. Because calls and remaining_steps are part of the newly exposed result interface but are absent from public_properties, the frozen contract will not detect their later removal or renaming. Add both properties to the policy entry for agents.testing.ScriptedSandboxSession.

Useful? React with 👍 / 👎.

@seratch
seratch force-pushed the fix/scripted-sandbox-public-type branch from dd88ffa to 33a7b5f Compare August 14, 2026 01:34
@seratch
seratch merged commit dc1bef7 into main Aug 14, 2026
14 checks passed
@seratch
seratch deleted the fix/scripted-sandbox-public-type branch August 14, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant