Fix: prevent onboarding TUI auto-delivery

This commit is contained in:
Roshan Singh
2026-01-12 17:25:52 +00:00
committed by Peter Steinberger
parent 74806aa5e3
commit 298c6eea1f
2 changed files with 3 additions and 1 deletions

View File

@@ -199,7 +199,7 @@ export async function runTui(opts: TuiOptions) {
let isConnected = false;
let toolsExpanded = false;
let showThinking = false;
const deliverDefault = opts.deliver ?? true;
const deliverDefault = opts.deliver ?? false;
const autoMessage = opts.message?.trim();
let autoMessageSent = false;
let sessionInfo: SessionInfo = {};

View File

@@ -796,6 +796,8 @@ export async function runOnboardingWizard(
token: authMode === "token" ? gatewayToken : undefined,
password:
authMode === "password" ? baseConfig.gateway?.auth?.password : "",
// Safety: onboarding TUI should not auto-deliver to lastProvider/lastTo.
deliver: false,
message: "Wake up, my friend!",
});
}