From b74a3658f370068bc159908a553f9892be89791f Mon Sep 17 00:00:00 2001 From: Aliou Diallo Date: Sun, 11 Jan 2026 22:48:20 +0100 Subject: [PATCH] fix(coding-agent): display extension loading errors to user --- packages/coding-agent/CHANGELOG.md | 1 + packages/coding-agent/src/main.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 4f60bcde..44bc9383 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -23,6 +23,7 @@ - Session picker respects custom keybindings when using `--resume` ([#633](https://github.com/badlogic/pi-mono/pull/633) by [@aos](https://github.com/aos)) - Custom footer extensions now see model changes: `ctx.model` is now a getter that returns the current model instead of a snapshot from when the context was created ([#634](https://github.com/badlogic/pi-mono/pull/634) by [@ogulcancelik](https://github.com/ogulcancelik)) +- Extension loading errors are now displayed to the user instead of being silently ignored ([#639](https://github.com/badlogic/pi-mono/pull/639) by [@aliou](https://github.com/aliou)) ## [0.42.5] - 2026-01-11 diff --git a/packages/coding-agent/src/main.ts b/packages/coding-agent/src/main.ts index 1b1d12e9..5dee215b 100644 --- a/packages/coding-agent/src/main.ts +++ b/packages/coding-agent/src/main.ts @@ -238,6 +238,11 @@ export async function main(args: string[]) { time("discoverExtensionFlags"); } + // Log extension loading errors + for (const { path, error } of extensionsResult.errors) { + console.error(chalk.red(`Failed to load extension "${path}": ${error}`)); + } + // Collect all extension flags const extensionFlags = new Map(); for (const ext of extensionsResult.extensions) {