From e0ec3d1fbd61f18a3cbb84d4a47e3449fd1a89cf Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sat, 13 Jun 2026 09:41:20 -0700 Subject: [PATCH] FN-6368: route task chat steering to active sessions Ensure task chat messages reach the live execution surface instead of waiting for a future session. - Track seen steering comments for legacy, step-session, and workflow-step execution paths. - Forward new task chat steering to active step sessions and workflow step sessions, including parallel step handles. - Remove misleading inactive-session composer copy and cover the steering paths with regression tests. - Add a patch changeset for the published Fusion package. Files changed: .changeset/fn-6368-steering-running-session.md | 5 + packages/dashboard/app/components/TaskChatTab.tsx | 12 +- .../app/components/__tests__/TaskChatTab.test.tsx | 18 +- .../src/__tests__/executor-step-session.test.ts | 108 ++++++++++++ .../engine/src/__tests__/executor-test-helpers.ts | 3 + .../src/__tests__/step-session-executor.test.ts | 40 +++++ packages/engine/src/executor.ts | 186 ++++++++++++++------- packages/engine/src/step-session-executor.ts | 16 ++ 8 files changed, 312 insertions(+), 76 deletions(-) Fusion-Task-Id: FN-6368 Fusion-Task-Lineage: 610a6185-b136-4fea-a4bd-ea78ab5aab47 --- .../fn-6368-steering-running-session.md | 5 + .../dashboard/app/components/TaskChatTab.tsx | 12 +- .../components/__tests__/TaskChatTab.test.tsx | 18 +- .../__tests__/executor-step-session.test.ts | 108 ++++++++++ .../src/__tests__/executor-test-helpers.ts | 3 + .../__tests__/step-session-executor.test.ts | 40 ++++ packages/engine/src/executor.ts | 186 ++++++++++++------ packages/engine/src/step-session-executor.ts | 16 ++ 8 files changed, 312 insertions(+), 76 deletions(-) create mode 100644 .changeset/fn-6368-steering-running-session.md diff --git a/.changeset/fn-6368-steering-running-session.md b/.changeset/fn-6368-steering-running-session.md new file mode 100644 index 0000000000..c021e71a07 --- /dev/null +++ b/.changeset/fn-6368-steering-running-session.md @@ -0,0 +1,5 @@ +--- +"@runfusion/fusion": patch +--- + +Steering messages sent from task chat now reach active step-session and workflow runs, including parallel step sessions, and the misleading inactive-session "next session" composer copy was removed. diff --git a/packages/dashboard/app/components/TaskChatTab.tsx b/packages/dashboard/app/components/TaskChatTab.tsx index 5f247fd791..68d6d7f84d 100644 --- a/packages/dashboard/app/components/TaskChatTab.tsx +++ b/packages/dashboard/app/components/TaskChatTab.tsx @@ -424,7 +424,7 @@ export function TaskChatTab({ task, projectId, active, addToast, sessionLive, on const activeSession = isActiveAgentSession(task, { sessionLive }); const sessionHint = activeSession ? "Message the active agent session. Guidance is delivered to the running session in real time." - : "Message saved here will be picked up by the next session when work resumes."; + : null; const canSend = draft.trim().length > 0 && !sending; const resizeComposer = useCallback(() => { @@ -623,15 +623,17 @@ export function TaskChatTab({ task, projectId, active, addToast, sessionLive, on
-
- {sessionHint} -
+ {sessionHint ? ( +
+ {sessionHint} +
+ ) : null}