Skip to content

fix: preserve pending install reports when retry fails - #52

Open
gluedtea wants to merge 1 commit into
xagentAI:mainfrom
gluedtea:main
Open

fix: preserve pending install reports when retry fails#52
gluedtea wants to merge 1 commit into
xagentAI:mainfrom
gluedtea:main

Conversation

@gluedtea

Copy link
Copy Markdown

submitInstallReport() persists a report when the initial API request fails so it can be retried later. However, flushPendingReports() previously swallowed POST errors and unconditionally removed the pending file.

runSetup() calls submitInstallReport() and then immediately calls flushPendingReports(). If the API returns an error twice, the newly queued report is deleted before a later CLI invocation can retry it.

Signed-off-by: gluedtea <gluedtea@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant