| @@ -2130,6 +2130,9 @@ export const AGENT_SPAWN_CTA_CLASS_NAME = · 2129 unmodified lines |
| 2130 | 2130 | export const AGENT_SPAWN_CTA_TRIGGER_CLASS_NAME = |
| 2131 | 2131 | "group flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden rounded-lg px-1 py-1.5 text-left transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"; |
| 2132 | 2132 | |
| 2133 | +export const resolveAgentSpawnActionLabel = (live: boolean) => |
| 2134 | + live ? "Open agents" : "View agents"; |
| 2135 | + |
| 2133 | 2136 | const AgentSpawnCtaRow = memo(function AgentSpawnCtaRow(props: { workEntry: TimelineWorkEntry }) { |
| 2134 | 2137 | const { workEntry } = props; |
| 2135 | 2138 | const { agentPanelModel, onOpenAgents } = use(TimelineRowCtx); |
| @@ -2194,6 +2197,8 @@ const AgentSpawnCtaRow = memo(function AgentSpawnCtaRow(props: { workEntry: Time · 58 unmodified lines |
| 2194 | 2197 | ? `${failed} failed` |
| 2195 | 2198 | : "✓ completed"; |
| 2196 | 2199 | |
| 2200 | + const actionLabel = resolveAgentSpawnActionLabel(live); |
| 2201 | + |
| 2197 | 2202 | return ( |
| 2198 | 2203 | <div className={AGENT_SPAWN_CTA_CLASS_NAME}> |
| 2199 | 2204 | <div className="flex items-center justify-between gap-2 rounded-xl px-1"> |
| @@ -2217,11 +2222,15 @@ const AgentSpawnCtaRow = memo(function AgentSpawnCtaRow(props: { workEntry: Time · 17 unmodified lines |
| 2217 | 2222 | {totalTokens > 0 ? ` · Σ ${formatSubagentTokenCount(totalTokens)}` : ""} |
| 2218 | 2223 | </span> |
| 2219 | 2224 | </button> |
| 2220 | | − <Button type="button" size="xs" variant="outline" onClick={onOpenAgents}> |
| 2225 | + <Button |
| 2226 | + type="button" |
| 2227 | + size="xs" |
| 2228 | + variant="outline" |
| 2229 | + aria-label={actionLabel} |
| 2230 | + onClick={onOpenAgents} |
| 2231 | + > |
| 2221 | 2232 | <BotIcon className="size-3" /> |
| 2222 | | − <span className="hidden @[24rem]/agent-spawn:inline"> |
| 2223 | | − {live ? "Open agents" : "View agents"} |
| 2224 | | − </span> |
| 2233 | + <span className="hidden @[24rem]/agent-spawn:inline">{actionLabel}</span> |
| 2225 | 2234 | </Button> |
| 2226 | 2235 | </div> |
| 2227 | 2236 | </div> |