You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "M4n5ter (via GitHub)" <gi...@apache.org> on 2026/08/24 01:41:19 UTC
Re: [I] perf(desktop): make session data flow incremental and bounded [maka]
M4n5ter commented on issue #2913:
URL: https://github.com/apache/maka/issues/2913#issuecomment-5389749589
<details open>
<summary>English</summary>
## Current status (2026-08-24)
Fresh check against live `main` at `3bb645e9958a25986cb4502e8fbced5659b9ce8e`:
- #2922 and #2937 are merged. The Desktop Main sparse transcript replica and bounded incremental IPC are in place.
- Transcript virtualization is now substantially landed: `use-turn-virtualizer.ts` provides a bounded viewport window, geometry tracking, overscan, spacers, and scroll anchoring; `ChatView` renders the mounted window and uses `loadAround` for targeted loading.
- This means Phase 3 is **partially complete**, but the issue is not closed: transcript search is not yet Host-indexed, and copy-all/export is not yet proven to read the complete data model rather than the currently loaded sparse window.
The following work remains open:
1. **Phase 4 — catalog, Sidebar, and startup:** the renderer still uses a full `sessions.list()` refresh for catalog updates; session events can trigger that refresh; the Sidebar still maps the complete catalog without flattened-row virtualization; and React startup still waits for the onboarding/session snapshot.
2. **Phase 5 — streaming:** bounded stateful cross-delta redaction exists, but provider-delta batching, safe chunks/rope storage, and the one-React-publish-per-frame path are not complete.
3. **Phase 6 — Host search and Workbar:** thread search still performs the remote per-session `listSessions()` → `openSession()` → `loadTranscript()` pattern; no Host-local bounded search operation is present. Inactive Workbar tabs remain mounted rather than being suspended/unmounted after a grace period.
4. **Phase 3 follow-through:** complete-data-model copy/export, Host/index-backed search jumps, accessibility validation, and the final Electron performance evidence still need closure.
Evidence paths on the checked-out main:
- [`use-turn-virtualizer.ts`](https://github.com/apache/maka/blob/3bb645e9958a25986cb4502e8fbced5659b9ce8e/packages/ui/src/use-turn-virtualizer.ts)
- [`runtime-host-search-ipc-main.ts`](https://github.com/apache/maka/blob/3bb645e9958a25986cb4502e8fbced5659b9ce8e/apps/desktop/src/main/runtime-host-search-ipc-main.ts)
- [`use-app-shell-session-list.ts`](https://github.com/apache/maka/blob/3bb645e9958a25986cb4502e8fbced5659b9ce8e/apps/desktop/src/renderer/use-app-shell-session-list.ts)
- [`workbar-surface.tsx`](https://github.com/apache/maka/blob/3bb645e9958a25986cb4502e8fbced5659b9ce8e/apps/desktop/src/renderer/features/workbar/workbar-surface.tsx)
Recommendation: keep #2913 open as the incremental Desktop umbrella. Update the Phase 3 checklist to distinguish the landed bounded transcript window from the remaining search/export/accessibility/performance work; keep Phases 4–6 open until their end-to-end gates pass.
</details>
<details>
<summary>中文</summary>
## 当前状态(2026-08-24)
基于 live `main` 的 `3bb645e9958a25986cb4502e8fbced5659b9ce8e` fresh check:
- #2922 和 #2937 已合并,Desktop Main sparse transcript replica 与有界增量 IPC 已落地。
- transcript virtualization 已基本落地:`use-turn-virtualizer.ts` 提供有界 viewport window、geometry tracking、overscan、spacer 和 scroll anchoring;`ChatView` 渲染有界窗口,并通过 `loadAround` 定点加载。
- 因此 Phase 3 **部分完成**,但 issue 还不能关闭:transcript search 还没有 Host index,copy-all/export 也还没有证明使用完整 data model,而不是当前已加载的 sparse window。
仍待完成:
1. **Phase 4 — catalog、Sidebar、startup:** renderer 仍使用完整 `sessions.list()` 刷新 catalog;session 事件仍可能触发该刷新;Sidebar 仍映射完整 catalog,未做 flattened-row virtualization;React 启动仍等待 onboarding/session snapshot。
2. **Phase 5 — streaming:** 有界的跨 delta stateful redaction 已存在,但 provider-delta batching、safe chunks/rope 存储及每帧最多一次 React publish 尚未完成。
3. **Phase 6 — Host search 与 Workbar:** thread search 仍采用远程逐 session 的 `listSessions()` → `openSession()` → `loadTranscript()` 路径;尚无 Host-local bounded search operation。inactive Workbar tab 仍保持 mounted,没有在 grace period 后暂停/卸载。
4. **Phase 3 后续闭环:** 完整 data model 的 copy/export、Host/index 支持的 search jump、accessibility 验证和最终 Electron 性能证据仍待完成。
建议:保留 #2913 作为增量 Desktop umbrella issue。更新 Phase 3 checklist,区分已落地的有界 transcript window 与仍待完成的 search/export/accessibility/performance;Phase 4–6 在端到端 gate 通过前继续保持 open。
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org