Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): schedule_task updates save freshSession #32367

ClosedKarthik-beta(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/32367/headopened View on GitHub

Showing 2 changed files with 50 additions and 1 deletion.

x
0 of 2 viewed, 2 left
2 additions and 1 deletionapps/server/src/mcp/toolkits/orchestrator/handlers.tsModified
View file
@@ -101,7 +101,7 @@
{ refused: "schedule tasks in this environment" },
McpToolAccess.writes(
- ({ scheduledTaskId, prompt, title, schedule, enabled, bindToCurrentThread }) =>
+ ({ scheduledTaskId, prompt, title, schedule, enabled, bindToCurrentThread, freshSession }) =>
Effect.gen(function* () {
if (scheduledTaskId === undefined) return yield* Effect.die("unreachable");
const scope = yield* McpInvocationContext.McpInvocationContext;
@@ -113,6 +113,7 @@
schedule,
enabled,
bindToCurrentThread,
+ freshSession,
});
}),
48 additions and 0 deletionsapps/server/src/mcp/toolkits/core.test.tsModified
View file
@@ -15,6 +15,7 @@
RunId,
ScheduledTaskError,
ScheduledTask,
+ type ScheduledTaskUpsertInput,
RuntimeRequestId,
ThreadId,
TurnItemId,