Skip to content

chore: pick up in-flight worktree state at branch-start time#14

Merged
NagyVikt merged 2 commits into
mainfrom
agent/claude/rust-fleet-data-cache-parallel-2026-05-14-18-31
May 14, 2026
Merged

chore: pick up in-flight worktree state at branch-start time#14
NagyVikt merged 2 commits into
mainfrom
agent/claude/rust-fleet-data-cache-parallel-2026-05-14-18-31

Conversation

@NagyVikt

Copy link
Copy Markdown
Contributor

Automated by gx branch finish (PR flow).

NagyVikt 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).
@NagyVikt NagyVikt merged commit 7a45009 into main May 14, 2026
@NagyVikt NagyVikt deleted the agent/claude/rust-fleet-data-cache-parallel-2026-05-14-18-31 branch May 14, 2026 16:38
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.

1 participant