Skip to content

perf(home): coalesce overlapping session refresh scans - #156

Merged
rusty4444 merged 2 commits into
mainfrom
fix/issue-149-session-refresh-coalescing
Oct 20, 2026
Merged

rusty4444 merged 2 commits into
mainfrom
fix/issue-149-session-refresh-coalescing

Conversation

@rusty4444

Copy link
Copy Markdown
Owner

Summary

  • Share concurrent Home first-page requests and full session scans, including Home refreshes and Activity title reads.
  • Avoid starting a second full scan from a superseded or delayed progressive refresh.
  • Clear in-flight references on success or failure so subsequent refreshes still see new sessions.
  • Add a widget regression for overlapping refreshes and later re-fetch.

Partially addresses #149 (app-side overlapping session refreshes). This does not implement a server cursor, transcript-tail delta, durable /v1/runs transport, WebSocket capability contract, or server compression. Those require separate contracts or tests; the issue should remain open.

Verification

  • flutter test --no-pub: 1,338 tests passed
  • flutter analyze --no-pub lib/core/screens/workspace_screen.dart test/workspace_home_progressive_test.dart: no issues
  • git diff --check: clean

Please test the request counts on a real v2.1.23+ gateway before claiming a transfer-volume reduction.

@rusty4444

Copy link
Copy Markdown
Owner Author

Reviewed the session-refresh coalescing and added a regression for a new chat appearing after a shared full scan started. The newer first page now survives that older scan's completion on both Home and Chats. PR CI passed; locally, full analysis and 1,338 tests passed. The combined tree with PR #152 passed analysis and 1,364 tests. This only partially addresses #149; that issue stays open pending transfer measurement and the separate transport work.

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