Display loaded skills on startup in interactive mode

This commit is contained in:
Mario Zechner 2025-12-12 21:28:31 +01:00
parent d05a895b7e
commit 03c404c15f
2 changed files with 11 additions and 0 deletions

View file

@ -10,6 +10,8 @@
### Added
- Display loaded skills on startup in interactive mode
### Fixed
### Changed

View file

@ -30,6 +30,7 @@ import { isBashExecutionMessage } from "../../core/messages.js";
import { invalidateOAuthCache } from "../../core/model-config.js";
import { listOAuthProviders, login, logout, type SupportedOAuthProvider } from "../../core/oauth/index.js";
import { getLatestCompactionEntry, SUMMARY_PREFIX, SUMMARY_SUFFIX } from "../../core/session-manager.js";
import { loadSkills } from "../../core/skills.js";
import { loadProjectContextFiles } from "../../core/system-prompt.js";
import type { TruncationResult } from "../../core/tools/truncate.js";
import { getChangelogPath, parseChangelog } from "../../utils/changelog.js";
@ -289,6 +290,14 @@ export class InteractiveMode {
this.chatContainer.addChild(new Spacer(1));
}
// Show loaded skills
const skills = loadSkills();
if (skills.length > 0) {
const skillList = skills.map((s) => theme.fg("dim", ` ${s.filePath}`)).join("\n");
this.chatContainer.addChild(new Text(theme.fg("muted", "Loaded skills:\n") + skillList, 0, 0));
this.chatContainer.addChild(new Spacer(1));
}
const hookRunner = this.session.hookRunner;
if (!hookRunner) {
return; // No hooks loaded