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:
bellman
2026-06-05 01:02:02 +09:00
parent de66bfc082
commit 6fcd0c57ae
2 changed files with 7 additions and 1 deletions

View File

@@ -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,
},
})
}