StarBrook is a privacy-first news app and browser. No account to read. No tracking, no ads, no telemetry. That is the whole pitch, and it is the standard every part of the app is held to.
So when the owner signed out of the app on his own phone and the app still showed his home ZIP — in Settings, and in Weather — that was not a cosmetic bug. It was the app failing its own pitch, in front of the one person it should never fail in front of.
He found it himself, on Build 27, on the evening of November 24. Signed out. Settings still showed his home ZIP. Weather still showed it too. His rule, stated on the spot: if you're not logged in, the app must not show your home ZIP. Signed out means a prompt, not your address.
What was actually happening
The ZIP was not a hardcoded default. The code even says so in a comment: the field is never prefilled. It was a locally stored preference — a ZIP he had entered himself, saved on the device under a zip key. Weather, Settings, and the Portal all read that stored value directly, with no check on whether anyone was signed in. Sign out, and the stored value just kept rendering, as if nothing had changed.
That is the shape of the bug: not a leak to a server, not a breach, nothing left the device. The stored value stayed on the phone. But the app's own rule — signed out means nothing personal on screen — was not enforced at the point where the value was read. The privacy promise lives or dies at the read, not at the storage.
There was a second spot, found in the same session. The Portal Hub chips showed only the original five news sections switched on, while Settings showed all of them on. Same class of problem, different mechanism: the Hub reads the server's saved preferences row, and that row was stale — it had never received the six newer sections added in a later release. Worse, signing in applied the raw server row locally, so a stale row could quietly switch the new sections off after he signed in. His toggles may have flipped off without him touching them.
The fix, in one pull request
Both fixes went into a single pull request, PR #2, branch p1-zip-hub-fix: three commits, eight files, 257 lines added, 9 removed.
Fix 1 — the ZIP. A new effectiveZipFlow gates the stored ZIP on the sign-in state: signed in, you see your stored ZIP; signed out, you see nothing, and Weather falls back to its existing "enter your ZIP" prompt. Exactly three screens were switched to the gated value: Settings, Weather, and the Portal. The stored ZIP is not deleted — sign back in and it comes back without re-entering it. The push-notification registration still reads the raw stored value, deliberately, because it needs the ZIP to register for alerts whether or not a session is active; nothing on screen changes there.
Fix 2 — the section merge. Signing in now runs a merge instead of a blind overwrite. The rule: for the original five sections, a section stays on only if it is on in both places — a deliberate "off" on either side is respected. For the six newer sections, the local value wins, because the web portal never offered them and their absence from the server row is staleness, not a choice. The merged set is pushed back to the server only when it differs from the stored row. One known edge, disclosed in the PR: if he deliberately switched Sports or Faith off on the web portal — the two newer sections the web did offer — signing in re-enables it once, and then a single tap-off in the app makes it stick, because a local "off" is preserved by every future merge.
Twelve unit tests were written for the two fixes: four for the ZIP gating, eight for the merge and its encoding. They cover the stale-row case, a local section switched off staying off, a server section switched off staying off, a missing server row, and the full-set encoding.
What is not done yet
The fix shipped — and the proof is still catching up.
PR #2 merged on November 25, and Build 28 is live in the app's updater: install it, sign out, and the ZIP is gone from Settings and Weather until you sign back in. What has not happened yet is the phone test on the shipped build: the update prompts on the phone that found the bug, but nobody has confirmed the signed-out screen on Build 28 yet.
The tests are written, not proven in CI. The CI run for the PR passed, but it only built the APK — it did not run the tests, because the test step could not be added to the workflow file: the GitHub App token returns a 403 when writing workflow files, and it needs the Workflows permission. The merged code was checked on a local standalone rig — it compiles, and the unit tests pass there — but that is not CI, and the article does not pretend it is.
That is the honest state of it. The bug was found by the person it affected, on his own phone, in the evening. The fix is small, the tests are written, and it is live in Build 28. The part that is not finished is the part that proves the tests run — because the next person to sign out should see a prompt, not an address, and we should be able to show the test that guarantees it.
