mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): allow offline bug report exports (#9841)
This commit is contained in:
parent
c7cdb460aa
commit
1e0fe20497
2 changed files with 5 additions and 6 deletions
|
|
@ -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)).
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue