Sitelet https://github.com/earendil-works/pi/commit/c7cdb460aa8a0cebef3446c4166729b8a0d97ead
Skip to content

Commit c7cdb46

Browse files
committed
fix(coding-agent): reject bug reports offline
1 parent 47a18e3 commit c7cdb46

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/coding-agent/CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
### Fixed
1010

11+
- Fixed `/bug` running in offline mode instead of reporting that online mode is required.
1112
- Fixed idle prompt-cache warming rebuilding expired caches when its timer or an extension decision is delayed.
1213
- Improved crash diagnostics with hints identifying loaded extensions that appear in the stack trace.
1314
- 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)).

‎packages/coding-agent/src/modes/interactive/bug-report.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ const TRANSCRIPT_NOTE =
4848

4949
/** Run the `/bug` flow: consent, optional summary, then upload or export. */
5050
export async function reportBug(context: BugReportContext, initialHint?: string): Promise<void> {
51+
if (process.env.PI_OFFLINE) {
52+
context.showError("/bug requires online mode.");
53+
return;
54+
}
55+
5156
const options = await promptForOptions(context, initialHint);
5257
if (!options) {
5358
context.showStatus("Bug report cancelled");

0 commit comments

Comments
 (0)