fix(tui): display one generation-fenced Main activity per session #290

Merged
karsten merged 3 commits from fix/single-main-activity into main 2026-11-06 10:35:50 +00:00
Owner

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.

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.
Author
Owner

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.

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.
Author
Owner

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 07200f3 also 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 to 17ef89f during testing; no newer UI code or active console was overwritten. No changes to persisted task authority, permissions, budgets or worker execution.

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 07200f3 also 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 to 17ef89f during testing; no newer UI code or active console was overwritten. No changes to persisted task authority, permissions, budgets or worker execution.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harness/core!290
No description provided.