Commits
Marek Vsechovsky committed f068f9a0aad
Session 198, Step 1: Make the reported LLM name clickable on the Wf S4 result point and open the model-selection dialog
- AIM-3702 Make the reported LLM name clickable on the Wf S4 result point and open the model-selection dialog
- AIM-3703 Allow correcting the reported model from the AI note header and re-attribute the step cost to the selected model
- AIM-3704 Re-attribute note ratings of the step from the originally reported model to the user-selected one
Outcome:
All three model-correction entry points are implemented.
- Issue -4351: the reported model in the Wf S4 result line ("Implemented by X in Y.") is now a clickable button that opens the existing "What LLM model was used?" dialog; Set updates `step.model` in the output file before processing, or the stored step model after processing.
- Issue -4352: the model in the `.aim-note-header` of AI notes (Issues and Wf S1) is clickable the same way; on a processed step the new `PUT /api/workflow/steps/model` endpoint updates `SessionStep.SessionAgentId` and moves the step's accumulated cost (`AiCost` + `AiCostMonthly` model rows) from the originally reported model to the user-selected one.
- Issue -4353: the step's note ratings are re-attributed the same way in `AiAgentRating` — `AARTotal`/`AARIssuesTotalSteps` per rated note, and `AARIssuesRated` for issues whose only rated attempt is in this step.
Validated with the project build (0 errors), the node test suite (the four Wf S4 / note-header tests including a new shared-dialog regression test pass; the only failures are pre-existing and unrelated), SCSS compilation and a live static-serving check on the running dev instance. A logged-in click-through could not be performed because no authenticated browser session was available.