Export ProjectionProjectDbRow and ProjectionThreadDbRow from their
respective repository Layer files and reuse them in
ProjectionSnapshotQuery instead of redefining identical schemas.
This eliminates the risk of the two read paths silently diverging
if the mapFields transforms are updated in one place but not the other.
- Store missing model options as SQL NULL in project and thread projections
- Stop rehydrating derived model options when restarting provider sessions
- Share model option conversion logic in `packages/shared`
- Replace model-only fields with provider/model selections across orchestration
- Add projection schema and migration updates for provider-backed snapshots
- Update server and web tests to use the new selection shape
- Add `thread.runtime-mode.set` -> `thread.runtime-mode-set` flow in decider/reactors/projectors
- Persist runtime mode on thread/session projections with new DB migrations
- Update provider and Codex integration tests to verify thread continuity across mode changes
Co-authored-by: codex <[email protected]>