Restore prompt to editor on API key validation failure

fixes #77
This commit is contained in:
Mario Zechner 2025-11-28 23:00:37 +01:00
parent 4830a9cf40
commit 754e745b1f
3 changed files with 23 additions and 1 deletions

View file

@ -418,6 +418,7 @@ export class TuiRenderer {
`No API key found for ${currentModel.provider}.\n\n` +
`Set the appropriate environment variable or update ~/.pi/agent/models.json`,
);
this.editor.setText(text);
return;
}