mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 17:27:36 +00:00
* feat(sandbox): abstract SandboxService and hot-reload allowed domains Introduce SandboxService with pluggable SandboxProvider in @shumai/core. Eliminate disruptive per-session sandbox resets by hot-reloading allowed domains via updateConfig, isolate violations per commandId, and eagerly initialize sandbox at worker/server boot. * fix(sandbox): isolate command violations and serialize concurrent domain sync Strictly isolate getBlockedHost per commandId to prevent false-positive blocked reporting on concurrent allowed commands. Serialize syncAllowedDomains to ensure concurrent requests during initialization or updates are never silently dropped. Add comprehensive unit tests for LocalSandboxProvider and concurrent bash commands. * fix(agent): do not synchronize sandbox when allowedDomains is omitted Make allowedDomains optional in CreateAgentSessionParams and only invoke sandboxService.syncAllowedDomains when allowedDomains is defined. Omit allowedDomains in generateSessionNameActivity so background chat title generation never overwrites the live sandbox allowlist.