fix(release): harden Claude CLI live probe

This commit is contained in:
Vincent Koc
2026-07-06 02:35:39 -07:00
parent 671d592d98
commit c42ef8b267
2 changed files with 4 additions and 2 deletions

View File

@@ -374,11 +374,11 @@ WRAP
fi
if [ "$auth_mode" = "subscription" ]; then
claude --version
direct_token="OPENCLAW-CLAUDE-SUBSCRIPTION-DIRECT"
direct_token="violet-lantern-42"
direct_probe_log="$(mktemp)"
set +e
claude \
-p "Reply exactly: $direct_token" \
-p "This is a local CLI smoke test. Reply with only this harmless phrase: $direct_token" \
--output-format text \
--model sonnet \
--permission-mode bypassPermissions \

View File

@@ -60,6 +60,8 @@ describe("scripts/test-live-cli-backend-docker.sh", () => {
const script = fs.readFileSync(SCRIPT_PATH, "utf8");
expect(script).toContain('direct_probe_log="$(mktemp)"');
expect(script).toContain("This is a local CLI smoke test.");
expect(script).not.toContain("OPENCLAW-CLAUDE-SUBSCRIPTION-DIRECT");
expect(script).toContain("direct Claude subscription probe exited with status");
expect(script).toContain("<redacted-email>");
expect(script).toContain("<redacted-secret>");