Commit a5fbdeb
fix(report): Add dynamic model lookup for Agent Performance table (BUG #6)
Fixed the Agent Performance metadata section showing "N/A" in the Model column.
Problem:
- agentPerformance metadata from base-tool-orchestrator.ts doesn't include model info
- AI enrichment doesn't track which models were used per agent
- Agent Performance table showed "N/A" for all agents
Solution:
- Added dynamic model lookup in v9-grouped-report-formatter.ts
- Extract role from agent name (e.g., "Security Agent" → "security")
- Call modelConfigResolver.getCachedConfiguration() to get model config
- Use primary_model from configuration
- Fallback to "N/A" if lookup fails
Changes:
- Agent Performance table generation (lines 3721-3741)
- Agent Efficiency Ranking calculation (lines 3786-3804)
This completes the 4-bug fix series:
✅ BUG #3: Checkstyle severity normalization
✅ BUG #4: Greeting with @username
✅ BUG #5: Dependency-check files scanned count
✅ BUG #6: Agent Performance model column
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent eed246b commit a5fbdeb
1 file changed
Lines changed: 45 additions & 2 deletions
Lines changed: 45 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3717 | 3717 | | |
3718 | 3718 | | |
3719 | 3719 | | |
3720 | | - | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
| 3724 | + | |
| 3725 | + | |
| 3726 | + | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
3721 | 3743 | | |
3722 | 3744 | | |
3723 | 3745 | | |
| |||
3760 | 3782 | | |
3761 | 3783 | | |
3762 | 3784 | | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
3763 | 3806 | | |
3764 | 3807 | | |
3765 | | - | |
| 3808 | + | |
3766 | 3809 | | |
3767 | 3810 | | |
3768 | 3811 | | |
| |||
0 commit comments