Keep the last usable /progress report when a refresh is incomplete #33

Open
github-bot wants to merge 1 commit from github-bot/gh-33 into main AGit
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 06:29 UTC · original
RavenCurseBurg:fix/cache-renderable-progress → main · +58 −4 · 2 files · 1 commits · open

/progress defers the Discord reply before fetching its data. A valid JSON response such as {} previously replaced the last good report, then raised KeyError while building the reply. The user got no follow-up, and the bot cached the unusable value for five minutes.

This change builds the embed inside the cache’s existing refresh operation. With a previous report, an incomplete response leaves it available. On a cold cache, the command sends its existing progress-page fallback. A later valid response can be used immediately.

Two offline command tests cover cold failure and the sequence good → incomplete → repaired. Both failed on the parent and pass here with discord.py 2.5.2. I also checked that the published-data format produces exactly the same embed from this repository’s current generated report. All three native Release CTests passed. Offline command regression on Ubuntu

AI-assisted with Codex + GPT-6.2 Astra (xhigh).

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 06:29 UTC · [original](https://github.com/JamesCicada/GTAVI-Recomp/pull/33) `RavenCurseBurg:fix/cache-renderable-progress` → `main` · +58 −4 · 2 files · 1 commits · open `/progress` defers the Discord reply before fetching its data. A valid JSON response such as `{}` previously replaced the last good report, then raised `KeyError` while building the reply. The user got no follow-up, and the bot cached the unusable value for five minutes. This change builds the embed inside the cache’s existing refresh operation. With a previous report, an incomplete response leaves it available. On a cold cache, the command sends its existing progress-page fallback. A later valid response can be used immediately. Two offline command tests cover cold failure and the sequence good → incomplete → repaired. Both failed on the parent and pass here with discord.py 2.5.2. I also checked that the published-data format produces exactly the same embed from this repository’s current generated report. All three native Release CTests passed. [Offline command regression on Ubuntu](https://github.com/RavenCurseBurg/GTAVI-Recomp/actions/runs/45768862190/job/139736361854) AI-assisted with Codex + GPT-6.2 Astra (xhigh).
AI-assisted with Codex + GPT-6.2 Astra (xhigh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:44:50 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/33/head:github-bot/gh-33'
git switch 'github-bot/gh-33'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-33'
git switch 'github-bot/gh-33'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-33'
git switch 'github-bot/gh-33'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-33'
git switch 'main'
git merge --squash 'github-bot/gh-33'
git switch 'main'
git merge --ff-only 'github-bot/gh-33'
git switch 'main'
git merge 'github-bot/gh-33'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.