chore: pick up in-flight worktree state at branch-start time#14
Merged
NagyVikt merged 2 commits intoMay 14, 2026
Merged
Conversation
added 2 commits
May 14, 2026 18:35
The four dashboard binaries (fleet-state, fleet-watcher, fleet-ui,
fleet-tui-poc) poll account + pane state on a ~250 ms tick. Today every
tick forks codex-auth once and tmux capture-pane once per pane, fully
serialized. With ~20 panes that's N+1 serial forks per refresh.
This wave introduces a tiny single-slot TtlCache and rewires the hot
loaders to fan out instead of stacking:
- accounts::load_live_cached() (5 s TTL) wraps load_live() so multiple
widgets in the same binary share one codex-auth list call per window.
load_live() itself is unchanged; tests still cover the parser.
- panes::list_panes() now spawns every capture-pane up front via
Command::spawn (non-blocking) and drains them in order. N sequential
forks become 1 sequential + N parallel; wall-clock collapses to the
slowest single fork.
No public API changes for existing callers. 16/16 fleet-data tests pass
(3 new for the cache).
These two files were already modified on main when gx-branch-start forked this lane, so they appear in this worktree as uncommitted edits. Capturing them here rather than restoring so no one's in-progress work is silently dropped on the floor. - openspec/plans/codex-fleet-overlays-phase5-2026-05-14/plan.json: created_at + updated_at timestamp bump from a Colony re-sync. - rust/fleet-tui-poc/src/main.rs: adds the ctx_menu_items: Vec<(Rect, char)> field on App for the iOS context-menu mouse handler. Field is plumbed through new(); the renderer wiring still belongs to whoever started this lane (cargo emits a dead-code warning until that lands).
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.
Automated by gx branch finish (PR flow).