tmuxclihook 0.4.0 → 0.4.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmuxclihook",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "交互式 TUI 安装器:环境侦测、AI CLI 侦测、tmux-ai-status hooks 装/卸/修、TPM 软链校验",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,11 +29,12 @@ _save_pane_id
29
29
  _maybe_cleanup_stale
30
30
 
31
31
  # cc-switch 注入的 provider 标签(launch env,CLI 的 hooks 进程继承)→
32
- # per-pane option,供 build_all_status 聚合渲染。env 随 CLI 进程定死,幂等
33
- # 重写无害;非 switch 启动(env 缺失)时显式清除残留,避免换 AI 进程后 pane
34
- # 显示上一个 provider。
32
+ # per-pane option,供 build_all_status 聚合渲染。**仅 codex 捕获**:claude 的
33
+ # provider 标签由 wrapper 在 CLI 内的 statusline 显示,tmux 状态栏刻意不重复
34
+ # 渲染——claude/opencode 的事件一律走清理分支(顺带清掉同 pane 之前的残留)。
35
+ # codex 无 env(非 switch 启动)同样清理。env 随 CLI 进程定死,幂等重写无害。
35
36
  if [ -n "$TMUX_PANE" ]; then
36
- if [ -n "$CC_SWITCH_PROVIDER" ]; then
37
+ if [ "$TOOL_ID" = "codex" ] && [ -n "$CC_SWITCH_PROVIDER" ]; then
37
38
  tmux set-option -pt "$TMUX_PANE" @ai_provider "$CC_SWITCH_PROVIDER" 2>/dev/null || true
38
39
  if [ -n "$CC_SWITCH_PROVIDER_ID" ]; then
39
40
  tmux set-option -pt "$TMUX_PANE" @ai_provider_id "$CC_SWITCH_PROVIDER_ID" 2>/dev/null || true