Skip to content

fix: improve Git log performance and graph lanes - #63

Merged
1lck merged 8 commits into
preview/0.2.0from
codex/git-fixes-pr
Aug 13, 2026
Merged

1lck merged 8 commits into
preview/0.2.0from
codex/git-fixes-pr

Conversation

@1lck

@1lck 1lck commented Aug 13, 2026

Copy link
Copy Markdown
Owner

This PR contains the two Git fixes previously developed locally:

  • Stop Git log scrolling from redrawing the workbench.
  • Keep Git graph branch lines continuous across merges.

Changes are limited to the Git log and graph behavior.

1lck and others added 8 commits August 13, 2026 11:31
Scrolling the Git log dropped frames and heated the machine because the
whole workbench view tree was re-evaluated once per second while no
commit row could be skipped.

- Sample managed memory every 5s instead of 1s, move the process-tree
  walk off the main thread, and publish only when a displayed value
  changes. The popover opts back into per-sample updates because it
  shows the running average and runtime.
- Group commit-row callbacks so rows compare by data and can be pruned,
  replacing four closures allocated per row per redraw.
- Drop the hover-driven lane width change that repainted a row's canvas
  on every pointer crossing.
- Track pointer-cursor hover outside view state; nothing in the body
  reads it.
- Write NSScrollView chrome properties only when they change, so
  re-tiling no longer feeds back into layout.

Verified: ./scripts/test-macos.sh (271 tests),
verify-service-boundaries.sh, verify-git-graph.sh,
verify-shared-contracts.sh. verify-core.sh fails on a missing
TerminalBuffer.swift path, which reproduces without these changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Lanes were kept in a packed list, so `insert(at:)` and `remove(at:)`
renumbered every later lane whenever a merge opened or closed one. A
branch unrelated to that merge would sit in lane 2 above the row border
and lane 3 below it. Because the renderer draws each incoming lane as a
vertical segment at a lane-derived x, the two segments could not meet and
the branch appeared to break. Replaying this repository's history through
the layout showed 149 such shifts across 300 commits.

Lanes are now fixed slots: a slot is cleared in place and reused once
free, never shifted, so a branch holds one x for its whole visible life.
Only trailing empty slots are trimmed, which never renumbers a live lane.
`incomingLaneColors` therefore carries `nil` for unoccupied slots.

Verified: replaying all 448 commits of this repository now reports zero
broken lane continuations and zero parent edges landing on an empty lane,
down from 149. Lane continuity is now asserted in
scripts/GitGraphVerification.swift. ./scripts/verify-git-graph.sh,
./scripts/test-macos.sh (271 tests), verify-service-boundaries.sh, and
verify-shared-contracts.sh pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@1lck
1lck merged commit 401cc99 into preview/0.2.0 Aug 13, 2026
1 of 2 checks passed
@xiaoyumuxi
xiaoyumuxi deleted the codex/git-fixes-pr branch September 10, 2026 15:59
1lck added a commit that referenced this pull request Nov 14, 2026
Agent Note 与功能矩阵的验收步骤改用新名称,记录 Store 收录状态(Lithe-store#62 已合并,#63 等本规则发布)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1lck added a commit that referenced this pull request Nov 14, 2026
* feat(plugins): 同一语言只由一个已启用插件提供语言服务器

启用插件或确认安装后,其他已启用、且为同一语言声明语言服务器的插件会被自动
停用:Core(Lithe-core-rust#39)在 plugins.installed.lifecycle 里返回
displacePlugin,宿主记为停用、停掉它的语言服务器和后端,提示用户停用了谁、
为什么,并为已打开的共享语言文档启动新插件的服务器。

- pluginmanager 规划时为每个已安装版本读出清单 languageServers,Apply 返回
  Outcome(Changed、Displaced),新增 Enable。
- pluginservice.StopDisplaced 停止被顶替插件的程序。
- 工作台 plugin_displace.go:读名称、摘除服务器、后台停止、提示和重启服务器。
- 新文案 desktop.marketplace.languageServerDisplaced(中英)。
- Core 固定修订升到 a320d16(#38、#39)。
- 功能矩阵与 Agent Note 同步。

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

* test(plugins): 工作台安装第二个同语言插件时停用第一个并提示

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

* docs(plugins): 轻量 Java 插件改名为 Java Support Lite

Agent Note 与功能矩阵的验收步骤改用新名称,记录 Store 收录状态(Lithe-store#62 已合并,#63 等本规则发布)。

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
xiaoyumuxi added a commit that referenced this pull request Nov 16, 2026
#2023 把 PINNED_CORE_REVISION 暂时固定到 Lithe-core-rust #62 分支上的
c0dd2a4。#62 和 #63 都已合入 Core main,这里改为 main 上的 ad148ec:

- #62(b401949,内容与 c0dd2a4 相同):Unix 文件名里的 \ 和 : 是名字的
  一部分,含 D:\logs 的项目树不再报错(#2009)。
- #63(ad148ec):macOS 上进程组只剩未回收的僵尸进程时 kill 返回 EPERM,
  不再当成失败。停止或重启语言服务器不再误报 "Language-server process
  tree did not exit.",关闭 SSH 会话不再误写清理失败的 WARN(#2017)。

功能矩阵 lsp-lifecycle 的 verification 记录 #63;两端状态不变。宿主代码
没有改动。
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