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 +1 -1
- package/scripts/tmux-ai-status +5 -4
package/package.json
CHANGED
package/scripts/tmux-ai-status
CHANGED
|
@@ -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
|
|
33
|
-
#
|
|
34
|
-
#
|
|
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
|