Repository navigation
Wake Codex desktop chats after queueing Leaf input - #3600
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Oct 22, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.