Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): restricted agents can no longer rewrite full-access scheduled tasks, plus 13 server fixes #15040

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromt3code/debt-wave1-server-bugsopened View on GitHub

Showing 29 changed files with 168 additions and 2 deletions (loading 26).

x
0 of 29 viewed, 29 left
2 additions and 2 deletionsapps/server/src/mcp/toolkits/orchestrator/tools.tsModified
View file
@@ -122,7 +122,7 @@
​
const UpdateScheduledTaskTool = Tool.make("update_scheduled_task", {
description:
- "Update an existing scheduled task by scheduledTaskId (from list_scheduled_tasks). Only the provided fields change; omit a field to leave it as-is. Use enabled=false to pause a task without deleting it. Set bindToCurrentThread to move the task between posting into this thread and launching a fresh thread per run.",
+ "Update an existing scheduled task by scheduledTaskId (from list_scheduled_tasks). Only the provided fields change; omit a field to leave it as-is. Use enabled=false to pause a task without deleting it. Set bindToCurrentThread to move the task between posting into this thread and launching a fresh thread per run. Requires a live caller with at least the task's runtime and interaction modes.",
parameters: OrchestratorMcpUpdateScheduledTaskInput,
success: OrchestratorMcpScheduleTaskResult,
failure: OrchestratorMcpFailure,
@@ -134,7 +134,7 @@
​
const DeleteScheduledTaskTool = Tool.make("delete_scheduled_task", {
description:
- "Permanently delete a scheduled task by scheduledTaskId (from list_scheduled_tasks). The task stops running immediately. To keep it but stop runs, use update_scheduled_task with enabled=false instead.",
+ "Permanently delete a scheduled task by scheduledTaskId (from list_scheduled_tasks). The task stops running immediately. To keep it but stop runs, use update_scheduled_task with enabled=false instead. Requires a live caller with at least the task's runtime and interaction modes.",
parameters: OrchestratorMcpDeleteScheduledTaskInput,
success: OrchestratorMcpDeleteScheduledTaskResult,
failure: OrchestratorMcpFailure,
126 additions and 0 deletionsapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -2,13 +2,18 @@
import { assert, describe, it } from "@effect/vitest";
import {
EnvironmentId,
+ IsoDateTime,
NodeId,
ProjectId,