feat(FN-829): persist triage model selection into agent log

- Log the selected model provider and ID during triage so the agent log records which model was used
- Add agent-log entry capturing triage model choice for observability
- Add comprehensive tests for triage model logging behavior
- Update AgentsView component and dashboard docs for consistency
- Remove obsolete AgentsView test
This commit is contained in:
gsxdsm
2026-04-03 20:57:10 -07:00
parent 30a466e912
commit 960567f0d0
3 changed files with 73 additions and 2 deletions

View File

@@ -495,8 +495,16 @@ export class TriageProcessor {
defaultThinkingLevel: settings.defaultThinkingLevel,
});
triageLog.log(`${task.id}: using model ${describeModel(session)}`);
await this.store.logEntry(task.id, `Triage using model: ${describeModel(session)}`);
const modelDesc = describeModel(session);
triageLog.log(`${task.id}: using model ${modelDesc}`);
await this.store.logEntry(task.id, `Triage using model: ${modelDesc}`);
await this.store.appendAgentLog(
task.id,
`Triage using model: ${modelDesc}`,
"text",
undefined,
"triage",
);
// Make session available to review_spec tool (for RETHINK rewind)
sessionRef.current = session;