From 9d47b441e15c1af14e3ffc68f4f99cd57609c6c2 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 12 Nov 2026 12:45:32 +0800 Subject: [PATCH] gateway: a Claude Code run shows its thinking, and a turn's own effort beats the budget beside it (DIYgod on X, #5379) Interactive mode dropped --thinking-display, so no summary reached the client, and -p set it only when an effort was known: both runs now get showThinkingSummaries in --settings. A High carried in the turn's own message (output_config on a {role:system} message) lost to a 31999 budget read as xhigh; the turn's level now wins in parse and in routing's requestEffort. Red on the old code: TestClaudeBridgeTakesTheEffortOfEveryRoute (3 new rows), TestTurnEffortBeatsBudget. --- internal/gateway/claude_subscription_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gateway/claude_subscription_test.go b/internal/gateway/claude_subscription_test.go index 7d2fc2a23..ccc1f5d19 100644 --- a/internal/gateway/claude_subscription_test.go +++ b/internal/gateway/claude_subscription_test.go @@ -43,7 +43,7 @@ func TestClaudeSubscriptionPromptKeepsForeignHarnessOutOfSystem(t *testing.T) { // the setting is passed as flag settings, which --setting-sources does // not control. for _, want := range []string{"--input-format stream-json", "--include-partial-messages", "--strict-mcp-config", "--effort medium", - `--settings {"disableDeepLinkRegistration":"disable"}`} { + `--settings {"disableDeepLinkRegistration":"disable","showThinkingSummaries":true}`} { if !strings.Contains(args, want) { t.Fatalf("missing CLI contract %q in %q", want, args) }