yao/agent/sandbox
Max c26d764857 fix(sandbox/v2): oneshot containers never cleaned up by watcher
Three related bugs caused oneshot containers to run indefinitely:

1. watcher.go: switch b.policy had no case OneShot, so even when the
   idle timeout fired, no remove action was emitted.

2. watcher.go + manager.go/recoverBoxes: idleTimeoutD was only set for
   Session and LongRunning on recovery; OneShot defaulted to 0, which
   caused the watcher to hit the `timeout <= 0` early-return and skip
   all checks entirely.

3. agent/sandbox/v2/options.go: same gap — opts.IdleTimeout == 0 guard
   only filled defaults for Session and LongRunning.

Fix: add DefaultOneShotIdleTimeout (30 min), wire it in recoverBoxes
and options.go, and add case OneShot → Remove in watcher.go.

Made-with: Cursor
2026-03-29 23:01:21 +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): oneshot containers never cleaned up by watcher 2026-03-29 23:01:21 +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