fix: restore bashInterceptor settings dropped by async-jobs merge

The async-jobs PR (#260) accidentally dropped `bashInterceptor` from the
Settings interface and the getBashInterceptorEnabled/getBashInterceptorRules
methods from SettingsManager, breaking the TypeScript build on main.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson 2026-03-13 16:06:21 -06:00
parent 4c2e40b9a3
commit fdeb520332

View file

@ -105,6 +105,7 @@ export interface Settings {
showHardwareCursor?: boolean; // Show terminal cursor while still positioning it for IME
markdown?: MarkdownSettings;
async?: AsyncSettings;
bashInterceptor?: BashInterceptorSettings;
}
/** Deep merge settings: project/overrides take precedence, nested objects merge recursively */
@ -369,6 +370,14 @@ export class SettingsManager {
return structuredClone(this.projectSettings);
}
getBashInterceptorEnabled(): boolean {
return this.settings.bashInterceptor?.enabled ?? true;
}
getBashInterceptorRules(): BashInterceptorRule[] | undefined {
return this.settings.bashInterceptor?.rules;
}
reload(): void {
const globalLoad = SettingsManager.tryLoadFromStorage(this.storage, "global");
if (!globalLoad.error) {