Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): agents can disable auto-settle for follow-up work #35162

Closedtombowditch(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/35162/headopened View on GitHub

Showing 8 changed files with 51 additions and 1 deletion (loading 5).

x
0 of 8 viewed, 8 left
8 additions and 0 deletionsapps/server/src/mcp/toolkits/thread/handlers.tsModified
View file
@@ -435,6 +435,14 @@
command = { ...common, type: "thread.pin", ...(orderKey ? { orderKey } : {}) };
break;
+ case "disable_auto_settle":
+ case "enable_auto_settle":
+ command = {
+ ...common,
+ type: "thread.auto-settle.set",
+ enabled: input.action === "enable_auto_settle",
+ };
+ break;
default:
command = { ...common, type: `thread.${input.action}` };
3 additions and 1 deletionapps/server/src/mcp/toolkits/thread/tools.tsModified
View file
@@ -32,7 +32,7 @@
​
const ThreadOrganizeTool = Tool.make("t3_thread_organize", {
description:
- "Pin, snooze, settle, archive, or mark a thread unread. Omit `threadId` for this thread. `snooze` needs `snoozedUntil`. Settling this thread applies at turn end. A failed turn or queued message leaves it active.",
+ "Pin, snooze, settle, archive, or mark a thread unread. Omit `threadId` for this thread. `snooze` needs `snoozedUntil`. Settling this thread applies at turn end. A failed turn or queued message leaves it active. `disable_auto_settle` stops the thread settling itself, such as after its PR merges, until `enable_auto_settle`.",
parameters: Schema.Struct({
environmentId: OrchestratorMcpEnvironmentTarget,
threadId: Schema.optional(ThreadId),
@@ -46,6 +46,8 @@