fix(tui): display one generation-fenced Main activity per session #290
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/single-main-activity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix the two simultaneous Main rows in one console session. Main display ownership is keyed by session, with host-generated turn ordering so late progress/finish cannot resurrect an older owner. Preserve durable turn IDs, same-ID retries, independent worker/classifier rows, and all task/permission/budget state. No task deletion or worker execution changes. Regression tests include actual terminal screen (one Main plus 1 queued), session separation, late event permutations and legacy generation handling. Independent review identified two optional-legacy edge cases; both fixed and covered. Final full suites running on canonical and current local UI integration; do not merge until their receipts are recorded.
Implementation and independent review complete. Host TurnActivity generation is monotonic per process; TUI owns one Main row per console session, rejects superseded/settled generations, keeps same-ID retries and worker/classifier identities. Review fixes covered: legacy->sequenced upgrade, no downgrade, explicit legacy retry, bounded-row eviction. 7 focused regressions pass on both canonical source and separately integrated local UI 0.1.203 source, including actual rendered terminal screen with exactly one Main and 1 queued. Typecheck/build pass on both. Final unchanged exact-SHA full suites now running; no merge or installed-version claim yet. Local integration preserves existing UI work, with no changes to source tasks, review/recovery budgets, permissions or active process ownership.
Final exact canonical candidate verified unchanged: full 1569/1569 pass, typecheck/build pass. Seven regression tests include rendered screen with exactly one Main and 1 queued, late events, retries, legacy upgrade and bounded rows. Separate integration with local UI
07200f3also passed full 1575/1575. Independent review: no P0/P1; all host Main producers use the ordered TurnActivity stream. Local activation was deliberately held because the user’s parallel UI work advanced its selector to17ef89fduring testing; no newer UI code or active console was overwritten. No changes to persisted task authority, permissions, budgets or worker execution.