You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: let a pending sandbox boundary request survive a host restart #1612
When the host restarts while a sandbox boundary request is awaiting the user, the prompt disappears and the turn ends as failed. There is no way to answer it or resume the task.
The response authority is in-memory: RuntimeKernel.sandboxBoundaryRequestOwners (packages/runtime/src/runtime-kernel.ts:1911) is a Map keyed to a backend generation, and respondToSandboxBoundary throws once that generation is gone. activePermissionOverlayEvent (packages/runtime/src/runtime-read-model.ts:409-423) rebuilds only the permission actions from the ledger, not boundary ones, so the request cannot be recovered from durable state either. Recovery then settles every persisted pending request as deny with closureReason: 'host_restarted' (packages/runtime/src/session-manager.ts:915-918).
Denying is correctly fail-closed and nothing hangs. The gap is that a request the user never saw resolved is silently closed against them, and the turn is lost with it.
Expected: after a restart, either the pending request is presented again and answerable, or the user is told it was closed because the host restarted.
How to reproduce
Start a session and have the agent request a sandbox boundary expansion.
Leave the prompt unanswered.
Quit and relaunch Desktop.
Reopen the session.
Actual: no prompt, turn failed, no explanation. Expected: the request is answerable again, or its closure is explained.
Environment
Maka commit: 1f67e0c5d
OS: macOS 26.5.2
Surface: Desktop
Node.js: v26.5.0
Logs, screenshots, or additional context
Found while investigating #1607. Independent of that fix — #1609 changes only the read-model projection and does not touch pending-request authority.
Activity
fix(runtime): name the sandbox boundary request a host restart closed
fix(desktop): explain a sandbox boundary request closed by a host res…
feat(storage): record turn and run provenance on sandbox boundary req…
fix(runtime): attribute a restart closure from its durable request row
fix: explain a sandbox boundary request closed by a host restart (#1619)
fix(desktop): give the e2e fixture request its required provenance
feat: name permission modes and boundaries for what they grant (#1620)