logancyang_obsidian-copilot/docs
Logan Yang 97763aaf93
feat(chat-history): add infinite scroll pagination to ChatHistoryPopover (#2251)
* feat(chat-history): add infinite scroll pagination to ChatHistoryPopover

Progressively loads chat history in batches of 50 via IntersectionObserver
on a sentinel div, preventing UI lag for users with 1000+ conversations.

- Observer is created once on mount with empty deps; reads live pagination
  state via paginationStateRef — no disconnect/reconnect as pages load or
  search filters change
- Reset only fires when popover opens or search changes while open (not close)
- Status indicator is plain text (data is local/synchronous, not async)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(chat-history): use useLayoutEffect to prevent pagination reset render spike

Replace useEffect with useLayoutEffect for the displayCount reset so it
runs synchronously before the browser paints, eliminating the one-frame
render spike that occurred when reopening the popover with a large
displayCount from a previous scroll session.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: add UI rendering performance audit report

Comprehensive audit of React rendering inefficiencies across the chat UI,
state management, and streaming paths. 14 findings ranked by severity
(Critical/High/Medium/Low) with recommended fix priorities.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 14:06:54 -08:00
..
ACP_DESIGN.md Add acp design doc (#2195) 2026-02-19 16:11:56 -08:00
AGENT_PLANNING_REFLECTION_V0.md Replace indexing Notice with in-chat progress card & fix phantom re-indexing (#2173) 2026-02-10 20:08:43 -08:00
AGENT_REASONING_BLOCK.md Migrate to native tool call in plus and agent (#2123) 2026-01-26 18:35:27 -08:00
BEDROCK_TOOL_CALLING.md Migrate to native tool call in plus and agent (#2123) 2026-01-26 18:35:27 -08:00
CITATION_IMPLEMENTATION.md Implement inline citation (#1821) 2025-09-21 20:03:09 -07:00
CONTEXT_ENGINEERING.md fix: hard cap L1 project context + payload diagnostics (#2192) 2026-02-18 22:25:56 -08:00
MESSAGE_ARCHITECTURE.md Context revamp (#1971) 2025-10-27 23:28:36 -07:00
TECHDEBT.md Implement inline citation (#1821) 2025-09-21 20:03:09 -07:00
TODO-composer-tool-redesign.md Agent UIUX Improvements (#2149) 2026-02-04 17:10:28 -08:00
TOKEN_BUDGET_ENFORCEMENT.md fix: hard cap L1 project context + payload diagnostics (#2192) 2026-02-18 22:25:56 -08:00
TOOLS.md Migrate to native tool call in plus and agent (#2123) 2026-01-26 18:35:27 -08:00
UI_RENDERING_PERFORMANCE.md feat(chat-history): add infinite scroll pagination to ChatHistoryPopover (#2251) 2026-03-03 14:06:54 -08:00