Skip to content

feat(app): save household planner prefs over the session - #1479

Merged
frahlg merged 3 commits into
masterfrom
cursor/plan-household-prefs-1a28
Oct 4, 2026
Merged

frahlg merged 3 commits into
masterfrom
cursor/plan-household-prefs-1a28

Conversation

@frahlg

@frahlg frahlg commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Contract-pair: srcfl/ftw-webapp@cursor/plan-household-prefs-1a28

The phone app needs the same household planning preferences as the box UI. The session cannot call the actuating POST /api/planner/prefs route, so planner.prefs.set applies that intent through Core's existing preference write.

The command accepts safety_k, battery_export, or both. Core preserves each omitted value under the existing preference lock. A style choice therefore keeps the export permission stored by another client. Manual control stays in place until the user chooses Use the plan. Existing expiry, scope and revision checks still apply, and Core validates any resulting dispatch.

Paired with srcfl/ftw-webapp#76. Native app PR srcfl/ftw-app#7 keeps its registry snapshot in step. All three registry copies match byte for byte.

Validation:

  • make verify passed: tests, migration and release checks, vet and build.
  • Regression tests cover partial preference changes, manual mode preservation, invalid or empty input, missing ports and failed writes.
  • Webapp full verification and browser flow passed against the paired simulator. No hardware or production deployment was performed.

POST /api/planner/prefs changes dispatch, so the phone writes safety_k
and battery_export with planner.prefs.set. The box still maps that
permission onto a planner mode.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@frahlg
frahlg marked this pull request as ready for review October 4, 2026 16:08
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@frahlg
frahlg merged commit 5de6cd4 into master Oct 4, 2026
14 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.

2 participants