feat(coding-agent): show loaded prompt templates in init (#743)

Co-authored-by: Jian Zhang <jzhang@yanhuangdata.com>
This commit is contained in:
Jian Zhang 2026-01-15 20:13:40 +08:00 committed by GitHub
parent b18f401d9e
commit 6a3633ca53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -596,6 +596,14 @@ export class InteractiveMode {
this.chatContainer.addChild(new Spacer(1));
}
// Show loaded prompt templates
const templates = this.session.promptTemplates;
if (templates.length > 0) {
const templateList = templates.map((t) => theme.fg("dim", ` /${t.name} ${t.source}`)).join("\n");
this.chatContainer.addChild(new Text(theme.fg("muted", "Loaded prompt templates:\n") + templateList, 0, 0));
this.chatContainer.addChild(new Spacer(1));
}
const extensionRunner = this.session.extensionRunner;
if (!extensionRunner) {
return; // No extensions loaded