Skip to content

feat(api-rs): persist session personas#429

Open
goksu wants to merge 1 commit into
api-rs-control-planefrom
gt/codex/api-persona-sessions
Open

feat(api-rs): persist session personas#429
goksu wants to merge 1 commit into
api-rs-control-planefrom
gt/codex/api-persona-sessions

Conversation

@goksu
Copy link
Copy Markdown
Collaborator

@goksu goksu commented Jun 5, 2026

Summary:

  • add persona_id to CreateSessionRequest and Session
  • persist persona_id through SQLx and reject mismatched session reuse with 409
  • add SQLx migration 0006_session_persona_id.sql

Tests:

  • rustfmt --edition 2024 --check on edited Rust files
  • cargo test -p centaur-api-server -p centaur-session-runtime -p centaur-session-sqlx -p centaur-session-cli
  • just build-one api-rs
  • local Helm deploy with iron-control disabled for arm64 validation
  • POST /api/session/web:persona-session-validation-1 returned persona_id=validation
  • repeat POST with a different persona returned HTTP 409

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