fix(tui): refresh open drawer tabs from wire events and live cards - #111
Merged
Conversation
The agents tab no longer waits out the 3s poll while sub-agents run: subagent_state frames set a kickAgents flag drained by flushKicks() into ONE coalesced fetch per burst (per-event cmds would starve inside ingestWireBatch and flood the endpoint), and the row renderer prefers the live card's phase/tool/step/iters/tokens/cost/duration over the coarser REST snapshot — including the final telemetry at finish, never a lost card's frozen values, with the glyph reading the merged state. The events tab gains a seq-guarded 3s tick chain while visible with seq-stamped fetches so a late landing never clobbers a filter change or drill-in, and memory_event frames refetch the open memory tab the same coalesced way. Drawer selections now anchor by identity (fact text / TaskID) across rebuilds so a refresh never silently retargets the detail view or the stop gate, and events feed shrinks clamp the selection. Docs updated: README /events + Agents rows, AGENTS.md cadence contract.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bodek | 8bc0a7e | Commit Preview URL Branch Preview URL |
Sep 11 2026, 08:07 PM |
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.
Summary
Fixes the realtime-freshness audit findings (user-reported:
/agentsdoes not update sub-agent progress live). Plan:.plans/REALTIME_TABS_FIX_PLAN.md; audit:.odek-artifacts/task-1653a571e2f02095/REALTIME_FRESHNESS_AUDIT.md.F1 (P1) — agents tab
subagent_statewire frames now refresh the open tab immediately: they set akickAgentsflag drained byflushKicks()into one coalesced fetch per burst — a per-event cmd would starve insideingestWireBatch(frames arrive in bursts) and would flood/api/subagentsF2 (P2) — events tab
F3 (P2) — memory tab
memory_eventframes refetch the open tab through the same coalesced flag mechanism; facts written mid-session now appear without a manual reloadCross-cutting
/events+ Agents rows, AGENTS.md drawer-cadence contractReview panel
3 adversarial reviewers, sequential, distinct surfaces (reports in
.odek-artifacts/):Testing
make fmt vet lint testgreen (vet clean, lint 0 issues, full-racesuite, 8 packages)