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:
@@ -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 });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user