fix(coding-agent): allow offline bug report exports (#9841)

This commit is contained in:
Christian Klotz 2026-09-21 13:54:57 +01:00 • committed by GitHub
parent c7cdb460aa
commit 1e0fe20497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View file

@ -8,7 +8,7 @@
### Fixed
- Fixed `/bug` running in offline mode instead of reporting that online mode is required.
- Fixed `/bug` allowing uploads in offline mode while preserving local zip exports.
- 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)).

View file

@ -48,16 +48,15 @@ const TRANSCRIPT_NOTE =
/** Run the `/bug` flow: consent, optional summary, then upload or export. */
export async function reportBug(context: BugReportContext, initialHint?: string): Promise<void> {
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");
return;
}
if (options.delivery === "upload" && process.env.PI_OFFLINE) {
context.showError("Uploading bug reports requires online mode. Use Export as Zip instead.");
return;
}
let summary: string | undefined;
if (options.includeSummary) {