From 6de5ddc03eb53eb2ce07534d119b4a7b6ef3530d Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Thu, 12 Mar 2026 19:52:38 +0900 Subject: [PATCH 1/3] fix(fish): update test files to match renamed function files Follows up on the abbreviation naming refactor (#1057) which renamed _clxte/_clxteh/_clxwe/_clxweh function files but missed updating the corresponding spec/fish test files. Closes the CI failure in fish-test. --- spec/fish/_cltxe_function_test.fish | 6 +++--- spec/fish/_cltxeh_function_test.fish | 6 +++--- spec/fish/_clwxe_function_test.fish | 6 +++--- spec/fish/_clwxeh_function_test.fish | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/spec/fish/_cltxe_function_test.fish b/spec/fish/_cltxe_function_test.fish index ac71dcffa..8cd749f5b 100644 --- a/spec/fish/_cltxe_function_test.fish +++ b/spec/fish/_cltxe_function_test.fish @@ -1,11 +1,11 @@ set fn (status dirname)/../../home-manager/programs/fish/functions -source $fn/_clxte_function.fish +source $fn/_cltxe_function.fish # ── no args: interactive mode ───────────────────────────── set log1 (mktemp) function claude; echo $argv >> $log1; end -_clxte_function +_cltxe_function @test "no args uses --worktree --tmux flags" (grep -c -- "--worktree" $log1) -ge 1 @test "no args skips --print flag" (grep -c -- "--print" $log1) -eq 0 @@ -14,7 +14,7 @@ _clxte_function set log2 (mktemp) function claude; echo $argv >> $log2; end -_clxte_function hello world +_cltxe_function hello world @test "with args uses --print flag" (grep -c -- "--print" $log2) -ge 1 @test "with args uses --tmux flag" (grep -c -- "--tmux" $log2) -ge 1 diff --git a/spec/fish/_cltxeh_function_test.fish b/spec/fish/_cltxeh_function_test.fish index 72af87284..d619a7aa6 100644 --- a/spec/fish/_cltxeh_function_test.fish +++ b/spec/fish/_cltxeh_function_test.fish @@ -1,5 +1,5 @@ set fn (status dirname)/../../home-manager/programs/fish/functions -source $fn/_clxteh_function.fish +source $fn/_cltxeh_function.fish -@test "empty prompt rejects" (echo "" | _clxteh_function 2>&1) = "No prompt provided, aborting." -@test "empty prompt returns 1" (echo "" | _clxteh_function 2>/dev/null; echo $status) = 1 +@test "empty prompt rejects" (echo "" | _cltxeh_function 2>&1) = "No prompt provided, aborting." +@test "empty prompt returns 1" (echo "" | _cltxeh_function 2>/dev/null; echo $status) = 1 diff --git a/spec/fish/_clwxe_function_test.fish b/spec/fish/_clwxe_function_test.fish index 3785935e8..51e446cfa 100644 --- a/spec/fish/_clwxe_function_test.fish +++ b/spec/fish/_clwxe_function_test.fish @@ -1,11 +1,11 @@ set fn (status dirname)/../../home-manager/programs/fish/functions -source $fn/_clxwe_function.fish +source $fn/_clwxe_function.fish # ── no args: interactive mode ───────────────────────────── set log1 (mktemp) function claude; echo $argv >> $log1; end -_clxwe_function +_clwxe_function @test "no args uses --worktree flag" (grep -c -- "--worktree" $log1) -ge 1 @test "no args skips --print flag" (grep -c -- "--print" $log1) -eq 0 @@ -14,7 +14,7 @@ _clxwe_function set log2 (mktemp) function claude; echo $argv >> $log2; end -_clxwe_function hello world +_clwxe_function hello world @test "with args uses --print flag" (grep -c -- "--print" $log2) -ge 1 @test "with args uses --worktree flag" (grep -c -- "--worktree" $log2) -ge 1 diff --git a/spec/fish/_clwxeh_function_test.fish b/spec/fish/_clwxeh_function_test.fish index bf4a1b8b1..24077d44d 100644 --- a/spec/fish/_clwxeh_function_test.fish +++ b/spec/fish/_clwxeh_function_test.fish @@ -1,5 +1,5 @@ set fn (status dirname)/../../home-manager/programs/fish/functions -source $fn/_clxweh_function.fish +source $fn/_clwxeh_function.fish -@test "empty prompt rejects" (echo "" | _clxweh_function 2>&1) = "No prompt provided, aborting." -@test "empty prompt returns 1" (echo "" | _clxweh_function 2>/dev/null; echo $status) = 1 +@test "empty prompt rejects" (echo "" | _clwxeh_function 2>&1) = "No prompt provided, aborting." +@test "empty prompt returns 1" (echo "" | _clwxeh_function 2>/dev/null; echo $status) = 1 From dead8cee3edd762dc795ff48578625fe07a5dcd1 Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Thu, 12 Mar 2026 20:05:47 +0900 Subject: [PATCH 2/3] fix(fish): rename internal function name in _cltxe_function.fish --- home-manager/programs/fish/functions/_cltxe_function.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/programs/fish/functions/_cltxe_function.fish b/home-manager/programs/fish/functions/_cltxe_function.fish index 2d36e2813..5cb88f69b 100644 --- a/home-manager/programs/fish/functions/_cltxe_function.fish +++ b/home-manager/programs/fish/functions/_cltxe_function.fish @@ -1,6 +1,6 @@ -function _clxte_function --description "Run Claude Code with a free-form prompt while skipping permissions with tmux integration" +function _cltxe_function --description "Run Claude Code with a free-form prompt while skipping permissions with tmux integration" # Run Claude Code with a free-form prompt (spaces allowed) and bypass permission checks - # Usage: clxte [] + # Usage: cltxe [] if test (count $argv) -eq 0 claude --dangerously-skip-permissions --worktree --tmux From 5a608f11c68d9ed9434e4f3388253a0e9f11172b Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Fri, 13 Mar 2026 21:42:29 +0900 Subject: [PATCH 3/3] fix(cliproxyapi): inject OPENCODE_API_KEY into config during startup --- home-manager/services/cliproxyapi/scripts/start.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/home-manager/services/cliproxyapi/scripts/start.sh b/home-manager/services/cliproxyapi/scripts/start.sh index 7bd0d2ec0..b82a46878 100755 --- a/home-manager/services/cliproxyapi/scripts/start.sh +++ b/home-manager/services/cliproxyapi/scripts/start.sh @@ -79,6 +79,7 @@ if [ -f "$TEMPLATE" ]; then -e "s|__CLIPROXY_MANAGEMENT_PASSWORD__|${CLIPROXY_MANAGEMENT_PASSWORD:-}|g" \ -e "s|__ZAI_API_KEY__|${ZAI_API_KEY:-}|g" \ -e "s|__AMP_UPSTREAM_API_KEY__|${AMP_UPSTREAM_API_KEY:-}|g" \ + -e "s|__OPENCODE_API_KEY__|${OPENCODE_API_KEY:-}|g" \ "$TEMPLATE" >"$CONFIG" if [ "$(uname)" = "Linux" ] && [ -n "${CLIPROXY_API_KEY:-}" ]; then