Repository navigation
feat(cli): read and write the desktop app's settings - #894
Merged
Merged
Conversation
future desktop settings [<key>] [--json] / ... set <key> <value> expose the app_settings table in ~/.future/app/app.db, so every preference the desktop Settings screen can change is reachable from the CLI (and therefore from a skill). The keys, defaults, validation and the database path move into a new future-app-settings crate consumed by both the CLI and the Tauri backend, which keeps only its connection pool, device identity and post-commit events. A single schema is what keeps the two writers from drifting; app-settings tests assert the key list matches the struct. Reads report the documented defaults for a database the app has never written and do not create one; writes validate before touching the database and preserve unrelated keys.
huichen
enabled auto-merge (squash)
October 3, 2026 07:12
future-skills#68 documents uture desktop settings in the future-self skill (v1.5.0).
…ault only in the CLI The desktop's phone-facing handlers depend on an unreadable store being reported, never rendered as defaults (remote_host::business::settings and remote::commands bridge tests both encode it), so read() stays strict and the CLI checks table_exists itself before falling back to the documented defaults.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the parity gap from the /future-self self-inspection: the desktop app's own preferences (approval tier, hidden models, completion bell, title language, ...) had no CLI surface at all, so a skill could read/write the agent settings document but nothing else the app's Settings screen can change.
What
ust-tests matrix group and the Makefile gain the new crate.
Verified
Not covered locally
The full desktop suite (1500+ tests) did not finish within a 50-minute local run on Windows; the required scope for the touched module passed as above and CI is the backstop.