faizan-oai
3921a30d6b
Persist Daybreak preferences in thread metadata ( #42854 )
...
## Why
Clients need a per-thread Daybreak toggle that survives restarts and can be
restored on resume without changing the access program of an active or future
turn.
## What changed
- Add experimental `daybreakEnabled` support to `thread/metadata/update` and
expose the saved value on thread responses.
- Store the preference in SQLite, including for threads without a first turn,
and preserve it through reads, resumes, reconciliation, and restarts.
- Copy the preference when forking a thread while keeping subsequent updates
independent.
- Keep `daybreakEnabled` separate from the per-turn `cyberAccessProgram` field;
app-server does not derive one from the other.
## Testing
- Cover persistence across restarts, cold reads, reconciliation, and forks.
- Verify metadata updates do not alter the access program of active or later
turns.
GitOrigin-RevId: bcf987a9fcd7b0ac8a88b1c8f0df06b33ed8ad6e
2026-09-04 21:17:25 +00:00
..
2026-09-04 21:07:14 +00:00
2026-09-04 20:18:13 +00:00
2026-09-03 17:48:15 +00:00
2026-09-04 21:07:14 +00:00
2026-09-01 18:24:56 +00:00
2026-09-04 21:07:14 +00:00
2026-09-01 13:29:18 +00:00
2026-09-03 04:38:26 +00:00
2026-08-21 06:41:28 +00:00
2026-08-31 22:38:23 +00:00
2026-08-25 05:16:45 +00:00
2026-09-04 21:07:14 +00:00
2026-09-04 13:50:27 +00:00
2026-09-04 12:56:26 +00:00
2026-09-04 20:27:18 +00:00
2026-09-04 19:56:31 +00:00
2026-08-25 13:10:24 +00:00
2026-08-25 21:20:51 +00:00
2026-08-26 16:28:35 +00:00
2026-08-25 21:20:51 +00:00
2026-09-02 23:58:24 +00:00
2026-09-02 23:58:24 +00:00
2026-08-25 19:54:52 +00:00
2026-09-02 18:52:44 +00:00
2026-09-04 12:56:26 +00:00
2026-09-04 12:56:26 +00:00
2026-08-23 10:06:57 +00:00
2026-09-01 20:41:32 +00:00
2026-09-04 19:19:04 +00:00
2026-08-20 19:19:41 +00:00
2026-08-31 00:53:30 +00:00
2026-08-31 21:15:38 +00:00
2026-08-28 21:40:23 +00:00
2026-08-23 21:29:11 +00:00
2026-09-03 17:48:15 +00:00
2026-09-03 17:48:15 +00:00
2026-09-04 13:24:42 +00:00
2026-08-25 17:41:22 +00:00
2026-09-04 13:24:42 +00:00
2026-09-01 13:43:27 +00:00
2026-09-01 13:43:27 +00:00
2026-08-25 19:54:52 +00:00
2026-09-01 22:16:54 +00:00
2026-09-02 02:09:35 +00:00
2026-09-03 00:17:19 +00:00
2026-09-01 14:43:27 +00:00
2026-08-20 07:03:02 +00:00
2026-09-01 18:24:56 +00:00
2026-08-14 00:18:29 +00:00
2026-08-25 05:16:45 +00:00
2026-08-25 21:34:05 +00:00
2026-08-21 21:17:42 +00:00
2026-09-04 13:50:27 +00:00
2026-08-23 22:23:40 +00:00
2026-09-03 22:22:48 +00:00
2026-09-03 23:20:54 +00:00
2026-08-26 16:28:35 +00:00
2026-09-04 13:50:27 +00:00
2026-08-29 06:05:28 +00:00
2026-09-01 20:46:17 +00:00
2026-09-04 13:50:27 +00:00
2026-09-01 13:43:27 +00:00
2026-08-25 16:47:13 +00:00
2026-08-20 17:46:05 +00:00
2026-08-17 19:06:53 +00:00
2026-09-03 23:20:54 +00:00
2026-09-04 21:17:25 +00:00
2026-08-17 04:01:37 +00:00
2026-08-18 18:41:40 +00:00
2026-08-31 22:38:23 +00:00
2026-09-02 02:09:35 +00:00
2026-08-31 22:38:23 +00:00
2026-09-04 12:56:26 +00:00
2026-08-25 17:41:22 +00:00
2026-09-02 23:58:24 +00:00
2026-09-02 23:58:24 +00:00
2026-08-31 23:29:20 +00:00
2026-08-31 23:29:20 +00:00
2026-08-23 20:08:40 +00:00
2026-08-24 10:56:54 +00:00
2026-08-26 22:37:59 +00:00
2026-08-19 12:56:08 +00:00
2026-08-25 14:34:25 +00:00
2026-08-20 06:03:25 +00:00
2026-08-20 06:03:25 +00:00
2026-08-27 00:07:26 +00:00
2026-08-13 11:11:26 +00:00
2026-08-27 20:01:39 +00:00
2026-09-02 18:52:44 +00:00
2026-09-03 23:20:54 +00:00
2026-09-03 23:20:54 +00:00
2026-08-11 19:30:12 +00:00
2026-08-11 19:30:12 +00:00
2026-09-03 00:17:19 +00:00
2026-09-03 00:17:19 +00:00
2026-09-04 12:56:26 +00:00
2026-09-04 12:56:26 +00:00
2026-08-25 17:41:22 +00:00
2026-09-02 20:30:45 +00:00
2026-08-20 06:29:32 +00:00