feat(backend): POST /sessions applies global settings, body is question-only

workspace/provider/model/thinking now come from getSettings() injected into
sessionRoutes; the request body supplies only question+name. Also teaches
fake_pi_rpc to respond to set_model and set_thinking_level RPC commands so
tests that pass real model settings don't hang.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-28 16:16:08 +02:00
co-authored by Claude Opus 4.8
parent 098915515f
commit ec36ee421a
3 changed files with 36 additions and 11 deletions
+4
View File
@@ -27,6 +27,10 @@ process.stdin.on("data", (chunk) => {
} else if (cmd.type === "get_state") {
out({ type: "response", command: "get_state", id: cmd.id, success: true,
data: { sessionId: "fake", thinkingLevel: "medium", isStreaming: false } });
} else if (cmd.type === "set_model") {
out({ type: "response", command: "set_model", id: cmd.id, success: true });
} else if (cmd.type === "set_thinking_level") {
out({ type: "response", command: "set_thinking_level", id: cmd.id, success: true });
}
}
});