Commit f26f4ad
authored
fix(menubar): show every active agent as a tab, ordered by usage for the selected range (#549)
The agent tab strip never showed Grok, Hermes, or ZCode: ProviderFilter had no cases for them, so they could not become tabs. It also derived the visible tabs from today's providers rather than the range the user actually has selected, so an agent used in the selected window but not today never appeared.
Add the three missing cases (filter keys, CLI arg, accent color) and rebuild visibleFilters to source from the selected period via cost(for:). Every agent with usage in the range now appears, ordered by spend descending, and agents with no usage in the range are omitted.1 parent 163013f commit f26f4ad
2 files changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1081 | 1084 | | |
1082 | 1085 | | |
1083 | 1086 | | |
| |||
1092 | 1095 | | |
1093 | 1096 | | |
1094 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
1095 | 1100 | | |
1096 | 1101 | | |
1097 | 1102 | | |
| |||
1121 | 1126 | | |
1122 | 1127 | | |
1123 | 1128 | | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1124 | 1132 | | |
1125 | 1133 | | |
1126 | 1134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 111 | | |
116 | 112 | | |
117 | 113 | | |
118 | 114 | | |
119 | 115 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
123 | 121 | | |
124 | | - | |
125 | | - | |
| 122 | + | |
126 | 123 | | |
127 | | - | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
| |||
506 | 502 | | |
507 | 503 | | |
508 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
0 commit comments