You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: workflow run view cannot open an agent step's thread on a linked environment #41594
In a workflow run, an agent step that ran on a linked environment cannot be opened when the app showing the run is not itself connected to that environment. The step card shows plain text, "Thread on <environment id>", with a raw id and nothing to click.
The server the run lives on has the environment linked and reachable: the same thread opens from a t3-thread://v2/<environment>/<thread> link in a chat message, and t3_thread_read with that environmentId returns it.
Steps
On server A, link a second environment B (Settings → Labs → Linked environments).
Run a workflow on A whose agent step passes environment: <B's id>.
Open the run from a client that is connected to A only.
Look at the agent step: "Thread on 36238463-…", not openable. The row's > does nothing useful either.
Expected
The step opens the agent's thread through A's link to B, the way a thread link in chat does, and shows B's label instead of its id.
Where
apps/web/src/components/workflows/WorkflowRunFeed.tsx (around line 1685): the action is a button only when useEnvironment(threadEnvironmentId) is non-null, i.e. when this client knows the environment. apps/web/src/components/chat/MarkdownThreadLink.tsx already handles the linked case (linked && linkedLabel), opening the thread through the server's link.
Activity
test(web): workflow agent step on a linked environment opens its thread
fix(web): workflow steps on a linked environment open their thread