Skip to content

Commit 0809195

Browse files
fix(setup): name both variables in the chat-key failure hint
The caller writes the Chat opt-out whenever the prompt returns no key, so the hint's "or set COPILOT_API_KEY yourself" restored capability while leaving the module hidden — the one path where following setup's own advice does not work. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ErcRgvi7VQBeKDQ3MBMha
1 parent 9fb0c08 commit 0809195

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/setup/steps.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ export async function promptCopilotKey(existing?: string): Promise<string | null
6262
}
6363
const key = await browserKeyFlow(process.env.SIM_CLI_AUTH_ORIGIN ?? DEFAULT_CLI_AUTH_ORIGIN)
6464
if (!key) {
65-
p.log.warn('No key received — re-run bun run setup to retry, or set COPILOT_API_KEY yourself.')
65+
// Both halves, because the caller writes the opt-out for a null key: a
66+
// hand-set credential alone restores capability while Chat stays hidden.
67+
p.log.warn(
68+
'No key received — re-run bun run setup to retry, or set COPILOT_API_KEY and NEXT_PUBLIC_CHAT_DISABLED=false yourself.'
69+
)
6670
return null
6771
}
6872
return key

0 commit comments

Comments
 (0)