authorgravatar for me@t3.ggTheo Browne <me@t3.gg> 2026-09-24 22:06:27-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-24 22:06:27-07:00
logdf9826f0806cc4874cd79f24a42a1e9e506030c2
treeda9f82f4722cfbd7c074eb5db746a18524a7f876
parent1e192b25583dd682324acd52f396be3d2ec9ee23
signature Signed by PGP key B5690EEEBB952194

feat(web): agents working banner links to the Agents panel (#13572)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

1 files changed, 21 insertions(+), 8 deletions(-)

apps/web/src/components/ChatView.tsx+21-8
......@@ -6299,6 +6299,9 @@ export default function ChatView(props: ChatViewProps) {
62996299 }
63006300 const working = activeBackgroundLiveness === "working";
63016301 const liveCount = agentPanelModel.liveCount;
6302 // Hidden once the Agents surface is on screen; the link would point at nothing.
6303 const showViewAgents =
6304 liveCount > 0 && !(rightPanelOpen && activeRightPanelSurface?.kind === "agents");
63026305 return {
63036306 id: `background-liveness:${activeThread.id}`,
63046307 variant: "default",
......@@ -6315,22 +6318,32 @@ export default function ChatView(props: ChatViewProps) {
63156318 : "Background work"
63166319 : "Monitoring",
63176320 actions: (
6318 <Button
6319 size="xs"
6320 variant="ghost"
6321 disabled={isStoppingBackgroundWork}
6322 onClick={() => void handleStopBackgroundWork()}
6323 >
6324 {isStoppingBackgroundWork ? "Stopping..." : "Stop"}
6325 </Button>
6321 <>
6322 {showViewAgents ? (
6323 <Button size="xs" variant="ghost" aria-label="View agents" onClick={addAgentsSurface}>
6324 View
6325 </Button>
6326 ) : null}
6327 <Button
6328 size="xs"
6329 variant="ghost"
6330 disabled={isStoppingBackgroundWork}
6331 onClick={() => void handleStopBackgroundWork()}
6332 >
6333 {isStoppingBackgroundWork ? "Stopping..." : "Stop"}
6334 </Button>
6335 </>
63266336 ),
63276337 };
63286338 }, [
63296339 activeBackgroundLiveness,
6340 activeRightPanelSurface?.kind,
63306341 activeThread,
6342 addAgentsSurface,
63316343 agentPanelModel.liveCount,
63326344 handleStopBackgroundWork,
63336345 isStoppingBackgroundWork,
6346 rightPanelOpen,
63346347 ]);
63356348 // A woken thread announces itself in the open view, not just the sidebar
63366349 // pill. Dismissing marks the wake as seen (same acknowledgment as the