Skip to content

Commit 32948f2

Browse files
fix(server): schedule_task updates apply freshSession (#32258)
The schedule_task update handler forwarded every editable field to updateScheduledTask except freshSession, so switching an existing task to fresh sessions returned success and changed nothing. Forward it. AI-assisted; verified with the tests and tools listed above.
1 parent ba6e9c2 commit 32948f2

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
@@ -102,7 +102,7 @@ const handlers = {
102102
{ refused: "schedule tasks in this environment" },
103103
),
104104
McpToolAccess.writes(
105-
({ scheduledTaskId, prompt, title, schedule, enabled, bindToCurrentThread }) =>
105+
({ scheduledTaskId, prompt, title, schedule, enabled, freshSession, bindToCurrentThread }) =>
106106
Effect.gen(function* () {
107107
if (scheduledTaskId === undefined) return yield* Effect.die("unreachable");
108108
const scope = yield* McpInvocationContext.McpInvocationContext;
@@ -113,6 +113,7 @@ const handlers = {
113113
title,
114114
schedule,
115115
enabled,
116+
freshSession,
116117
bindToCurrentThread,
117118
});
118119
}),

0 commit comments

Comments
 (0)