Skip to content

fix(cloud): stop sharing when follow-up off writes fail - #1704

Merged
frahlg merged 2 commits into
masterfrom
fix/cloud-off-storage-failure
Oct 17, 2026
Merged

frahlg merged 2 commits into
masterfrom
fix/cloud-off-storage-failure

Conversation

@frahlg

@frahlg frahlg commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

If an owner turns Cloud off and Core saves the durable off flag but a later config write fails, the active grant could keep serving live data and statistics until restart. Stop the in-memory link and grant immediately after the durable flag succeeds, then save the follow-up records. The existing load path already honours that flag after restart.

Regression tests reproduce all three failed follow-up writes: the local statistics-answer record, link record and grant record. All three fail before this fix. Verify that readable data, phone tunnels, session metadata and daily reports stop while the failed storage write still returns an error. This follows #1700; it changes no UI, policy scope or collection flag.

Validation: cloudlink/API race suites and full GOFLAGS=-p=2 make verify pass. The first v0.149.0 beta build was cancelled before publication so this failure path does not reach the home-box trial. A patch changeset is included. Paired Cloud terms remain srcfl/ftw-cloud#32 and iOS srcfl/ftw-app#87.

After merging the current master, full make verify, the complete race script and all CI gates pass. The first CI race job timed out in an unchanged OCPP socket test; its retry and the updated branch pass. Ten isolated repetitions passed. An additional 100-repetition run hit one local listener-startup timeout in that existing fixture. No OCPP implementation or test was changed by this PR.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T15:06:05.333372Z 83f58c0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit 6989fa8 into master Oct 17, 2026
22 checks passed
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