Skip to content

fix(chat): don't reopen completed turns for trailing goal updates - #547

Merged
SDSLeon merged 1 commit into
masterfrom
poracode/polite-dolphin-be060b3e
Aug 9, 2026
Merged

fix(chat): don't reopen completed turns for trailing goal updates#547
SDSLeon merged 1 commit into
masterfrom
poracode/polite-dolphin-be060b3e

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Aug 9, 2026

Copy link
Copy Markdown
Owner
  • Bugfix: goal and plan item events arriving after a GUI turn finishes no longer reopen that turn in runtime state.
  • runtimeEventReducer.ts now treats plan/goal items as non-live activity, so they can't reactivate a completed turn or restart its elapsed timer.
  • Refactored ChatTurnElapsed to render the completed "Worked for N" duration declaratively in the same commit instead of mutating textContent, preventing the timer from ticking again after the turn ends.
  • Added regression coverage: a reducer test for trailing goal updates and a render test for the completed-duration footer.

- Exclude plan and goal items from live assistant activity in runtimeEventReducer so trailing updates don't restart a completed turn
- Extract WorkedFor/WorkingFor rendering in ChatTurnElapsed so the elapsed timer stops ticking once the turn ends
- Add tests covering both behaviors
@SDSLeon
SDSLeon merged commit ac1a55a into master Aug 9, 2026
8 checks passed
@SDSLeon
SDSLeon deleted the poracode/polite-dolphin-be060b3e branch August 9, 2026 18:32
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