Skip to content

fix: prevent task list flash on session restore and during conversation#1215

Merged
lewis617 merged 1 commit into
mainfrom
fix/task-list-autohide-flash
Jun 11, 2026
Merged

fix: prevent task list flash on session restore and during conversation#1215
lewis617 merged 1 commit into
mainfrom
fix/task-list-autohide-flash

Conversation

@lewis617

Copy link
Copy Markdown
Collaborator
  • Initialize autoHidden to true when all tasks are already completed on
    mount (e.g. session restore), instead of showing for 5 seconds then
    hiding
  • Add shallow comparison in onTasksChange callback to skip state updates
    when tasks haven't materially changed (same id + status), preventing
    unnecessary re-renders and autoHidden resets that cause flickering
  • Update tests to reflect new immediate-hide-on-mount behavior and add
    dedicated test for the all-completed-on-mount case

- Initialize autoHidden to true when all tasks are already completed on
  mount (e.g. session restore), instead of showing for 5 seconds then
  hiding
- Add shallow comparison in onTasksChange callback to skip state updates
  when tasks haven't materially changed (same id + status), preventing
  unnecessary re-renders and autoHidden resets that cause flickering
- Update tests to reflect new immediate-hide-on-mount behavior and add
  dedicated test for the all-completed-on-mount case
@lewis617 lewis617 merged commit 08f6b2c into main Jun 11, 2026
1 check passed
@lewis617 lewis617 deleted the fix/task-list-autohide-flash branch June 11, 2026 04:03
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