Skip to content

Commit 5297bbe

Browse files
committed
fix(timeline): honor deployment codex sandbox
1 parent 8298052 commit 5297bbe

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎backends/advanced/src/advanced_omi_backend/services/timeline/codex_executor.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ async def analyze(
4848
available, detail = codex_executor_available()
4949
if not available:
5050
raise RuntimeError(detail)
51+
sandbox_mode = str(self.settings.get("sandbox_mode") or "workspace-write")
5152
schema_path = workspace / "output-schema.json"
5253
output_path = workspace / "timeline-result.json"
5354
schema_path.write_text(json.dumps(OUTPUT_SCHEMA), encoding="utf-8")
@@ -65,7 +66,7 @@ async def analyze(
6566
"--color",
6667
"never",
6768
"--sandbox",
68-
"workspace-write",
69+
sandbox_mode,
6970
"--cd",
7071
str(workspace),
7172
"--output-schema",

‎config/defaults.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,10 @@ timeline:
910910
codex:
911911
model: null
912912
reasoning_effort: medium
913+
# Reuse the memory agent's container-aware sandbox choice. Rootless Podman
914+
# deployments set that to danger-full-access because the container itself is
915+
# the isolation boundary and nested bubblewrap cannot start there.
916+
sandbox_mode: ${memory.codex.sandbox_mode}
913917
timeout_seconds: 1800
914918
max_used_percent: 80
915919
retry_hours: 6

0 commit comments

Comments
 (0)