yao/agent/sandbox
Max cc0bb7e161 fix(sandbox/v2): LifecycleAction uses computer.BoxID instead of cfg.ID
cfg (ast.SandboxV2) is a pointer shared across all concurrent calls to
the same Assistant. GetComputer writes cfg.ID = <random hex> for each
oneshot request, so concurrent tasks overwrite each other's ID.

When cleanup runs in defer, cfg.ID holds whichever task last wrote it —
not the ID of the box this request created — so manager.Remove/Heartbeat
silently fails with "sandbox: not found" and the container leaks.

Fix: derive the box ID from computer.ComputerInfo().BoxID, which is the
immutable b.id set at Create time and never mutated by concurrent callers.

Made-with: Cursor
2026-03-29 23:08:50 +08:00
..
claude Enhance robot execution with language model integration and logging 2026-02-26 14:23:42 +08:00
cursor Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00
v2 fix(sandbox/v2): LifecycleAction uses computer.BoxID instead of cfg.ID 2026-03-29 23:08:50 +08:00
DESIGN.md Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00
executor.go Implement support for Anthropic connectors in the LLM and sandbox components 2026-02-11 12:05:07 +08:00
executor_test.go Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00
integration_test.go Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00
PLAN.md Implement MCP Configuration and Tool Integration for Sandbox 2026-01-30 19:57:31 +08:00
types.go Implement support for Anthropic connectors in the LLM and sandbox components 2026-02-11 12:05:07 +08:00
types_test.go Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00