Skip to content

fix sandbox limit#462

Merged
rayrayraykk merged 3 commits intoagentscope-ai:mainfrom
rayrayraykk:weirui/dev/fix_sandbox0319v2
Mar 19, 2026
Merged

fix sandbox limit#462
rayrayraykk merged 3 commits intoagentscope-ai:mainfrom
rayrayraykk:weirui/dev/fix_sandbox0319v2

Conversation

@rayrayraykk
Copy link
Copy Markdown
Member

Description

[Describe what this PR does and why]

Related Issue: Fixes #[issue_number] or Relates to #[issue_number]

Security Considerations: [If applicable, especially for sandbox changes]

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Engine
  • Sandbox
  • Tools
  • Common
  • Documentation
  • Tests
  • CI/CD

Checklist

  • Pre-commit hooks pass
  • Tests pass locally
  • Documentation updated (if needed)
  • Ready for review

Testing

[How to test these changes]

Additional Notes

[Optional: any other context]

@rayrayraykk rayrayraykk requested review from a team and Copilot March 19, 2026 09:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR bumps the runtime version and adds an early-return guard in SandboxManager.create() to stop creating new sandboxes when the configured max_sandbox_instances cap has been reached.

Changes:

  • Bump package/runtime version to 1.1.2b1 / v1.1.2b1.
  • Add a limit check in SandboxManager.create() that logs and returns None when the active instance count reaches max_sandbox_instances.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/agentscope_runtime/version.py Updates runtime __version__ constant.
src/agentscope_runtime/sandbox/manager/sandbox_manager.py Adds guard to enforce the max sandbox instance limit in create().
pyproject.toml Updates package version metadata.

Comment thread src/agentscope_runtime/sandbox/manager/sandbox_manager.py
Comment thread src/agentscope_runtime/sandbox/manager/sandbox_manager.py
Comment thread src/agentscope_runtime/version.py
Comment thread src/agentscope_runtime/sandbox/manager/sandbox_manager.py
@rayrayraykk rayrayraykk merged commit 48d6a32 into agentscope-ai:main Mar 19, 2026
6 checks passed
@rayrayraykk rayrayraykk linked an issue Mar 19, 2026 that may be closed by this pull request
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.

[Bug] MAX_SANDBOX_INSTANCE not enabled

2 participants