diff --git a/.agents/skills/handle/SKILL.md b/.agents/skills/handle/SKILL.md new file mode 100644 index 00000000..98c69aa7 --- /dev/null +++ b/.agents/skills/handle/SKILL.md @@ -0,0 +1,50 @@ +--- +name: handle +description: Used to handle something or issue +metadata: + author: Hairyf + version: "2026.04.16" +--- + +完成后提交 PR,并等待 CI 完成,reviewbot 的意见不重要,但提出的严重问题要处理。 + +可能相关的上下文: + +## DSH 核心位置 + +开发版本(`pnpm tauri dev`) + +- Window:%APPDATA%/dsh-tauri/dev/dependencies +- macOS:~/Library/Application Support/dsh-tauri/dev/dependencies +- Linux:~/.local/share/dsh-tauri/dev/dependencies + +安装版本(release) + +- Window:%APPDATA%/dsh-tauri/dependencies +- macOS:~/Library/Application Support/dsh-tauri/dependencies +- Linux:~/.local/share/dsh-tauri/dependencies + +> `io.github.hairyf.deepseek-harness-desktop` 是 identifier 缩短为 `dsh-tauri` 之前的历史目录名, +> 现在只用于迁移来源识别;机器上可能仍有旧安装在继续使用它。 + +## 日志信息 + +三类日志都落在应用数据目录的 `/logs/` 下(`` 与「DSH 核心位置」同口径,故 dev 在 `dev/` 下)。 +唯一的名字差异是核心服务日志:debug 构建写 `dsh-web.dev.log`。各日志按 5 MiB 轮转,保留 `.1 ~ .3`。 + +> 修正前 logger 未按 `dev/` 隔离,dev 与 release 会抢同一个 `desktop.log`; +> 因此 `%APPDATA%/dsh-tauri/logs/` 下可能还留有迁移前写入的历史日志。 + +开发版本(`pnpm tauri dev`) + +- 主进程:%APPDATA%/dsh-tauri/dev/logs/desktop.log +- 渲染进程:%APPDATA%/dsh-tauri/dev/logs/desktop.frontdesk.log +- 核心进程:%APPDATA%/dsh-tauri/dev/logs/dsh-web.dev.log + +安装版本(release) + +- 主进程:%APPDATA%/dsh-tauri/logs/desktop.log +- 渲染进程:%APPDATA%/dsh-tauri/logs/desktop.frontdesk.log +- 核心进程:%APPDATA%/dsh-tauri/logs/dsh-web.log + +macOS 把 `%APPDATA%` 换成 `~/Library/Application Support`,Linux 换成 `~/.local/share`。 diff --git a/src/client/changes/GitLens.tsx b/src/client/changes/GitLens.tsx index 9f593721..9e3ff61a 100644 --- a/src/client/changes/GitLens.tsx +++ b/src/client/changes/GitLens.tsx @@ -102,11 +102,26 @@ const COMMIT_BOX_MAX_ROWS = 6 * just because `snapshot?.entries ?? []` minted a new array. */ const NO_ENTRIES: readonly GitStatusEntry[] = [] -// The horizontal half of the host's Plus artwork (no public Minus icon). +// The horizontal half of the host's Plus artwork (no public Minus icon): the +// unstage affordance. The stage side reuses the host's own Plus, so the two +// directions never read as the same action (VS Code's `$(remove)` / `$(add)`). const MINUS_ICON = +/** The tree's indent guides: one hairline per level ABOVE the row (the group's + * own column carries no line), drawn in the same 12px column the old nested + * tree used to draw at — 17px for the first level, +12 per level — so a deep + * path reads as deep as it did before the SCM rewrite. The lines are absolutely + * placed (no part in the flex row's metrics) and span the whole 28px band, so + * they stay continuous across every sibling and every hover/selected fill. */ +function IndentGuides(props: { depth: number }): ReactNode { + return <>{Array.from({ length: props.depth }, (_, index) => ( +