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.
This commit is contained in:
yetone
2026-11-12 12:45:39 +08:00
parent f1e6705c52
commit 9d47b441e1
+1 -1
View File
@@ -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)
}