oasis_test_v2 2.2.15 → 2.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,12 +54,17 @@ oasis_resolve_bin() {
54
54
  fi
55
55
  done <<< "$(echo "$PATH" | tr ':' '\n')"
56
56
 
57
- # 最后一档:被「挪开遮挡」挪走的那个原件(<cmd>.oasis-displaced)。
57
+ # 最后一档:名为 <cmd>.oasis-displaced 的原件。
58
58
  #
59
- # 为什么非有不可:clearLoginShellShadow() 会把 $HOME/.local/bin/<cmd> 改名挪走
60
- # (理由见那个函数的注释)。如果这台机器上**真实 CLI 只有那一份**——没装到
61
- # ~/.oasis/connector-tools/bin——那么上面按 <cmd> PATH 会一个都找不到,
62
- # 挪走遮挡反而把 CLI 弄没了。改名而不是删除,就是为了这一档能把它捡回来。
59
+ # 这一档现在是**善后用的**,不是常态路径。2026-09-11 短暂上线过一版「派单时自动把
60
+ # $HOME/.local/bin/<cmd> 改名挪走」(node-daemon 2.2.15),当天就回退了——挪走会让**已在
61
+ # 跑的会话**里 inject() 解出来的 LARK_BIN/GH_BIN 失效,回落去扫 PATH,而扫 PATH 会选中
62
+ # 同机**另一个** staged wrapper(不同会话/部署根,realpath 不等于 $0 所以跳不过),
63
+ # 两个 wrapper 互相把对方当真 CLI,叠上下面的 --version 自检后指数级 fork
64
+ # (实测 1.1 万进程、load 391)。
65
+ #
66
+ # 那一版可能已经在某些节点上留下了 <cmd>.oasis-displaced。这一档保证那些机器上的真 CLI
67
+ # 还能被找回来,不至于「按 <cmd> 扫 PATH 一个都找不到」。**别删它**,也别据此重新引入自动挪动。
63
68
  while IFS= read -r dir; do
64
69
  candidate="$dir/$cmd_name.oasis-displaced"
65
70
  if [ -x "$candidate" ] && [ "$(realpath "$candidate" 2>/dev/null)" != "$SELF" ]; then