From fdeb520332f97e4e857ec4ea2ce940c706add90f Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Fri, 13 Mar 2026 16:06:21 -0600 Subject: [PATCH] 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 --- packages/pi-coding-agent/src/core/settings-manager.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/pi-coding-agent/src/core/settings-manager.ts b/packages/pi-coding-agent/src/core/settings-manager.ts index d9420e8a5..09f23c933 100644 --- a/packages/pi-coding-agent/src/core/settings-manager.ts +++ b/packages/pi-coding-agent/src/core/settings-manager.ts @@ -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) {