Merge pull request #906 from Perlence/feat/verbose-cli-flag

feat(coding-agent): add --verbose CLI flag to override quietStartup setting (round 2)
This commit is contained in:
Mario Zechner 2026-01-22 23:19:44 +01:00 committed by GitHub
commit b0d4d1717e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 3 deletions

View file

@ -138,6 +138,8 @@ export interface InteractiveModeOptions {
initialImages?: ImageContent[];
/** Additional messages to send after the initial message */
initialMessages?: string[];
/** Force verbose startup (overrides quietStartup setting) */
verbose?: boolean;
}
export class InteractiveMode {
@ -373,7 +375,7 @@ export class InteractiveMode {
this.setupAutocomplete(this.fdPath);
// Add header with keybindings from config (unless silenced)
if (!this.settingsManager.getQuietStartup()) {
if (this.options.verbose || !this.settingsManager.getQuietStartup()) {
const logo = theme.bold(theme.fg("accent", APP_NAME)) + theme.fg("dim", ` v${this.version}`);
// Build startup instructions using keybinding hint helpers
@ -642,7 +644,7 @@ export class InteractiveMode {
}
private showLoadedResources(options?: { extensionPaths?: string[]; force?: boolean }): void {
const shouldShow = options?.force || !this.settingsManager.getQuietStartup();
const shouldShow = options?.force || this.options.verbose || !this.settingsManager.getQuietStartup();
if (!shouldShow) {
return;
}