aegis-runtime-mv
Native Rust agent runtime: Axum WebSocket/SSE/REST gateway, heartbeat scheduler, dependency-aware task workflow, SQLite storage. Attachment of AienOS. Pre-alpha.
Brought by drakestapleton
GitHub aien-dev/aegis-runtime-mv#24 (code only)
Apply it
git checkout -b patch-7e89627b72a4db13 21a44cade4ae5c2948b291ce7ed3af0b6297faa6 curl -fsSL https://interplane.io/drakestapleton/aegis-runtime-mv/patches/7e89627b72a4db13.patch | git am
Provenance
github-import 1
aien-dev/aegis-runtime-mv
24
469149e7ca8af83bbba1bc481037063e2ebad840
{"kind":"github-import","owner":"aien-dev","repo":"aegis-runtime-mv","number":24,"url":"https://github.com/aien-dev/aegis-runtime-mv/pull/24","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:34Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/src/gateway.rs b/src/gateway.rs index ce51c2b..0091ce0 100644 --- a/src/gateway.rs +++ b/src/gateway.rs @@ -551,13 +551,12 @@ async fn handle_socket(mut socket: WebSocket, state: GatewayState) { } "shell" => { let cmd_str = parsed.get("command").and_then(|v| v.as_str()).unwrap_or("echo shell ready"); - let res = Command::new("sh").arg("-c").arg(cmd_str).output().await; - let out = match res { - Ok(o) => json!({ + let out = match state.skills.workspace().execute_shell(cmd_str, None, 15) { + Ok(stdout) => json!({ "type": "shell_output", - "stdout": String::from_utf8_lossy(&o.stdout), - "stderr": String::from_utf8_lossy(&o.stderr), - "exit_code": o.status.code().unwrap_or(-1), + "stdout": stdout, + "stderr": "", + "exit_code": 0, }), Err(e) => json!({ "type": "shell_error",