Atlas Zeng
c7980cee7c
Merge pull request #811 from ZinChl/fix/fs-trees-batch-split
...
fix(files): fs.trees 按宿主上限分块,展开集 ≥64 的会话不再整树报错(#799)
2026-10-05 00:53:58 +08:00
Atlas Zeng
ce3527ca1e
Merge pull request #809 from ZinChl/fix/archive-status-session-scope
...
fix(files): 修「压缩并下载」必然失败——archive.status 缺 sessionId + ready 交接无护栏(#798)
2026-10-05 00:53:43 +08:00
Atlas Zeng
40f0255ad0
Merge pull request #807 from graydovee/fix/blank-session-bottom-entry
...
fix(client): 空白新会话里恢复「打开底部工作台」入口(#698 / #623)
2026-10-05 00:53:27 +08:00
Atlas Zeng
10e99dba7e
Merge pull request #806 from ZinChl/fix/search-result-directory-click
...
fix(files): 搜索结果里的目录行改为导航文件树,不再当文件打开(#801)
2026-10-05 00:53:09 +08:00
Menghuan1918
7ef7a73ac7
merge origin/main into dev(#844 issue-triage skill 落 main)
2026-10-05 00:41:21 +08:00
Atlas Zeng
047fddb66d
Merge pull request #844 from omdsh-dev/feat/issue-triage-skill
...
feat(skill): issue/PR 分诊与排队 skill(.agents/skills/issue-triage)
2026-10-05 00:40:02 +08:00
Menghuan1918
72526a506a
ci: push 触发同时覆盖 dev(alpha 集成分支)
...
dev 承接所有功能与修复(AGENTS.md §0),它的合后状态需要与 main 同等的
绿灯信号;本轮批量合入会持续推 dev,门禁必须在远端可见而不是只靠本地跑。
pull_request 触发本就没有 base 过滤,所以面向 dev 的 PR 早已覆盖。
2026-10-05 00:39:58 +08:00
Menghuan1918
c6ca2e7aee
docs(agents): 引入 dev 集成分支规范(main 只收发版)
...
新增 §0 分支模型:`dev` 是 alpha 开发的集成分支,所有功能与修复先进
`dev`,`main` 只在发新版本时从 `dev` 合入;主题分支从 `dev` 切出、合回
`dev`。同时写明发版路径(tag 从 main 打)、纯文档改动仍可直推 main、
CI 的 push 触发覆盖 main+dev、以及本地 worktree 并行与「集成串行」约定。
规则文件本身必须在 main 上可见,否则下一位在 main 上开工的 agent 会继续
直推 main——所以这一条按仓库既有例外(纯文档改动)直接落 main。
2026-10-05 00:39:41 +08:00
Menghuan1918
7ddf99cb94
feat(skill): issue/PR 分诊与排队 skill(.agents/skills/issue-triage)
...
把这次 190 条 issue 全量分诊 + 排期看板落地的做法沉淀成仓库级 skill:
- `SKILL.md`:五阶段流程(快照 → 分类 → 判动作 → 同步看板 → 落档)+ 交付前检查表;
写死了两条容易返工的纪律:已有优先级标签默认保留、优先级只降不升(要升先说)。
- `references/taxonomy.md`:类型/领域/优先级/批次/Status 口径与看板身份;
「人工提入 R1 的 P2」只有一份机器可读来源(`promoted.json`),避免标签与名单两套真相。
- `references/gh-gotchas.md`:Projects v2 的实测坑——`project` scope 必须人工授权、
组织项目可见性只有 owner 能改(连 `public:false` 空写都 FORBIDDEN)、视图分组不在公开 API、
`updateProjectV2Field` 的选项是整体替换(会清值,必须重写一遍)、
`gh project item-list` 的非 ASCII 键乱码、嵌套连接 50 万节点上限、条目不随 issue 关闭移除。
- `scripts/snapshot.mjs`:open issue/PR 快照 + 「是不是已经修了」的线索(提交 / 文件 / 提及),
输出 `digest.md` 供人读;只读,不写 GitHub。
- `scripts/board-sync.mjs`:按**名字**解析项目/字段/选项,幂等加条目与写字段值(issue 按标签算优先级、
PR 从它引用的仍开着的 issue 继承),`--dry-run` 看计划、`--verify` 回读断言(缺失 / 不一致 / 一 issue 多 P 标签)。
- `docs/plans/2026-10-04-issue-triage.md`:首次执行的完整记录(skill 的示例输出,含关闭理由与复核证据)。
- `AGENTS.md` §6 增加 skill 入口。
验证:在本仓库真实看板上跑通——`--dry-run` 与实跑各一次(+ #841 / #842 / #843,207 条目,字段写入 5 次),
`--verify` 输出 `missing=0 mismatched=0 multi-P-label=0 → OK`;多出的 1 条是已关闭的 PR #761,属预期(条目不随关闭移除)。
2026-10-05 00:17:08 +08:00
Atlas Zeng
fc09d1e581
Merge pull request #822 from omdsh-dev/feat/merge-train-261001
...
fix: merge train 2026-10-01 — BUG-FIX-261001 计划 26 个 bug 修复 PR 合并上车(i18n 门禁 + 4 项移植 + #713)
2026-10-04 16:25:27 +08:00
HuanLinOTO
9cc40472f8
fix(paths): Copilot review 四条全修——共享解析契约贯穿 media/html/fs 变更入口
...
- html 路由 decoder 保留 ~ 首段原样(~/x.html 不再被拼成绝对 /~/x.html),
encoder/decoder 往返与相对资产解析均保持 ~ 标记(#713)
- media/download 路由去掉 isAbsolute 预拼接,raw 直达 ensureWorkspacePath
(~ 展开不再被 cwd 前缀遮蔽);fs.trees 同型守卫
- fs-operations 的 rename/remove/mkdir(resolveEntry)与 upload(base)全部
改走 resolveTarget 共享契约,会话相对路径四入口齐活(#646/#713)
- session-path 的 fs 落盘 remote-mirror 用例改为 Windows-only(win32.join 的
meta 路径拼写在 POSIX 上不指向已创建文件,修 ubuntu ci 红)
新用例 8 个;四处变异验证(还原任一修复对应测试必红)。
2026-10-01 18:41:27 +08:00
HuanLinOTO
0500aa045a
Merge PR #789 (ported): fix(files): 在途层渲染 loading 行,消除新展开文件夹的空目录闪烁(移植到 loadLevels 新形状,#693 #687)
2026-10-01 17:46:52 +08:00
HuanLinOTO
14320952be
fix(train): 清理 fs-write-relative-path.spec 的未用导入(lint)
2026-10-01 17:26:29 +08:00
HuanLinOTO
aa82c4aed7
fix(train): #697 测试 harness 适配 #776 的 mounted 观测——会话列表从来沒有 current 字段(AGENTS §3.4.9)
2026-10-01 17:25:16 +08:00
HuanLinOTO
84d89067d4
Merge PR #696 (ported): fix(editor): 打开文件先问原生 tab 注册表,被认领的类型不再被硬编码 editor 顶掉(移植到 sidebar-file.ts 新载体,Fixes #695 #643)
...
# Conflicts:
# src/client/EditorHost.tsx
2026-10-01 17:22:00 +08:00
HuanLinOTO
4836e25aad
fix(train): 合车适配——#730 图标改用改名后的 IconPanelLeftOutlineRegular;#736 测试适配 #776 按会话记账签名
2026-10-01 17:21:42 +08:00
HuanLinOTO
56567b3c4d
fix(editor): 打开文件先问原生 tab 注册表,被认领的类型不再被硬编码 editor 顶掉(#696 移植到 sidebar-file.ts 新载体,Fixes #695 #643)
2026-10-01 17:21:10 +08:00
HuanLinOTO
37fb9204b0
fix(paths): ~ 是主目录路径而不是会话相对路径,展开后再解析(Fixes #713,随 Phase 2 路径簇顺带修)
2026-10-01 17:20:06 +08:00
HuanLinOTO
3345b72699
Merge PR #744 (extracted): fix(paths): 识别 remote-mirror 工作区命名空间投影(#788 #703;html-cwd 半边已由 d71261ac 覆盖)
2026-10-01 17:18:49 +08:00
HuanLinOTO
0f9c7578c0
Merge PR #677 (ported): fix(files): 目录级别加载失败不再被当成缓存命中,自动加载路径可重试(移植到 loadLevels 新形状)
2026-10-01 17:18:49 +08:00
HuanLinOTO
4aaead5b74
Merge: 补齐第三语言词典缺键(i18n 门禁修复,BUG-FIX-261001 附 E 第 2 条)
2026-10-01 17:18:42 +08:00
HuanLinOTO
d23bbde0f7
Merge PR #769 : fix(open-external): support Termux (platform android) openers
2026-10-01 17:18:31 +08:00
HuanLinOTO
470ff579a2
Merge PR #730 : fix: match bottom toggle to the native outline panel icon
2026-10-01 17:18:31 +08:00
HuanLinOTO
356c3b1dbc
Merge PR #682 : fix(trust-fence): 允许 bfcache 恢复的图片带过期 cross-site 标记(PNG 预览空白修复)
...
# Conflicts:
# tests/trusted-hosts.spec.ts
2026-10-01 17:18:31 +08:00
HuanLinOTO
a749b20b68
Merge PR #797 : fix(ws): WebSocket 路由改用壳注入的 transport base + 接受桌面壳页面 origin(0.2.0-rc.1 / v0.24.1 基线)
2026-10-01 17:18:19 +08:00
HuanLinOTO
e4cf2fd034
Merge PR #763 : fix(state): 拖动窗格内最后一个 tab 到自身边缘不再直接丢失该 tab
2026-10-01 17:18:09 +08:00
HuanLinOTO
a5c3befc57
Merge PR #664 : fix(diff): 二进制/纯重命名/仅改模式的文件行补回路径,并关掉 git 路径 C 转义
2026-10-01 17:18:09 +08:00
HuanLinOTO
65eb0957fb
Merge PR #665 : fix(diff): 头部 +n/−m 改为 git 口径,一处改写不再两侧各计一次
2026-10-01 17:18:09 +08:00
HuanLinOTO
784b7cf9fb
Merge PR #650 : fix(editor): 「添加到对话」浮层透字——底色改用不透明令牌
2026-10-01 17:18:09 +08:00
HuanLinOTO
b1c17af429
Merge PR #779 : fix(markdown): render anchors without a stray close tag and keep <details> summaries as direct children
2026-10-01 17:18:09 +08:00
HuanLinOTO
8bf14268aa
Merge PR #691 : fix(sidechat): inherit the parent's CURRENT model selection, not its stale options snapshot
...
# Conflicts:
# tests/sidechat-routes.spec.ts
2026-10-01 17:18:08 +08:00
HuanLinOTO
8c37a7e7df
Merge PR #663 : fix(sidechat): clear the child inbox after create — fork markers alone do not fence the runtime inbox
...
# Conflicts:
# AGENTS.md
# tests/sidechat-seed-validation.spec.ts
2026-10-01 17:17:57 +08:00
HuanLinOTO
5641c4342e
fix(locales): 补齐 19 份第三语言词典缺失的 pluginMnemeName/pluginMnemeDesc(补 #726 遗留,修复 locales.spec)
2026-10-01 17:16:59 +08:00
HuanLinOTO
e10510f29a
fix(files): 在途层渲染 loading 行,消除新展开文件夹的空目录闪烁(#789 移植到 loadLevels 新形状)
...
移植 PR #789 的语义到 v0.24.1(98a446b)重写后的加载形状,原 diff 基于
已不存在的 loadDir 形状,不再适用:
- 核心条件原样保留:renderLevel 对「未请求」(undefined)与「在途标记」
(loadLevels 非强制路径写入的 {} —— 无 entries 无 error)都画 loading
行。修复前标记落进 entries ?? [] 渲染零行:展开新目录闪「loading →
看似又折叠了 → 条目」,且首挂载的根层也是空体。settled 层必带 entries
(不可读层另带 error),条件不会误伤真实数据。
- 原 PR 改在 per-level loadDir 请求时代;现形状 loadLevels 非强制路径先
storeLevel(path, {}) 再发批量 fs.trees,在途标记形状未变,故只需渲染
侧一处扩展,加载逻辑零改动(force 路径保留旧行的语义不受影响)。
- 测试 tests/file-tree-loading.spec.tsx 随形状移植:原版 gate 住单层
fsTree 路由,现 gate 住批量 fsTrees 的 { levels } envelope;并按真实
用户流拆成两批——先挂载根层、落地后再展开子目录触发第二批(批量语义
本身由 file-tree-batch-load.spec.tsx 单独守护)。三个用例语义不变:
展开期间 loading 行不消失、真空目录渲染零行不卡 loading、整批失败出
错误行。判别性验证:回退修复后前两用例红(错误路径用例两态都绿,它
守护边界而非本次回归)。
- 原 PR 未新增词典 key(复用既有 t('loading')),本次同样零词典改动,
无需触碰 19 份第三语言词典。
- 全套件对照:改动前后均 1485 通过 / 6 失败;6 个失败(locales ja 缺
2 key、plugin-meta 打包、tasks-model ×4)在干净 origin/main @1499502
上同样复现,属 main 既有问题,与本提交无关。
2026-10-01 17:15:49 +08:00
HuanLinOTO
b0c07c78fb
Merge PR #742 : fix(security): stop git operands parsing as options, and harden the API dispatch
2026-10-01 17:15:48 +08:00
HuanLinOTO
5ce98edcd0
Merge PR #733 : fix(editor): never save a truncated read over the full file ( #732 )
2026-10-01 17:15:48 +08:00
HuanLinOTO
e85ec684ac
Merge PR #764 : fix(fs): fs.write 改用每请求唯一临时文件,避免并发保存互相损坏
...
# Conflicts:
# tests/smoke.spec.ts
2026-10-01 17:15:47 +08:00
HuanLinOTO
24a670c9e8
Merge PR #741 : fix(security): sandbox SVG served by the media route
2026-10-01 17:14:59 +08:00
HuanLinOTO
002046cc47
Merge PR #655 : fix(server): resolve session-relative paths in fs.write and fs.read
...
# Conflicts:
# src/path-security.ts
2026-10-01 17:14:58 +08:00
HuanLinOTO
188fea0328
Merge PR #754 : fix(preview): resolve workspace-relative paths against session cwd for HTML and media routes
2026-10-01 17:13:47 +08:00
HuanLinOTO
ea76981c0e
Merge PR #697 : fix(native): 跨会话打开改为排队到上屏重放(Fixes #694)
...
# Conflicts:
# src/client/native/surface.ts
2026-10-01 17:13:47 +08:00
HuanLinOTO
5256eef3ab
fix(files): 目录级别加载失败不再被当成缓存命中,自动加载路径可重试(#677 移植到 loadLevels 新形状)
...
PR #677 was written against the pre-0.24.1 loadDir shape (one fs.tree per
directory): its error branch stored { error } in the level cache and the
cache-hit guard `dataRef.current[dir] !== undefined` treated that failure as
"already loaded", so the automatic load path never re-requested a failed
level; only the force path (refresh tick / fence-notice retry) recovered.
FileTree.tsx has since been rewritten around batched loadLevels (one fs.trees
POST for the visible set, commit 98a446b ), but the bug survived the rewrite in
a new spot: BOTH failure branches now store an error in the same cache —
(a) a per-level `error` riding an otherwise-successful batch, and
(b) `{ error }` written by the whole-request catch for levels with no listing
— and the non-force `wanted` filter (`dataRef.current[path] === undefined`)
counted both as cache hits.
Port, in current idioms:
- The non-force filter now admits a cached entry only when it carries no
`error`: `cached === undefined || cached.error !== undefined`. The host
guarantees a failed level never carries entries (fs.trees returns
`{ entries: [], error }` in place), so `error` alone identifies "nothing
usable cached" for both failure branches.
- The empty `{}` placeholder of an in-flight load is still a hit, so a
re-render while a batch is open does not duplicate the request.
- The retry rides the batch route (wanted subset only; levels that DID list
stay cached) and reuses the existing non-force flow, which stores `{}`
first — same behavior the original fix gave loadDir.
- loadLevels' doc comment gains the "only a LISTING settles a level" rule.
Not ported: the original diff's comment wording about "the fence notice's
retry button" — that notice (and isOutsideWorkspaceMessage usage in the tree)
no longer exists in the current shape; recovery paths today are the refresh
tick and watch-notice/mutation re-lists, and after this fix any automatic
re-load of the expanded set.
Tests: tests/file-tree-level-retry.spec.tsx adapts the PR's spec to the
batched shape (fsTrees mock, batch-load-spec harness): (1) a per-level error
is re-requested as a batch of 1 on the next automatic load (with an added
assertion that an in-flight batch is NOT duplicated), (2) levels stored by a
failed whole request are all retryable. Both go red on the unfixed filter
(verified: "expected to be called 2 times, but got 1"). All 9 file-tree
suites (47 tests) and tsc --noEmit stay green.
2026-10-01 17:13:10 +08:00
HuanLinOTO
86ec5ccc75
Merge PR #736 : fix(native): focus through the controller on surface.activate; carry meta on close
...
# Conflicts:
# docs/external-plugin-guide.md
# src/client/native/surface.ts
# src/client/service.ts
2026-10-01 17:12:53 +08:00
HuanLinOTO
92ab1f83b8
Merge PR #776 : fix(native): 按会话记账 + 宿主 keepMounted,原生 tab 状态不再跨切换丢失(#636 #661)
...
# Conflicts:
# src/client/native/index.ts
# src/client/native/tab-adapter.tsx
2026-10-01 17:12:10 +08:00
HuanLinOTO
4e02951fb5
Merge PR #662 : fix(native): 文件 tab 图标不再依赖插件侧记录(Fixes #660)
...
# Conflicts:
# src/client/native/index.ts
2026-10-01 17:11:37 +08:00
HuanLinOTO
84d93ba6ce
Merge PR #718 : fix(native): keep a link's url seed on the tab it opens
...
# Conflicts:
# src/client/native/tab-adapter.tsx
2026-10-01 17:11:15 +08:00
HuanLinOTO
249968f48c
fix(paths): 识别 remote-mirror 工作区命名空间投影(#744 摘取 remote-mirror 半边,#788 #703)
...
摘取 PR #744 中 remote-mirror 命名空间投影这一半:resolveSessionPath 在
win32 上识别 dsh-remote 镜像会话的 cwd(<home>\.dsh\remote-workspaces\
<host-key>\<workspace>),读取镜像根的 .dsh-remote-meta.json 拿到远端
POSIX 工作区路径(mtime 失效的同步缓存),把命名空间下的远端绝对路径
(/srv/app/src/a.ts)投影到本地镜像目录(mirrorRoot\src\a.ts)——否则
win32 把它盘符根化成 C:\srv\... 导致交付物 ENOENT(#788 / #703 的
Windows 远程会话症状)。只投影落在远端工作区内的路径;区外路径
(/etc/hosts)刻意不投影。无元数据/元数据损坏/非 POSIX remotePath 时
一律放行原路径,不破坏请求。
相对 PR 原版的基线适配:main 的 path-security 重写已删除工作区围栏
(resolve-only),因此「区外路径不投影」的后果从「403 containment 拒绝」
变为「保持斜杠根化 → resolve() 盘符根化 → stat 失败报缺失本地文件」,
文档与测试注释已按此改写;投影决策本身不变。
明确丢弃的另一半(html 路由 cwd hint + $c/$r marker + media 路由
resolveWorkspaceRelative + intercept.tsx 取 cwd):
- cwd hint 半边已被 main 的 d71261ac(PR #372)缓解——sessionCwdOf 现有
header → clientCwd → persistence → process.cwd 回退链,覆盖 detach 场景;
- resolveWorkspaceRelative 与 main 的 resolveTarget 语义重复(后者已把
会话相对目标 join 到 cwd);
- src/client/intercept.tsx 在 main 上已整体删除(turnTail 交还宿主);
- path-security 报错文案子改动随 5c95002 重写失去载体。
PR 中的 html-route / paths / sandbox-views / smoke 测试改动同属该半边,
一并不取。html 路由 clientCwd 入口仍缺(#819,另由 #754 客户端侧覆盖),
不在本提交范围。
测试:tests/session-path.spec.ts 移植 dsh-remote mirror describe 块
(10 例:区内/根/嵌套会话投影、区外与同名前缀不投影、dot 段归一、盘符
路径保留、无/坏元数据放行、非 win32 不重释),18/18 绿。
2026-10-01 17:10:47 +08:00
HuanLinOTO
931215f08f
Merge PR #700 : fix(client): report a rejected sidebar sync instead of failing silently
2026-10-01 17:08:55 +08:00
HuanLinOTO
b47fb12457
Merge PR #652 : fix(state): contain a throwing store listener instead of blanking the sidebar
2026-10-01 17:08:18 +08:00
ymac
0a83d671e5
docs: the post-merge division of labour for native tab state
...
Merging main moved the expansion set into the plugin store's session state
(`5c95002`: `attachStore` / `syncExpanded` / `getSessionStates().expanded`), which
was this branch's other half. Record the split so the next reader does not try to
keep two authorities: the STORE owns the expansion set, the RECORD owns identity
(`sessionId::tabId`) and lifetime (no `drop` on unmount), and `keepMounted` is
what makes both survive a tab or Conversation switch.
- `AGENTS.md` §3.4 item 9: three facts instead of two — (c) is the store authority.
- `docs/plans/2026-09-25-…md`: the merge note, plus the earlier attribution note
that the `FILES_KIND` guard came from #777 .
2026-10-01 16:47:43 +08:00