mirror of
https://github.com/instructkr/claw-code.git
synced 2026-06-05 22:17:10 +08:00
fix: clarify sandbox requested vs active state in JSON output
Added requested field (alias for enabled) and active_components object with namespace/network/filesystem booleans for precise subsystem visibility. Generated with https://github.com/Yeachan-Heo/gajae-code Co-authored-by: Gajae Code <dev@gajae-code.com>
This commit is contained in:
@@ -9534,6 +9534,7 @@ fn sandbox_json_value(status: &runtime::SandboxStatus) -> serde_json::Value {
|
||||
"action": "status",
|
||||
"status": top_status,
|
||||
"enabled": status.enabled,
|
||||
"requested": status.enabled,
|
||||
"active": status.active,
|
||||
"supported": status.supported,
|
||||
"in_container": status.in_container,
|
||||
@@ -9546,6 +9547,11 @@ fn sandbox_json_value(status: &runtime::SandboxStatus) -> serde_json::Value {
|
||||
"allowed_mounts": status.allowed_mounts,
|
||||
"markers": status.container_markers,
|
||||
"fallback_reason": status.fallback_reason,
|
||||
"active_components": {
|
||||
"namespace": status.namespace_active,
|
||||
"network": status.network_active,
|
||||
"filesystem": status.filesystem_active,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user