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
## 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`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 returns409 模型暂不可用.Fix
model_config_versionthrough the existing triggerVerification
npx tsx --test --test-concurrency=1 tests/rectification-v9-database.test.ts(6 passed)git diff --check