Skip to content

Keep showing the downloaded App Store catalog when the hourly check cannot reach the network - #1008

Merged
calledtoconstruct merged 1 commit into
MyOwnDataCenter:mainfrom
nixfred:fix/bksa-store-offline
Nov 25, 2026
Merged

calledtoconstruct merged 1 commit into
MyOwnDataCenter:mainfrom
nixfred:fix/bksa-store-offline

Conversation

@nixfred

@nixfred nixfred commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

The App Store checks its stores for new apps once an hour. Since a failed check
stopped being cached as an empty catalog, a failed hourly check also made every
read of the catalog fail, so a server that went offline for more than an hour
showed no apps at all although the stores were already on disk. A store that
has been downloaded before is now shown from that copy when its hourly check
fails, without caching the result, so the next read tries the network again.
"Check for new apps" still reports "Couldn't reach ..." and a store that was
never downloaded still reports it. The other four reports in the checklist
(#680, #679, #129 and #622) were already fixed on main.

Fixes #701

Tested: node --test test/app-store-failures.test.mjs: on this branch tests 10 pass 10 fail 0; the same new tests on main fail (tests 10 pass 9 fail 1).
Typecheck, build and the full suite run in CI. Not tried on a real My Own Data Center machine.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BXN1v6ynNmDwfUtcMDAGUv

…annot reach the network

The App Store checks its stores for new apps once an hour. Since a failed check
stopped being cached as an empty catalog, a failed hourly check also made every
read of the catalog fail, so a server that went offline for more than an hour
showed no apps at all although the stores were already on disk. A store that
has been downloaded before is now shown from that copy when its hourly check
fails, without caching the result, so the next read tries the network again.
"Check for new apps" still reports "Couldn't reach ..." and a store that was
never downloaded still reports it. The other four reports in the checklist
(MyOwnDataCenter#680, MyOwnDataCenter#679, MyOwnDataCenter#129 and MyOwnDataCenter#622) were already fixed on main.

Fixes MyOwnDataCenter#701

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BXN1v6ynNmDwfUtcMDAGUv
@calledtoconstruct
calledtoconstruct merged commit b3c2ff8 into MyOwnDataCenter:main Nov 25, 2026
1 check passed
@calledtoconstruct

Copy link
Copy Markdown
Collaborator

Thank you @nixfred. Keep showing the downloaded App Store catalog when the hourly check cannot reach the network.

This is on main as b3c2ff87bc0966fa497c6cbc301fa4803758400a.

Reviewed by: Grok.

🤖 Generated with Grok 4.7

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.

The App Store says the catalog is fine when a store download failed

2 participants