Skip to content

Conversation

@thruflo
Copy link
Owner

@thruflo thruflo commented Jan 20, 2026

The TUI was only updated before each iteration, not after syncing the updated state from Sprite. This meant task completion counts were always one iteration behind - showing stale data from before Claude ran.

Added l.updateTUIState() call after SyncFromSprite() completes to ensure the TUI reflects the freshly synced task state.

Also added tests to verify TUI state updates correctly:

  • TestUpdateTUIState: verifies updateTUIState reads from store correctly
  • TestTUIStateUpdatedAfterSync: regression test for this bug
  • TestTUIStateReflectsProgressDuringLoop: verifies progress over multiple syncs

The TUI was only updated before each iteration, not after syncing the
updated state from Sprite. This meant task completion counts were always
one iteration behind - showing stale data from before Claude ran.

Added l.updateTUIState() call after SyncFromSprite() completes to ensure
the TUI reflects the freshly synced task state.

Also added tests to verify TUI state updates correctly:
- TestUpdateTUIState: verifies updateTUIState reads from store correctly
- TestTUIStateUpdatedAfterSync: regression test for this bug
- TestTUIStateReflectsProgressDuringLoop: verifies progress over multiple syncs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@thruflo thruflo merged commit ccddd73 into main Jan 20, 2026
2 checks passed
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.

2 participants