Repository navigation
fix: use Cursor model_id when model is missing or blank - #2490
Open
vladikkuzn wants to merge 1 commit into
Open
vladikkuzn wants to merge 1 commit into
vladikkuzn wants to merge 1 commit into
Conversation
Signed-off-by: vladikkuzn <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cursor hooks with a missing or blank
modeldiscarded the documentedmodel_id; blank values also created a separate empty model bucket in stats. The preset now uses the first nonblankmodel, thenmodel_id, thenunknown, preserving a selected value verbatim and keeping existing legacy-model precedence.Fixes #2489.
Proof: both new regressions failed before the fix.
task test TEST_FILTER=cursorpassed (136 unit and 41 integration tests), as didtask build,task lint,task fmt, andtask format:check.An isolated scratch-repository replay used the built binary, real trace2-driven commits, and stdin pre/post hooks. Each case attributed one accepted AI line:
model_id: "model-id"cursor::unknowncursor::model-idmodel, populatedmodel_idcursor::cursor::model-idmodelonlycursor::cursor::unknownmodelplusmodel_idcursor::legacy-slugcursor::legacy-slugThis fixes the documented payload handling, but does not establish that all observed CLI/ACP unknown models are resolved. A live capture was attempted and blocked by CLI authentication. Both fields absent still means
unknown; a literal nonblankmodel: "unknown"retains existing precedence. No global model settings are used, and existing notes are not rewritten.Council review
Rounds: 1
Reviewed with sol-loop: 1 round with GPT-6.1 Sol on high reasoning effort. Sol verdict: approved.
Created with GPT-6.1 Terra in Codex, orchestrated by GPT-6.1 Sol in Codex.