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: a failed boundary read leaves the composer permanently hidden #1629
If readExecutionBoundary rejects once for the active session, the composer stays hidden for the rest of that session — no error, no retry, no way back except switching sessions or restarting.
useActiveExecutionBoundary (apps/desktop/src/renderer/use-active-execution-boundary.ts) swallows the rejection with .catch(() => {}), so the snapshot is never set. deriveDesktopExecutionBoundarySurface then fails closed — localInteractionAvailable: false — and app-shell.tsx:2183 hides the composer on exactly that flag. The read is re-triggered only by activeSessionId, permissionMode, or an explicit reload(), none of which fire after a silent failure.
Failing closed is right: without knowing the boundary, the surface must not offer local execution. The gap is that a transient failure is indistinguishable from a permanent one, and nothing ever asks again.
This predates #1620 — the same .catch(() => {}) and the same fail-closed derivation existed before. What changed is that it became observable: an e2e assertion that reloaded the page and waited for the composer timed out on CI, because after a reload the composer stays hidden until a boundary has been read for the restored session.
How to reproduce
Open a session.
Make sessions.readExecutionBoundary reject once for it (transient IPC failure, or reload while the session is still settling in main).
The composer is hidden and never returns.
Expected
A failed read is retried, or the failure is surfaced instead of silently disabling input. A reload should converge to a usable composer.
Notes
The reload half of apps/desktop/e2e/permission-mode-surface.spec.ts was removed rather than made to wait longer, because a longer timeout would only hide this. The read model's contract test still covers that the permission label follows authority rather than renderer state.
Activity
test(desktop): drop a reload assertion the composer cannot satisfy (#…
fix(desktop): commit only the newest execution-boundary read
fix(desktop): settle an answered e2e-fixture boundary request
refactor(desktop): tidy the boundary-unreadable notice
fix(desktop): retire an answered fixture request at its one owner
test(desktop): wait for the select popup before typing into it
refactor(desktop): drop a boundary-read guard no product path reaches
fix(desktop): stop the boundary surface naming and blaming the wrong …
fix(desktop): recover from a failed execution-boundary read (apache#1631
feat(enterprise): conversation core batch 1 — wait cues, stale turns,…