Skip to content

Wake Codex desktop chats after queueing Leaf input - #3600

Merged
max-sixty merged 2 commits into
mainfrom
codex/wake-queued-desktop
Oct 22, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/wake-queued-desktop

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Leaf queued a decision promptly, but Codex's ten-second check for external queue writes delayed its arrival in the desktop chat. After durable queue acceptance, wake the macOS desktop chat through its background deep link. Codex retains turn dispatch and interruption policy; a failed wake leaves the accepted delivery for the existing watcher without resending it.

Forward desktop identity through Leaf's MCP server and strip inherited desktop identity from isolated developer harnesses. The delivery still appears as a queued user-message pointer; this change addresses pickup latency.

Validation: nine focused tests passed, including acceptance-before-wake, failed-wake durability, terminal behavior, and MCP environment forwarding. Pre-commit checks and independent Astra review passed. An isolated probe using the desktop's bundled Codex measured queue-to-turn latency of 9.79 seconds without a wake and 4 ms with an explicit resume; queue-command overhead and chat painting are additional.

The full App Server journey passed. The queue journey passed delivery, mid-turn input and resume, then timed out waiting for the last-client instance to end after unsubscribe; that run did not validate unload/restart.

This was written by Codex on behalf of max-sixty

Codex notices external queue writes on a ten-second interval. The reported click was admitted in 4 ms and queued by 835 ms, but its pointer entered the transcript after 7.76 s. An isolated native-server probe measured 9.88 s from external queue acceptance to turn start, versus 7 ms when the owning server resumed the queued thread.

After durable acceptance, use the macOS desktop background wake route. Codex retains idle dispatch and interruption policy; a failed wake leaves accepted input for the existing queue watcher without resending it. Forward desktop identity through MCP and remove inherited desktop identity from isolated developer harnesses.
@max-sixty
max-sixty merged commit f0f8626 into main Oct 22, 2026
3 checks passed
@max-sixty
max-sixty deleted the codex/wake-queued-desktop branch October 22, 2026 19:10
max-sixty added a commit that referenced this pull request Oct 22, 2026
An `lf-ask` framing a figure lays its titled options across. It used to
set as many 14rem columns as fit and wrap the rest, so four cards in the
720px reading column read as three, then one card beside empty cells.
Now the cards share one row only when every option gets at least 14rem;
otherwise they stack one to a row. Two and three cards still sit across
the reading column; four or five stack there and sit across a wide Ask
only when it holds them all; seven or more always stack.

The rule stays in CSS (`packages/default/styles/options.css`): each
column's floor clamps between one option's share of the width and the
whole width, switched by the width's shortfall from a row of 14rem
cards. Checked in Chromium at 1440, 900, 700 and 390px windows, light
and dark, and in Firefox at 1440 and 390. Among the shipped pages only
alert-review changes, at 900px, where its three-card decisions went two
plus one and now stack.

`test_an_obligation_framing_a_figure_lays_its_options_across` now
asserts that three cards stack at 700px, where two would fit, instead of
a 2+1 grid.

Inherited failure: `wt merge`'s pre-merge run failed only
`tests/process/test_codex_tool.py::test_a_call_ends_before_codex_gives_up_on_it`,
which passes and fails alternately when rerun by node id on this branch,
whose diff touches only CSS and a browser test; its file last changed in
#3600.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants