Skip to content

fix: preserve collapse state in comment threads - #991

Merged
Livinglist merged 3 commits into
masterfrom
fix/preserve-comment-thread-collapse-state
Nov 27, 2026
Merged

Livinglist merged 3 commits into
masterfrom
fix/preserve-comment-thread-collapse-state

Conversation

@Livinglist

Copy link
Copy Markdown
Owner

Threads opened from a comment now restore collapsed comments and hidden replies after leaving and reopening, including across app sessions when persistence is enabled. Remove the story-only cache restrictions and key saved state by the thread's item ID, honoring the existing Preserve/Persist Collapse State settings and keeping story and comment thread states independent.

Add five regression tests covering nested collapse restoration, persisted restore and background saving, disabled preservation, thread isolation, and refresh. Three restoration tests fail against the original code and pass with this fix.

Validation with pinned Flutter 3.50.1:

  • Full Flutter test suite: 326 tests passed.
  • flutter analyze --no-pub lib test integration_test: no issues.
  • dart format --output=none --set-exit-if-changed lib test integration_test: clean.
  • git diff --check: clean.

@Livinglist
Livinglist merged commit ff104e8 into master Nov 27, 2026
3 of 4 checks passed
@Livinglist
Livinglist deleted the fix/preserve-comment-thread-collapse-state branch November 27, 2026 23:54
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