--devserver keeps nothing across a restart: the restart step of the Daily use acceptance cannot run #643

Closed
opened 2026-11-15 12:59:46 +00:00 by charles · 0 comments
Owner

Found by Daily use 41 (#533), on dailyuse 978a6a97.

With --devserver the runtime uses PersistenceKind::Ephemeral (apps/fluxer/src/runtime.rs): nothing is read at start and every SaveSettings / Navigation write is dropped. That protects the real settings, token and cache, but it means no devserver run (the acceptance test, or a manual fluxer --devserver dailyuse session) can show that drafts, recent searches, [navigation] (last channel per guild) and the other [chat] settings survive a restart: spec §2 item 1, the first step of the Daily use acceptance.

Steps: start the runtime with Config { devserver: Some("dailyuse") } and Paths::under(tmp), type a draft in #general, submit a search, open #announcements of Forked, shut down, start again with the same paths: the draft, the search and the last channel are gone; tmp stays empty.

Fix (small, in Daily use 41): an opt-in Runtime::with_devserver_settings() for tests: the settings file under the given Paths is read and written (never the keyring or the cache), so the restart is exercised end to end against the devserver. --devserver itself stays ephemeral.

Found by Daily use 41 (#533), on dailyuse 978a6a97. With `--devserver` the runtime uses `PersistenceKind::Ephemeral` (`apps/fluxer/src/runtime.rs`): nothing is read at start and every `SaveSettings` / `Navigation` write is dropped. That protects the real settings, token and cache, but it means no devserver run (the acceptance test, or a manual `fluxer --devserver dailyuse` session) can show that drafts, recent searches, `[navigation]` (last channel per guild) and the other `[chat]` settings survive a restart: spec §2 item 1, the first step of the Daily use acceptance. Steps: start the runtime with `Config { devserver: Some("dailyuse") }` and `Paths::under(tmp)`, type a draft in #general, submit a search, open #announcements of Forked, shut down, start again with the same paths: the draft, the search and the last channel are gone; `tmp` stays empty. Fix (small, in Daily use 41): an opt-in `Runtime::with_devserver_settings()` for tests: the settings file under the given `Paths` is read and written (never the keyring or the cache), so the restart is exercised end to end against the devserver. `--devserver` itself stays ephemeral.
charles added this to the Daily use milestone 2026-11-15 12:59:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#643
No description provided.