Skip to content

perf(sidebar): lazy load archived agent sessions - #1713

Merged
ErlichLiu merged 1 commit into
mainfrom
refactor-lazy-sidebar-archive
Aug 17, 2026
Merged

perf(sidebar): lazy load archived agent sessions#1713
ErlichLiu merged 1 commit into
mainfrom
refactor-lazy-sidebar-archive

Conversation

@ErlichLiu

Copy link
Copy Markdown
Collaborator

Summary

  • active Agent 侧栏默认只加载未归档会话,并通过主进程获取归档数量
  • 进入归档视图时按需加载归档会话,保留归档列表虚拟化
  • 移除 active Agent 列表虚拟化,保留分组、置顶、委派树和选中定位行为
  • 修复侧栏会话状态刷新触发自动滚动、抢夺用户滚动位置的问题
  • 补充 active/archive IPC、preload 与启动恢复路径的边界处理

Verification

  • bun run typecheck
  • bun run --filter='@proma/electron' build:main
  • bun run --filter='@proma/electron' build:preload
  • bun run --filter='@proma/electron' build:renderer
  • bun test apps/electron/src/main/lib/agent-session-manager.test.ts apps/electron/src/renderer/lib/agent-session-list.test.ts (30 pass, 0 fail)
  • git diff --check

Made with Proma · GitHub

@ErlichLiu
ErlichLiu merged commit 0112780 into main Aug 17, 2026
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