fix(auto-reply): prefer Pi RPC by default

This commit is contained in:
Peter Steinberger
2025-12-12 17:30:34 +00:00
parent 79818f73c0
commit 0780859a4d
6 changed files with 102 additions and 153 deletions

View File

@@ -611,7 +611,9 @@ export async function runCommandReply(
streamedAny = true;
};
const preferRpc = process.env.CLAWDIS_USE_PI_RPC === "1";
// Default to RPC (it is testable/offline and avoids spawning long-lived CLI processes).
// Set `CLAWDIS_USE_PI_RPC=0` to force the JSON fallback path.
const preferRpc = process.env.CLAWDIS_USE_PI_RPC !== "0";
const run = async () => {
const runId = params.runId ?? crypto.randomUUID();