fix(rectification): bind default session model #28

Merged
jesse merged 1 commits from codex/fix-rectification-session-model-20260811 into main 2026-08-12 01:25:03 +08:00
Owner

Root cause

V9 creates birth-time rectification sessions without model_id. The UI displays the default model locally, but the Agent route correctly resolves only the persisted session model, so opening returns 409 模型暂不可用.

Fix

  • assign the published/enabled default model in a DB trigger for model-less rectification sessions
  • backfill existing model-less rectification sessions
  • pin model_config_version through the existing trigger

Verification

  • npx tsx --test --test-concurrency=1 tests/rectification-v9-database.test.ts (6 passed)
  • git diff --check
## Root cause V9 creates birth-time rectification sessions without `model_id`. The UI displays the default model locally, but the Agent route correctly resolves only the persisted session model, so opening returns `409 模型暂不可用`. ## Fix - assign the published/enabled default model in a DB trigger for model-less rectification sessions - backfill existing model-less rectification sessions - pin `model_config_version` through the existing trigger ## Verification - `npx tsx --test --test-concurrency=1 tests/rectification-v9-database.test.ts` (6 passed) - `git diff --check`
jesse added 1 commit 2026-08-12 01:07:36 +08:00
fix(rectification): bind default session model
Staging Backend Quality Gate / validate (pull_request) Successful in 15m48s
Staging Backend Quality Gate / publish (pull_request) Has been skipped
b276bc8a8f
jesse merged commit db9e7ba2a4 into main 2026-08-12 01:25:03 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: root/Jyotisha#28