Skip to content

Commit 649ce33

Browse files
committed
fix(server): schedule_task updates save freshSession
The schedule_task update branch picked its fields out of the tool input and left out freshSession, so updateScheduledTask never saw it. An update reported success while the task kept its old thread mode. Fixes #32258
1 parent b0ee27e commit 649ce33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/server/src/mcp/toolkits/orchestrator/handlers.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const handlers = {
101101
{ refused: "schedule tasks in this environment" },
102102
),
103103
McpToolAccess.writes(
104-
({ scheduledTaskId, prompt, title, schedule, enabled, bindToCurrentThread }) =>
104+
({ scheduledTaskId, prompt, title, schedule, enabled, bindToCurrentThread, freshSession }) =>
105105
Effect.gen(function* () {
106106
if (scheduledTaskId === undefined) return yield* Effect.die("unreachable");
107107
const scope = yield* McpInvocationContext.McpInvocationContext;
@@ -113,6 +113,7 @@ const handlers = {
113113
schedule,
114114
enabled,
115115
bindToCurrentThread,
116+
freshSession,
116117
});
117118
}),
118119
),

0 commit comments

Comments
 (0)