From c7cdb460aa8a0cebef3446c4166729b8a0d97ead Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 21 Sep 2026 10:48:44 +0200 Subject: [PATCH] fix(coding-agent): reject bug reports offline --- packages/coding-agent/CHANGELOG.md | 1 + packages/coding-agent/src/modes/interactive/bug-report.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 2ed9c34f3..5b8c2a39b 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -8,6 +8,7 @@ ### Fixed +- Fixed `/bug` running in offline mode instead of reporting that online mode is required. - Fixed idle prompt-cache warming rebuilding expired caches when its timer or an extension decision is delayed. - Improved crash diagnostics with hints identifying loaded extensions that appear in the stack trace. - Fixed text files beginning with `GIF` being misclassified as images and omitted from `read` and CLI `@file` input ([#9755](https://github.com/earendil-works/pi/issues/9755)). diff --git a/packages/coding-agent/src/modes/interactive/bug-report.ts b/packages/coding-agent/src/modes/interactive/bug-report.ts index a3fb5fcf4..f8ba507d1 100644 --- a/packages/coding-agent/src/modes/interactive/bug-report.ts +++ b/packages/coding-agent/src/modes/interactive/bug-report.ts @@ -48,6 +48,11 @@ const TRANSCRIPT_NOTE = /** Run the `/bug` flow: consent, optional summary, then upload or export. */ export async function reportBug(context: BugReportContext, initialHint?: string): Promise { + if (process.env.PI_OFFLINE) { + context.showError("/bug requires online mode."); + return; + } + const options = await promptForOptions(context, initialHint); if (!options) { context.showStatus("Bug report cancelled");