From 2396a859b4e31f9b59fa5dcd574828cc8519ef44 Mon Sep 17 00:00:00 2001 From: Christina Tong Date: Thu, 5 Mar 2026 09:37:39 -0700 Subject: [PATCH] fix(tui): link footer subagent (#1270) --- src/cli/components/InputRich.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cli/components/InputRich.tsx b/src/cli/components/InputRich.tsx index 0aff335..c738a01 100644 --- a/src/cli/components/InputRich.tsx +++ b/src/cli/components/InputRich.tsx @@ -29,6 +29,7 @@ import { permissionMode } from "../../permissions/mode"; import { OPENAI_CODEX_PROVIDER_NAME } from "../../providers/openai-codex-provider"; import { ralphMode } from "../../ralph/mode"; import { settingsManager } from "../../settings-manager"; +import { buildChatUrl } from "../helpers/appUrls.js"; import { charsToTokens, formatCompact } from "../helpers/format"; import type { QueuedMessage } from "../helpers/messageQueueBridge"; import { @@ -283,7 +284,13 @@ const InputFooter = memo(function InputFooter({ : backgroundAgents .map((a) => { const elapsedS = Math.round((Date.now() - a.startTime) / 1000); - return `${a.type.toLowerCase()} (${elapsedS}s)`; + const agentId = a.agentURL?.match(/\/agents\/([^/]+)/)?.[1]; + const chatUrl = agentId ? buildChatUrl(agentId) : null; + const typeLabel = a.type.toLowerCase(); + const linkedType = chatUrl + ? `\x1b]8;;${chatUrl}\x1b\\${typeLabel}\x1b]8;;\x1b\\` + : typeLabel; + return `${linkedType} (${elapsedS}s)`; }) .join(" ยท ");