Files
openclaw/src/cli
sheeek 5e78d5a21f feat: add sandbox CLI commands for container management
Add 'clawd sandbox list' and 'clawd sandbox recreate' commands to manage
sandbox containers. This fixes the issue where containers continue using
old images/configs after updates.

Problem:
- When sandbox Docker images or configs are updated, existing containers
  keep running with old settings
- Containers are only recreated after 24h inactivity (pruning)
- If agents are used regularly, old containers run indefinitely

Solution:
- 'clawd sandbox list': Show all containers with status, age, and image match
- 'clawd sandbox recreate': Force container removal (recreated on next use)
  - Supports --all, --session, --agent, --browser filters
  - Requires confirmation unless --force is used

Implementation:
- Added helper functions to sandbox.ts (list/remove containers)
- Created sandbox-cli.ts following existing CLI patterns
- Created commands/sandbox.ts with list and recreate logic
- Integrated into program.ts

Use case: After updating sandbox images or changing sandbox config,
run 'clawd sandbox recreate --all' to ensure fresh containers.
2026-01-09 13:22:51 +01:00
..
2026-01-09 08:51:22 +01:00
2026-01-08 04:44:15 +00:00
2026-01-09 05:27:54 +00:00
2026-01-04 14:38:51 +00:00
2026-01-07 02:03:06 +01:00
2026-01-04 14:38:51 +00:00
2026-01-09 08:13:04 +01:00
2026-01-08 08:26:40 +01:00
2026-01-09 11:07:00 +01:00
2026-01-08 08:26:40 +01:00
2026-01-08 07:23:05 +01:00
2026-01-08 07:23:05 +01:00
2026-01-08 06:37:03 +01:00
2026-01-03 23:57:17 +00:00