Fix Anthropic login not showing URL (showPrompt should not clear content)

This commit is contained in:
Mario Zechner 2026-01-05 20:03:07 +01:00
parent 9b12719ab1
commit 9c87eeb805

View file

@ -109,9 +109,9 @@ export class LoginDialogComponent extends Container {
/**
* Called by onPrompt callback - show prompt and wait for input
* Note: Does NOT clear content, appends to existing (preserves URL from showAuth)
*/
showPrompt(message: string, placeholder?: string): Promise<string> {
this.contentContainer.clear();
this.contentContainer.addChild(new Spacer(1));
this.contentContainer.addChild(new Text(theme.fg("text", message), 1, 0));
if (placeholder) {