Skip to content

feat: persist console settings across daemon restarts - #241

Open
QDDCoder wants to merge 2 commits into
google:mainfrom
QDDCoder:feat/console-settings-persistence
Open

QDDCoder wants to merge 2 commits into
google:mainfrom
QDDCoder:feat/console-settings-persistence

Conversation

@QDDCoder

Copy link
Copy Markdown

The admin console had no place to remember a preference: the screen-off-during-run switch and similar UI state reset on every daemon restart. Add a small key/value settings store on the Artemis SQLite database so a setting survives a restart and is readable from the task worker subprocess, which consumes it.

  • app_settings table via CREATE TABLE IF NOT EXISTS so existing databases pick it up on the next open
  • SettingsService returns built-in defaults overlaid with persisted JSON-encoded values; unknown keys round-trip untouched
  • GET/PUT /api/system/settings expose the merged snapshot
  • the worker inherits ARTEMIS_SCREEN_OFF from the screen_off setting and build_scrcpy_record_command honours it with scrcpy --turn-screen-off

screen_off defaults to off, and so does the ARTEMIS_SCREEN_OFF fallback, so recording behaves exactly as it does today unless an operator explicitly opts in; no existing setup changes what it records.

The admin console had no place to remember a preference: the
screen-off-during-run switch and similar UI state reset on every daemon
restart. Add a small key/value settings store on the Artemis SQLite
database so a setting survives a restart and is readable from the task
worker subprocess, which consumes it.

- app_settings table via CREATE TABLE IF NOT EXISTS so existing databases
  pick it up on the next open
- SettingsService returns built-in defaults overlaid with persisted
  JSON-encoded values; unknown keys round-trip untouched
- GET/PUT /api/system/settings expose the merged snapshot
- the worker inherits ARTEMIS_SCREEN_OFF from the screen_off setting and
  build_scrcpy_record_command honours it with scrcpy --turn-screen-off

screen_off defaults to off, and so does the ARTEMIS_SCREEN_OFF fallback, so
recording behaves exactly as it does today unless an operator explicitly
opts in; no existing setup changes what it records.
@google-cla

google-cla Bot commented Nov 11, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…lpers

Admin console
- add automation scheduler with daily/interval/watch triggers; dispatch yields
  to the device lease so scheduled runs never fight a user task
- add notification watcher that polls `dumpsys notification` (zero LLM cost)
  and turns new notifications into a durable event stream
- add installed-app inventory API with persisted user labels for the picker
- extend settings, task queue and system routers to support the above

Showcase UI
- add full zh/en i18n layer and locale files
- add automations and notifications pages, settings service and confirm dialog
- wire routes, nav switcher, chat/stream and home/workspace components to i18n

Runtime / drivers
- add device_unlock (keyguard inspection + PIN unlock) and app_launcher helpers
- adb driver: prefer ADBKeyboard IME as tier 0 for UTF-8 text input and verify
  the result via uiautomator dump before reporting success

Misc
- fix llm service, video utils, memory chunking and data engine storage edge cases
- add docs/PROJECT_MAP.md
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