fix(coding-agent): reject bug reports offline

This commit is contained in:
Armin Ronacher 2026-09-21 10:48:44 +02:00
parent 47a18e37b1
commit c7cdb460aa
2 changed files with 6 additions and 0 deletions

View file

@ -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)).

View file

@ -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<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");