Skip to content

perf(ui-tui): reduce overlay render churn with focused selectors - #20393

Merged
teknium1 merged 1 commit into
mainfrom
bb/tui-overlay-selector-perf
May 5, 2026
Merged

perf(ui-tui): reduce overlay render churn with focused selectors#20393
teknium1 merged 1 commit into
mainfrom
bb/tui-overlay-selector-perf

Conversation

@OutThisLife

Copy link
Copy Markdown
Collaborator

Summary

  • add computed $uiTheme and $uiSessionId selectors derived from $uiState
  • update PromptZone and FloatingOverlays to subscribe only to the selector stores they use
  • keep behavior unchanged while reducing overlay rerenders on unrelated UI store updates

Test plan

  • cd ui-tui && npm run type-check
  • cd ui-tui && npm test -- createSlashHandler

Subscribe overlay components to computed theme/session selectors instead of the full UI store so unrelated UI state updates trigger fewer overlay renders.
@teknium1
teknium1 merged commit 00d2559 into main May 5, 2026
8 of 9 checks passed
@teknium1
teknium1 deleted the bb/tui-overlay-selector-perf branch May 5, 2026 20:31
@alt-glitch alt-glitch added type/perf Performance improvement or optimization P3 Low — cosmetic, nice to have comp/tui Terminal UI (ui-tui/ + tui_gateway/) labels May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have type/perf Performance improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants