mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): reject bug reports offline
This commit is contained in:
parent
47a18e37b1
commit
c7cdb460aa
2 changed files with 6 additions and 0 deletions
|
|
@ -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)).
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue