ship 1.4.62:Arcrun@a4880fa7d081

This commit is contained in:
ship
2026-08-29 11:35:00 +08:00
parent e96190baf2
commit 404b682e28
7 changed files with 41 additions and 32 deletions
+9
View File
@@ -13958,6 +13958,11 @@ function summarizeFolderTree(tree) {
root: tree.root,
mode: tree.mode,
reason: tree.reason,
// inkstone/Arcrun#180:庫目錄那張列表就是靠這兩格把庫掛到正確的機器底下。
// 摘要吐它們(而不是只放在整棵樹裡)的理由:分組要在**畫第一層之前**就成立,
// 而整棵樹是使用者展開那一列才去抓的 ⇒ 只放樹裡的話第一眼永遠是「未知來源」。
machine: tree.machine ?? "",
machine_label: tree.machine_label ?? "",
node_count: (tree.nodes ?? []).length,
total_nodes: tree.total_nodes,
truncated: !!tree.truncated,
@@ -14019,6 +14024,10 @@ portalRouter.post(
root,
mode,
reason,
// 🔴 缺 → 空字串,**不猜也不 backfill**(同卡片那條路:D97)。
// 舊版小幫手不送這兩格,而「不知道是哪一台」本身就是要顯示出來的事實。
machine: String(body.machine ?? "").trim(),
machine_label: String(body.machine_label ?? "").trim(),
truncated: body.truncated === true,
total_nodes: Number.isFinite(Number(body.total_nodes)) ? Number(body.total_nodes) : nodes.length,
sync_token: String(body.sync_token ?? ""),