Skip to content

Comments

expose sandbox labels in SandboxEnv and CliAgentEnv#768

Merged
willccbb merged 2 commits intomainfrom
daniel/cli-agent-env-sandbox-labels
Jan 23, 2026
Merged

expose sandbox labels in SandboxEnv and CliAgentEnv#768
willccbb merged 2 commits intomainfrom
daniel/cli-agent-env-sandbox-labels

Conversation

@rasdani
Copy link
Contributor

@rasdani rasdani commented Jan 23, 2026

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass when running uv run pytest locally.
  • New tests have been added to cover the changes

Checklist

  • My code follows the style guidelines of this project as outlined in AGENTS.md
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Additional Notes


Note

Introduces optional labeling for sandboxes to aid organization and filtering across experiments.

  • Add labels: list[str] | None to SandboxEnv and CliAgentEnv constructors; pass through to CreateSandboxRequest (labels=... or [])
  • Documentation updates:
    • docs/environments.md: note and example showing labels usage for SandboxEnv/CliAgentEnv
    • docs/reference.md: add SandboxEnv signature and key parameters table including labels; expand CliAgentEnv description with supported sandbox config options

Written by Cursor Bugbot for commit af82a4e. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@rasdani rasdani requested a review from willccbb January 23, 2026 01:03
- Document the labels parameter in docs/environments.md under Stateful Tool Environments
- Add example showing how to use labels for sandbox categorization
- Expand SandboxEnv API reference with full constructor signature and parameter table
- Update CliAgentEnv description to mention supported sandbox parameters including labels

Co-authored-by: daniel <daniel@ellamind.com>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ rasdani
❌ cursoragent
You have signed the CLA already but the status is still pending? Let us recheck it.

@willccbb willccbb merged commit c7daf68 into main Jan 23, 2026
6 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.

4 participants