Fix: prevent onboarding TUI auto-delivery
This commit is contained in:
committed by
Peter Steinberger
parent
74806aa5e3
commit
298c6eea1f
@@ -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 = {};
|
||||
|
||||
@@ -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!",
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user