Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

feat(agents): chat_folders lets a bot make folders and move its own chats into them

AdityaUmaleb01e838f05da
diff --git a/server/activity.ts b/server/activity.ts
index b3d225d071..265d1278d4 100644
--- a/server/activity.ts
+++ b/server/activity.ts
@@ -88,6 +88,7 @@ const TEAM_ACTION_KEYS: Record<string, string> = {
close_thread: "activity.tool.team.closeThread",
rename_thread: "activity.tool.team.renameThread",
set_main_thread: "activity.tool.team.setMainThread",
+ chat_folders: "activity.tool.team.chatFolders",
coordinate_bots: "activity.tool.team.coordinateBots",
create_bot: "activity.tool.team.createBot",
create_room: "activity.tool.team.createRoom",
diff --git a/server/agent-tool-policy.test.ts b/server/agent-tool-policy.test.ts
index 953bc1b464..4f735c95e4 100644
--- a/server/agent-tool-policy.test.ts
+++ b/server/agent-tool-policy.test.ts
@@ -33,7 +33,7 @@ describe("built-in agent tool read policy", () => {
});
it.each([
- "shared_computer", "ask_bot", "delegate_bot", "check_delegation", "wait_delegation", "start_thread", "close_thread", "rename_thread", "set_main_thread", "post_to_room",
+ "shared_computer", "ask_bot", "delegate_bot", "check_delegation", "wait_delegation", "start_thread", "close_thread", "rename_thread", "set_main_thread", "chat_folders", "post_to_room",
// These post into the chat: never read-only.
"attach_file", "show_widget", "update_widget", "show_html", "update_html",
"create_bot", "request_credential", "request_sign_in", "memory_update", "trigger", "delete_trigger", "create_trigger",
diff --git a/server/direct-coordination.e2e.test.ts b/server/direct-coordination.e2e.test.ts
index d0f26db536..6f6b16bce3 100644
--- a/server/direct-coordination.e2e.test.ts
+++ b/server/direct-coordination.e2e.test.ts
@@ -590,6 +590,34 @@ it("lets a bot rename only the thread it is working in", () => fixture(async f =
expect(renamed.title).not.toBe(before);
}), 45_000);
+it("lets a bot make a folder and move its own old thread into it, never a teammate's", () => fixture(async f => {
+ const botOf = async (botId: string) => (await f.api("/api/bots")).bots.find((bot: any) => bot.id === botId);
+ const old = (await f.api(`/api/bots/${f.chief.id}/tasks`, { title: "Acme review" })).task.threadId;
+ f.plan[f.chief.id] = {
+ steps: [
+ { tool: "chat_folders", arguments: { action: "create", name: "Clients", emoji: "💼" } },
+ { tool: "chat_folders", arguments: { action: "move", thread_id: old, folder: "clients" } },
+ { tool: "chat_folders", arguments: { action: "move", thread_id: f.lead.activeTaskId, folder: "Clients" }, expectError: true },
+ { tool: "chat_folders", arguments: { action: "list" } },
+ ],
+ reply: "Acme review is in Clients now",
+ };
+ f.save();
+ await f.cli("send", "--bot", f.chief.id, "--task", f.chief.activeTaskId, "--text", "Make a Clients folder and put the Acme review chat in it.");
+ expect((await f.wait()).status).toBe("settled");
+ const steps = f.evidence().at(-1).evidence.filter((entry: any) => entry.step?.tool === "chat_folders");
+ expect(steps).toHaveLength(4);
+ expect(steps[0].response.result.content[0].text).toContain("Created the folder 💼 Clients");
+ expect(steps[1].response.result.content[0].text).toContain("Moved #Acme review into 💼 Clients");
+ expect(steps[2].response.result.isError).toBe(true);
+ expect(steps[3].response.result.content[0].text).toContain(`#Acme review (${old})`);
+ const chief = await botOf(f.chief.id);
+ const folder = chief.projects.find((one: any) => one.name === "Clients");
+ expect(folder).toMatchObject({ emoji: "💼" });
+ expect(chief.tasks.find((one: any) => one.threadId === old).projectId).toBe(folder.id);
+ expect((await botOf(f.lead.id)).tasks.find((one: any) => one.threadId === f.lead.activeTaskId).projectId).toBeUndefined();
+}), 45_000);
+
it("lets a bot make one of its own threads its main thread, never a teammate's", () => fixture(async f => {
const mainOf = async (botId: string) => (await f.api("/api/bots")).bots.find((bot: any) => bot.id === botId).mainThreadId;
const leadMain = await mainOf(f.lead.id);
diff --git a/server/drivers/agents-call.ts b/server/drivers/agents-call.ts
index f7415b9327..bf9786a309 100644
--- a/server/drivers/agents-call.ts
+++ b/server/drivers/agents-call.ts
@@ -21,7 +21,7 @@ import { callResearchTool, RESEARCH_TOOL_NAMES } from "./agents-research-tools.t
import { callHelperTool, HELPER_TOOL_NAMES } from "./agents-helper-tools.ts";
import { callWhatChangedTool, WHAT_CHANGED_TOOL } from "./agents-what-changed-tool.ts";
import { callUsageLimitsTool, USAGE_LIMITS_TOOL } from "./agents-usage-tool.ts";
-import { callThreadPostTool, THREAD_POST_TOOL } from "./agents-thread-post-tool.ts"; import { callListThreadsTool, closedThreadText, LIST_THREADS_TOOL } from "./agents-list-threads-tool.ts"; import { callSetMainThreadTool, SET_MAIN_THREAD_TOOL } from "./agents-main-thread-tool.ts"; import { callRenameThreadTool, RENAME_THREAD_TOOL } from "./agents-thread-title-tool.ts"; import { callWorkflowTool, WORKFLOW_TOOL_NAMES } from "./agents-workflow-tool.ts";
+import { callThreadPostTool, THREAD_POST_TOOL } from "./agents-thread-post-tool.ts"; import { callListThreadsTool, closedThreadText, LIST_THREADS_TOOL } from "./agents-list-threads-tool.ts"; import { callSetMainThreadTool, SET_MAIN_THREAD_TOOL } from "./agents-main-thread-tool.ts"; import { callRenameThreadTool, RENAME_THREAD_TOOL } from "./agents-thread-title-tool.ts"; import { callWorkflowTool, WORKFLOW_TOOL_NAMES } from "./agents-workflow-tool.ts"; import { callChatFoldersTool, CHAT_FOLDERS_TOOL } from "./agents-chat-folders-tool.ts";
import { callWaitTool, WAIT_TOOL_NAMES } from "./agents-wait-tools.ts"; import { callCheckBackTool, CHECK_BACK_TOOL_NAMES } from "./agents-check-back-tool.ts"; import { BOARD_TOOL_NAMES, callBoardTool } from "./agents-board-tools.ts";
import { callBurstTool } from "./agents-burst-tool.ts";
import { callComputerAskTool, COMPUTER_ASK_TOOL_NAMES } from "./agents-computer-ask-tool.ts";
@@ -412,7 +412,7 @@ export async function callTool(called: string, input: Json, context: ToolCallCon
}
if (name === THREAD_POST_TOOL) return callThreadPostTool(args, context);
if (name === RENAME_THREAD_TOOL) return callRenameThreadTool(args, context);
- if (name === SET_MAIN_THREAD_TOOL) return callSetMainThreadTool(args, context);
+ if (name === SET_MAIN_THREAD_TOOL) return callSetMainThreadTool(args, context); if (name === CHAT_FOLDERS_TOOL) return callChatFoldersTool(args, context);
if (WORKFLOW_TOOL_NAMES.has(name)) return callWorkflowTool(name, args, context);
if (name === "select_computer") {
if (args.surface !== undefined && (typeof args.surface !== "string" || !["auto", "cloud", "vm", "local", "browser"].includes(args.surface))) {
diff --git a/server/drivers/agents-catalog-goldens/bridged.profiles.json b/server/drivers/agents-catalog-goldens/bridged.profiles.json
index 5a9170b136..aa7311788a 100644
--- a/server/drivers/agents-catalog-goldens/bridged.profiles.json
+++ b/server/drivers/agents-catalog-goldens/bridged.profiles.json
@@ -1,7 +1,7 @@
{
"default": {
- "bytes": 18307,
- "sha256": "bc4d8212b30c2c18b132324fc3d6819ceef6a06add96e3542812cec0e110347b",
+ "bytes": 18321,
+ "sha256": "95f3b417bc395ed50f78c43df1c6725602c05f7f2e809fcb6e7975e10838601b",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -24,8 +24,8 @@
]
},
"voice": {
- "bytes": 19088,
- "sha256": "0284c3982af083bd28293f13919d71366f3ec5101f57422081cdbfb6839a4a1e",
+ "bytes": 19102,
+ "sha256": "9e8d2533aa9b63311f02469c56c33f7b2a774194da5423a320ca8c300f810905",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -49,8 +49,8 @@
]
},
"shared": {
- "bytes": 18347,
- "sha256": "96e2537bcc9647c8a56c8bc9b218c5bb6f48e1ac2c9c1d82a7e5d09183cc9c9d",
+ "bytes": 18361,
+ "sha256": "bab4fe908b84f44a3fae6d44e5f99ad333a3c8be49411d7e73d7fe392df7ee0c",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -73,8 +73,8 @@
]
},
"shared+voice": {
- "bytes": 19128,
- "sha256": "42845638993cdabd24ff637fb2c1b2e66684856facdf646f7940461658cc5664",
+ "bytes": 19142,
+ "sha256": "8cabaf829963daf17f12a11e2b323eaac84bb9ed798c9ea98f69d98157d2d893",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -98,8 +98,8 @@
]
},
"skills": {
- "bytes": 18334,
- "sha256": "f5211aba8098df7e05f312118152588b457a78ce0755bd6863ece63068807a05",
+ "bytes": 18348,
+ "sha256": "841b9112000cc61933a72af09d590a884728ebabca2b1b1723a1f17791d4470e",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -122,8 +122,8 @@
]
},
"skills+voice": {
- "bytes": 19115,
- "sha256": "19ecf4961ed337066193dbf4f81fa76fded82e9d228a01ad44eaa734161a8102",
+ "bytes": 19129,
+ "sha256": "718220cfd4b373e9e0dfc39b94aa66ccd711cc92ac1929f165b7e89b85be8df0",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -147,8 +147,8 @@
]
},
"skills+shared": {
- "bytes": 18374,
- "sha256": "3962c1cd197a581339e19301eead6741f7071f4a32508d020d175efa31bfd56b",
+ "bytes": 18388,
+ "sha256": "d410763bb60fc7eea6654c476fe1b35e3a47da40ebd85f8a0dac237391c1330d",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -171,8 +171,8 @@
]
},
"skills+shared+voice": {
- "bytes": 19155,
- "sha256": "3d290693695c671be81a8ac6bce3495d57bf203821fe83d4ea29a43c548c2b03",
+ "bytes": 19169,
+ "sha256": "3112131db0aae2d495de7dbf8decc1d13463b2b16cc366b1957462fed6a91e98",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -196,8 +196,8 @@
]
},
"non-chief": {
- "bytes": 18190,
- "sha256": "2e28d6293a50d6f82541d0333af0a9a0f027b65716e8921fa194868eb1c6855e",
+ "bytes": 18204,
+ "sha256": "b5319f26e61024932351a33d2d78bb41ab097ff6d516c7331e4eea49ee3386c6",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -220,8 +220,8 @@
]
},
"voice+non-chief": {
- "bytes": 18971,
- "sha256": "563c95baba4863349c106f8f9b5f0f98d0273403b909053354484a2066e0eea3",
+ "bytes": 18985,
+ "sha256": "0a9efca383eb6088cb4a64dd3438a388e714630550e61d1810a17d681ddba9a8",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -245,8 +245,8 @@
]
},
"shared+non-chief": {
- "bytes": 18230,
- "sha256": "70f93b3686d14422cdd4c3513970cc205496a5c5003d32f20fa552f5b4a1bda6",
+ "bytes": 18244,
+ "sha256": "81570cf3cc87140a1a178fb8c20929257fc262e11cb951a501f4b15cbfcc4275",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -269,8 +269,8 @@
]
},
"shared+voice+non-chief": {
- "bytes": 19011,
- "sha256": "3ceb3d905a75398dab78851637c106e7db203b355b551566f43c5817d1ed211b",
+ "bytes": 19025,
+ "sha256": "634e968a25dbfa3d85f0f5bcb3afab468ba313057a6062efb5cf7f249fe139cc",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -294,8 +294,8 @@
]
},
"skills+non-chief": {
- "bytes": 18217,
- "sha256": "500a6f260ad75ad3d769b03503e7c89295beaa39c9ba50988743be61077cf0ed",
+ "bytes": 18231,
+ "sha256": "e28d2ce73719a4711a4fc9d91e9477387e2ce2abd670f8561dbbf820bc37e73c",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -318,8 +318,8 @@
]
},
"skills+voice+non-chief": {
- "bytes": 18998,
- "sha256": "137112e40a555a42ac772563e6d8fcecff837f9082c2fee44a9c5a8671944f2f",
+ "bytes": 19012,
+ "sha256": "0c4235409208eb42c6788a4a5d9a766c9ee4e7ab42d03da230a514e864e05689",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -343,8 +343,8 @@
]
},
"skills+shared+non-chief": {
- "bytes": 18257,
- "sha256": "ad5080ce3007e02fcea87ac3948acb94a9aa67b758f420f1256e85392d523254",
+ "bytes": 18271,
+ "sha256": "f89d207ed1aed50245fd8641dcca11b6fb657e78cb074f50297c39c480604464",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -367,8 +367,8 @@
]
},
"skills+shared+voice+non-chief": {
- "bytes": 19038,
- "sha256": "07868b96103492f1f0259d560823fcb2e1aada55f25b3414c03be7156362dfd3",
+ "bytes": 19052,
+ "sha256": "ffa4cace2bca474f87a19885d30891bba006270f1e9afdb7f7aa7707c983cc54",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -392,8 +392,8 @@
]
},
"skills+shared+voice+cloud-home": {
- "bytes": 19171,
- "sha256": "f78a35d45a6fa6b7128c9c5c4103621a1323c7213f92036273781652be0cb906",
+ "bytes": 19185,
+ "sha256": "6d011a4e115baf5e96664aedb4a1a5a47dcac6fdef486c76b5878a3e0795e157",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -417,8 +417,8 @@
]
},
"skills+shared+voice+non-chief+cloud-home": {
- "bytes": 19054,
- "sha256": "f3b53a6a1665b21fd50b6662fde049bf76dea9b5d6e4fd6ab9dc880fb4c8d4bc",
+ "bytes": 19068,
+ "sha256": "bbb73da9844435a232dbb66ae22e709a780b7c59fcf6c7efb14a1900ea0fef5c",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -442,8 +442,8 @@
]
},
"skills+shared+voice+x": {
- "bytes": 19216,
- "sha256": "7402912f3ea4b2c929dde2d6c91c39829d9430232609c486413540083ce3a43f",
+ "bytes": 19230,
+ "sha256": "07e596dd7f465bffaf3edfc97fd8988e19cac261a8d2bec3f6b6e9afaeb4642f",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -467,8 +467,8 @@
]
},
"skills+shared+voice+x+team": {
- "bytes": 19216,
- "sha256": "7402912f3ea4b2c929dde2d6c91c39829d9430232609c486413540083ce3a43f",
+ "bytes": 19230,
+ "sha256": "07e596dd7f465bffaf3edfc97fd8988e19cac261a8d2bec3f6b6e9afaeb4642f",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -492,8 +492,8 @@
]
},
"skills+shared+voice+x+team+images": {
- "bytes": 19244,
- "sha256": "80e6a499810eb1158921f9df54a8840a6d0ed218fa4154acf98c5b1094cfa6dd",
+ "bytes": 19258,
+ "sha256": "252e00b49b54897f380ac821be6480d93804185c61a0d3c59ca390fc59281e9f",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -517,8 +517,8 @@
]
},
"default+legacy-switches": {
- "bytes": 18307,
- "sha256": "bc4d8212b30c2c18b132324fc3d6819ceef6a06add96e3542812cec0e110347b",
+ "bytes": 18321,
+ "sha256": "95f3b417bc395ed50f78c43df1c6725602c05f7f2e809fcb6e7975e10838601b",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -541,8 +541,8 @@
]
},
"default+mausbot": {
- "bytes": 18359,
- "sha256": "de12c336d4a4adba3a0f8693ddd0588c654d240848d1e06f8443fad920f87291",
+ "bytes": 18373,
+ "sha256": "618540d18e75b0f25cbf222371d2b4c9987610ca1591e57dca74293602153522",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -565,8 +565,8 @@
]
},
"skills+shared+voice+mausbot": {
- "bytes": 19207,
- "sha256": "2745c704f7ffdf211823b8e129d027406c0d774b1cf7538023362c508acc844d",
+ "bytes": 19221,
+ "sha256": "6bbed0d6bdb8bd6f4779f3b943b5e2eeda11228b63287ab432fdc27957cb6a2d",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -590,8 +590,8 @@
]
},
"default+no-computer-pick": {
- "bytes": 17095,
- "sha256": "aa2084616b285d92aa8f269bba505a4df143da63f8c942d0db7a1a722e84c9f3",
+ "bytes": 17109,
+ "sha256": "3cb3792f82af8f856f94f741a519e24bc153cfe412827daffa69eadc91e01b0c",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -659,8 +659,8 @@
]
},
"default+images": {
- "bytes": 18335,
- "sha256": "4e9903524a134c1e5ab6dfef0a1633cba2323d72ffc88af31f035de85d1d0ce3",
+ "bytes": 18349,
+ "sha256": "541545efd15ce5250c65e729cf2aa5895fdbd352a5005e6ad7866b939654728f",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -683,8 +683,8 @@
]
},
"skills+shared+voice+x+team+images+hosting": {
- "bytes": 20507,
- "sha256": "5938c46314d5de65fe00fa9f8c5c45a035aa3abade1a76594a125a3e3a7d13a2",
+ "bytes": 20521,
+ "sha256": "4110678523582074f5048fafaf5cfd97cfe23ebc26348f268258d41a1db304ad",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -709,8 +709,8 @@
]
},
"default+hosting": {
- "bytes": 19570,
- "sha256": "eccb15821bb80a2595700e6a7c5dce61fe3dda6867d2be8851597e1148dcc526",
+ "bytes": 19584,
+ "sha256": "f1094a5b93c4a0e9060d1a9cf0164724dddeb565bdbe37de41a7707e4aa27204",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -734,8 +734,8 @@
]
},
"skills+shared+voice+x+team+board": {
- "bytes": 19253,
- "sha256": "b8ef5e96921c9025202beec73e8047a06765395c43bd42d1bd28f013112a70bf",
+ "bytes": 19267,
+ "sha256": "662e91225672f136d76143d558e182a692cd192e632c927650b14d882e1783d4",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -782,8 +782,8 @@
]
},
"default+tools-off": {
- "bytes": 16531,
- "sha256": "c15bd6f3a81eb61c2b60f0ed9c2ad9a276f392fa35c0f962acddc09974e388de",
+ "bytes": 16545,
+ "sha256": "bc7704e3898b6e3db914af2afde28a2e07776a79317f31af98fd6e6081b42ec2",
"tools": [
"tool_result_read",
"list_room_targets",
diff --git a/server/drivers/agents-catalog-goldens/bridged.tools-list.json b/server/drivers/agents-catalog-goldens/bridged.tools-list.json
index f7b2c6ef3e..6b6fc7dc56 100644
--- a/server/drivers/agents-catalog-goldens/bridged.tools-list.json
+++ b/server/drivers/agents-catalog-goldens/bridged.tools-list.json
@@ -562,7 +562,7 @@
},
{
"name": "find_tool",
- "description": "Find an OpenMausBot tool that is not in your tool list. Say what you want to do in a few words, or give the tool's name. Each match comes back with its description and exact input schema; run one with use_tool. Tools reached this way: list_shared_computers, shared_computer, assignment_status, usage_limits, list_threads, close_thread, rename_thread, set_main_thread, run_workflow, workflow_edit, start_thread, burst, list_models, vm_exec, show_widget, show_html, unpublish_page, create_bot, list_team_setup, list_team_library, propose_team_setup, propose_bot_deletion, manage_room, x_search, research_search, research_endpoint, research_call, decide, extract, what_changed, edit_image, generate_image, report_bug, check_app_hosting, retry_thread, memory_log, session_search, trigger_info, trigger, delete_trigger, wait_until, list_waits, cancel_wait, check_back, propose_profile, propose_model, propose_team_memory, skills_list, skill_manage, mcp_server, app_settings.",
+ "description": "Find an OpenMausBot tool that is not in your tool list. Say what you want to do in a few words, or give the tool's name. Each match comes back with its description and exact input schema; run one with use_tool. Tools reached this way: list_shared_computers, shared_computer, assignment_status, usage_limits, list_threads, close_thread, rename_thread, set_main_thread, chat_folders, run_workflow, workflow_edit, start_thread, burst, list_models, vm_exec, show_widget, show_html, unpublish_page, create_bot, list_team_setup, list_team_library, propose_team_setup, propose_bot_deletion, manage_room, x_search, research_search, research_endpoint, research_call, decide, extract, what_changed, edit_image, generate_image, report_bug, check_app_hosting, retry_thread, memory_log, session_search, trigger_info, trigger, delete_trigger, wait_until, list_waits, cancel_wait, check_back, propose_profile, propose_model, propose_team_memory, skills_list, skill_manage, mcp_server, app_settings.",
"inputSchema": {
"type": "object",
"additionalProperties": false,
diff --git a/server/drivers/agents-catalog-goldens/full.tools-list.json b/server/drivers/agents-catalog-goldens/full.tools-list.json
index 6f0b9f5cfd..97dd346138 100644
--- a/server/drivers/agents-catalog-goldens/full.tools-list.json
+++ b/server/drivers/agents-catalog-goldens/full.tools-list.json
@@ -380,6 +380,42 @@
}
}
},
+ {
+ "name": "chat_folders",
+ "description": "Your own sidebar folders, only when the person asks: list them with their threads, create one, or move one of your threads into one.",
+ "inputSchema": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "type": "string",
+ "enum": [
+ "list",
+ "create",
+ "move"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "create: at most 80 characters."
+ },
+ "emoji": {
+ "type": "string"
+ },
+ "thread_id": {
+ "type": "string",
+ "description": "move: from list_threads; default: this thread."
+ },
+ "folder": {
+ "type": "string",
+ "description": "move: name or id; \"\" takes it out of its folder."
+ }
+ },
+ "required": [
+ "action"
+ ]
+ }
+ },
{
"name": "run_workflow",
"description": "Run a saved Skill Burger exactly, without redoing it by hand: when the person writes /<its-name> or asks for what one does. Fill args from their request. It hands back only steps that need your judgement; do them, then call again with resume and response.",
diff --git a/server/drivers/agents-catalog-goldens/profiles.json b/server/drivers/agents-catalog-goldens/profiles.json
index 7106824ab3..6e973ceaa0 100644
--- a/server/drivers/agents-catalog-goldens/profiles.json
+++ b/server/drivers/agents-catalog-goldens/profiles.json
@@ -1,7 +1,7 @@
{
"default": {
- "bytes": 62672,
- "sha256": "8b1091469933fc286bbe44d2c7e21747343cf36089bc3769427a1ec872043811",
+ "bytes": 63287,
+ "sha256": "49ca750bc42b818d335cdb56afe593d119295ea44a229f820769a2e6b9bfec55",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -15,6 +15,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -62,8 +63,8 @@
]
},
"voice": {
- "bytes": 63453,
- "sha256": "3364882bb1d2b0cfc888c2887c46e4e3abcce46740842304d1380350b3ae6a53",
+ "bytes": 64068,
+ "sha256": "df0ffe3b74c2d9aa7a6a42cc3499ef8b5e79f4c3c0b80e54222275666103a62e",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -77,6 +78,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -125,8 +127,8 @@
]
},
"shared": {
- "bytes": 64937,
- "sha256": "128804df269f134c693e6203dd04462c3e50e1995808da602b808bec0d21de40",
+ "bytes": 65552,
+ "sha256": "c86842bcbda3cbaee1417bf39c824a8e17addedcfe751972734738dbf3f0a99a",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -142,6 +144,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -189,8 +192,8 @@
]
},
"shared+voice": {
- "bytes": 65718,
- "sha256": "64009562d987e450c5e218831dac3432ea8a6bbb6248857d43d230e4972a08b9",
+ "bytes": 66333,
+ "sha256": "d413461890d53d06daca166683859bb41a7aad98d36e360030e36f192e536901",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -206,6 +209,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -254,8 +258,8 @@
]
},
"skills": {
- "bytes": 65483,
- "sha256": "9309530ee1913dd93be7ff90db5d2a434105c8ccf09f3092f83ba76a28160db9",
+ "bytes": 66098,
+ "sha256": "e7ddab3deac4501a74ab411973099ec68133e8ec89c2c9a25c851f43d58cbd8e",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -269,6 +273,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -318,8 +323,8 @@
]
},
"skills+voice": {
- "bytes": 66264,
- "sha256": "9352e2bfebe6358e64d6e2f87f463b29e2f6a39f6a786b88efefbf46501f7189",
+ "bytes": 66879,
+ "sha256": "98bdc60918cd8745895afa86a78f46354ebb97017d8a1bd62f2960e467f371ef",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -333,6 +338,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -383,8 +389,8 @@
]
},
"skills+shared": {
- "bytes": 67748,
- "sha256": "508267af9869ec4762a47c41a55328d476b5151841b93ac9d55f28ce646f1085",
+ "bytes": 68363,
+ "sha256": "c6ae73217bd27c3c4159175aaa98b28b045b62c14677e7e40672782b985ae48a",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -400,6 +406,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -449,8 +456,8 @@
]
},
"skills+shared+voice": {
- "bytes": 68529,
- "sha256": "49a03071cf7c949af06c11d9871999225610597cffe1d448d75d719d6bffe56e",
+ "bytes": 69144,
+ "sha256": "d4f73cd630bd65700bd57200d4f8e985b9fd53241ef013bac50f0cb69ce417c2",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -466,6 +473,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -516,8 +524,8 @@
]
},
"non-chief": {
- "bytes": 54124,
- "sha256": "a59cf2498ae6a9769a487dea70a69fe9850de0c671cb3628713b5b343f70dc80",
+ "bytes": 54739,
+ "sha256": "d5298a22cda3928008ccb8509d3d7b837a21325aac8252f29dcc2008ba5cc922",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -531,6 +539,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -571,8 +580,8 @@
]
},
"voice+non-chief": {
- "bytes": 54905,
- "sha256": "b8f582f3494db3fc3ab29f869dfa0fa5efdba5f8a1aa77f8a8e9243d8a7a0340",
+ "bytes": 55520,
+ "sha256": "57f459f9b55a0251527e059f63bfc846b6825d4ae3c6d1489b2cb7119be76c43",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -586,6 +595,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -627,8 +637,8 @@
]
},
"shared+non-chief": {
- "bytes": 56389,
- "sha256": "7565af2f6973e9b024827d2ef8ac8a7cd74a47d3703d54a2fb2d297eca5ecf95",
+ "bytes": 57004,
+ "sha256": "29698118138c83cf75fde96e1547a25c89be63c4cc5b1a723c38c9c9c6d92c39",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -644,6 +654,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -684,8 +695,8 @@
]
},
"shared+voice+non-chief": {
- "bytes": 57170,
- "sha256": "f194c01bc4049d850bc4ace20f9e9134de6aff3c33142b8b9a9c4b188f980afb",
+ "bytes": 57785,
+ "sha256": "bf813bfe03af4b349c22498b8691303816e80d7cf5060da71184ea34913e36d1",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -701,6 +712,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -742,8 +754,8 @@
]
},
"skills+non-chief": {
- "bytes": 56547,
- "sha256": "f74b5ddc6838c59190e4b8dcfc50fb4c9d65751600f5ad383ab18516b66e840a",
+ "bytes": 57162,
+ "sha256": "7d4bce2c05b97087854112ae1b429473681aa75e829982c4c41ff169f1fd2fc1",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -757,6 +769,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -799,8 +812,8 @@
]
},
"skills+voice+non-chief": {
- "bytes": 57328,
- "sha256": "a17c59e396ed5f129f66b9df18293220c94cd7d6b505c45ca21a855827066184",
+ "bytes": 57943,
+ "sha256": "48b88ff67277a394032e0d20ce58489710de9dd4b2d27756866e167ad5a189c9",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -814,6 +827,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -857,8 +871,8 @@
]
},
"skills+shared+non-chief": {
- "bytes": 58812,
- "sha256": "13fc20b235a7fa20a6f5813fc543179330f526ae41027652ef5eb3d58568e29c",
+ "bytes": 59427,
+ "sha256": "64eb84e66fb92a74d743be6e1b24c99b2491aa85e3518503908f01fbc052835f",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -874,6 +888,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -916,8 +931,8 @@
]
},
"skills+shared+voice+non-chief": {
- "bytes": 59593,
- "sha256": "1ed94438640adb8f3b3d85b8d9f1aba706e0d8d566abe1890f1f21ec276cbf2e",
+ "bytes": 60208,
+ "sha256": "84ca360f89de9cc9abd25beac773358df73e30feb5733d287326e7d5919b8963",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -933,6 +948,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -976,8 +992,8 @@
]
},
"skills+shared+voice+cloud-home": {
- "bytes": 68285,
- "sha256": "76877635eb0c622b09f264791c55f656c8c0f3f9edc1562884df124ba4726483",
+ "bytes": 68900,
+ "sha256": "8740c32df72288a8dda38e8bfb2a7cca95a065b1f5957695502ac5de3a23adda",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -993,6 +1009,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1043,8 +1060,8 @@
]
},
"skills+shared+voice+non-chief+cloud-home": {
- "bytes": 59349,
- "sha256": "df3e6b9f0007e58c1b2e284553ef7df5d2277ee4bd2f79ce45bdaa5796163798",
+ "bytes": 59964,
+ "sha256": "a82e47db5a95f9af16e8df86a86b61fd5f8dff0dcf7a7fcb606c36e4369504c2",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1060,6 +1077,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1103,8 +1121,8 @@
]
},
"skills+shared+voice+x": {
- "bytes": 72368,
- "sha256": "1458ce92f78980a613d1ebcc81eddf286cd15d421a0566bdcfde62c0bac20a7f",
+ "bytes": 72983,
+ "sha256": "232d0340b25f6f1802a910013201cd81b48db451fcdbc28c6f6cf3a67258b873",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1120,6 +1138,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1174,8 +1193,8 @@
]
},
"skills+shared+voice+x+team": {
- "bytes": 72368,
- "sha256": "1458ce92f78980a613d1ebcc81eddf286cd15d421a0566bdcfde62c0bac20a7f",
+ "bytes": 72983,
+ "sha256": "232d0340b25f6f1802a910013201cd81b48db451fcdbc28c6f6cf3a67258b873",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1191,6 +1210,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1245,8 +1265,8 @@
]
},
"skills+shared+voice+x+team+images": {
- "bytes": 74315,
- "sha256": "5ef7871eab454f96e624c10ea44d74bb5250e63bd9443f1e67cf52f2d1fe3542",
+ "bytes": 74930,
+ "sha256": "ca01161726ae4ef2dcf99cc4d05582a0f10de800ff760a48888fcebfd3d0a39f",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1262,6 +1282,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1318,8 +1339,8 @@
]
},
"default+legacy-switches": {
- "bytes": 62672,
- "sha256": "8b1091469933fc286bbe44d2c7e21747343cf36089bc3769427a1ec872043811",
+ "bytes": 63287,
+ "sha256": "49ca750bc42b818d335cdb56afe593d119295ea44a229f820769a2e6b9bfec55",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1333,6 +1354,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1380,8 +1402,8 @@
]
},
"default+mausbot": {
- "bytes": 63323,
- "sha256": "4f510550c8275a45aeea88a050da6e02cb8365491b471b129efa954d3fed3611",
+ "bytes": 63938,
+ "sha256": "af98df9ad2821116ee9b101e36a4214080f50c62796889ed00ca57d21beb0b9e",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1395,6 +1417,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1444,8 +1467,8 @@
]
},
"skills+shared+voice+mausbot": {
- "bytes": 69180,
- "sha256": "360b38dac327ab2851c65b206a5b2301e249fcf89503ccd72ca0141c1222cf93",
+ "bytes": 69795,
+ "sha256": "16e0912f5b4b898627ef8a47491e66e853b54d189dcfd432183ffb68cf93001d",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1461,6 +1484,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1513,8 +1537,8 @@
]
},
"default+no-computer-pick": {
- "bytes": 61460,
- "sha256": "fe2f0e0928ba3946947bbe9450bcc887374d166d1179d5cbc5a7ab546e078f64",
+ "bytes": 62075,
+ "sha256": "722d5c99ad02fc2895a6957b7edd36d7c38c7e56529ca63353caf5977a9dbf5e",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1527,6 +1551,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1675,8 +1700,8 @@
]
},
"default+images": {
- "bytes": 64619,
- "sha256": "b22f8550f19fe99742073a026a836c52562433de0452ceb5fca3902f00872453",
+ "bytes": 65234,
+ "sha256": "d54a088f581ea470a509543541cee1aadc410ebe2313f63f6753663eb1d10154",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1690,6 +1715,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1739,8 +1765,8 @@
]
},
"skills+shared+voice+x+team+images+hosting": {
- "bytes": 76239,
- "sha256": "d74ffd8ff02152b3d84da81879c19f5340c5cac33cb84502a03bd1b5257a2b91",
+ "bytes": 76854,
+ "sha256": "50747a46b53d3577d1ed2656c6725f6bffd92bf24a79910809f8a084e5a2cee9",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1756,6 +1782,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1814,8 +1841,8 @@
]
},
"default+hosting": {
- "bytes": 64596,
- "sha256": "2c6c0551f46640a0926a095c3021919f93dc82005cb4ba58f5825ea4661a5a37",
+ "bytes": 65211,
+ "sha256": "7e627d076fc2e0ef3ad4d0d1f4a568c202b5af2da1974ece3935e8179e77badd",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1829,6 +1856,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -1878,8 +1906,8 @@
]
},
"skills+shared+voice+x+team+board": {
- "bytes": 74360,
- "sha256": "1f24142f877a55e71e5cdd277819e1ed24352b3fcbe0fe295c79b625785ea1b8",
+ "bytes": 74975,
+ "sha256": "84b0311b35ed212c0f1fa93557c205589de5070abcaa6bc933ffb51c3a6b91ca",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1895,6 +1923,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
@@ -2009,8 +2038,8 @@
]
},
"default+tools-off": {
- "bytes": 58085,
- "sha256": "5178c8f85b667de7fb06a2b8c9de3161214c9e98dd9a3b15b2b4e76f56b76634",
+ "bytes": 58700,
+ "sha256": "de7086056acc79e45a240830131d30541a2ce3a5225221fe4dc373bf3136e6ad",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -2024,6 +2053,7 @@
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
diff --git a/server/drivers/agents-catalog-wire.test.ts b/server/drivers/agents-catalog-wire.test.ts
index 726a95fc56..32485eadd3 100644
--- a/server/drivers/agents-catalog-wire.test.ts
+++ b/server/drivers/agents-catalog-wire.test.ts
@@ -94,38 +94,38 @@ const FULL = "skills+shared+voice+x+team+images+hosting";
/** Bytes when the budget was last set; a profile may move at most 2% either way (lower it to lock in a win). */
const BUDGET_BASELINE: Record<string, number> = {
- "default": 61509,
- "voice": 62290,
- "shared": 63774,
- "shared+voice": 64555,
- "skills": 65438,
- "skills+voice": 66219,
- "skills+shared": 67703,
- "skills+shared+voice": 68484,
- "non-chief": 53136,
- "voice+non-chief": 53917,
- "shared+non-chief": 55401,
- "shared+voice+non-chief": 56182,
- "skills+non-chief": 55457,
- "skills+voice+non-chief": 56238,
- "skills+shared+non-chief": 57722,
- "skills+shared+voice+non-chief": 58503,
- "skills+shared+voice+cloud-home": 68240,
- "skills+shared+voice+non-chief+cloud-home": 58259,
- "default+legacy-switches": 61509,
- "default+mausbot": 62160,
- "skills+shared+voice+mausbot": 69135,
- "skills+shared+voice+x": 72323,
- "skills+shared+voice+x+team": 72323,
- "default+no-computer-pick": 60297,
+ "default": 62124,
+ "voice": 62905,
+ "shared": 64389,
+ "shared+voice": 65170,
+ "skills": 66053,
+ "skills+voice": 66834,
+ "skills+shared": 68318,
+ "skills+shared+voice": 69099,
+ "non-chief": 53751,
+ "voice+non-chief": 54532,
+ "shared+non-chief": 56016,
+ "shared+voice+non-chief": 56797,
+ "skills+non-chief": 56072,
+ "skills+voice+non-chief": 56853,
+ "skills+shared+non-chief": 58337,
+ "skills+shared+voice+non-chief": 59118,
+ "skills+shared+voice+cloud-home": 68855,
+ "skills+shared+voice+non-chief+cloud-home": 58874,
+ "default+legacy-switches": 62124,
+ "default+mausbot": 62775,
+ "skills+shared+voice+mausbot": 69750,
+ "skills+shared+voice+x": 72938,
+ "skills+shared+voice+x+team": 72938,
+ "default+no-computer-pick": 60912,
"default+room": 56857,
"non-chief+room": 48309,
- "skills+shared+voice+x+team+images": 74270,
- "default+images": 63456,
- "skills+shared+voice+x+team+images+hosting": 76194,
- "default+hosting": 63372,
- "default+tools-off": 57192,
- "skills+shared+voice+x+team+board": 73047,
+ "skills+shared+voice+x+team+images": 74885,
+ "default+images": 64071,
+ "skills+shared+voice+x+team+images+hosting": 76809,
+ "default+hosting": 63987,
+ "default+tools-off": 57807,
+ "skills+shared+voice+x+team+board": 73662,
"default+room+board": 59189,
};
@@ -390,7 +390,7 @@ describe("agents proxy tools/list golden", () => {
const names = (name: string) => toolsOf(wires[name]!).map((tool) => tool.name);
expect(names("default+no-computer-pick")).toEqual(names("default").filter((tool) => tool !== "select_computer"));
for (const name of ["default", "non-chief"]) {
- expect(names(`${name}+room`), name).toEqual(names(name).filter((tool) => !["select_computer", "wait_until", "list_waits", "cancel_wait", "check_back", "burst", "rename_thread", "set_main_thread"].includes(tool)));
+ expect(names(`${name}+room`), name).toEqual(names(name).filter((tool) => !["select_computer", "wait_until", "list_waits", "cancel_wait", "check_back", "burst", "rename_thread", "set_main_thread", "chat_folders"].includes(tool)));
}
for (const [name, profile] of Object.entries(PROFILES)) {
expect(names(name).includes("select_computer"), name).toBe(profile.env.OMB_COMPUTER_SELECTION === "1");
diff --git a/server/drivers/agents-catalog.ts b/server/drivers/agents-catalog.ts
index 62bb6ee22e..ddc0608bee 100644
--- a/server/drivers/agents-catalog.ts
+++ b/server/drivers/agents-catalog.ts
@@ -12,6 +12,7 @@ import { USAGE_LIMITS_TOOL_DEFINITION } from "./agents-usage-tool.ts";
import { APP_SETTINGS_TOOL_DEFINITION } from "./agents-app-settings-tool.ts";
import { THREAD_POST_TOOL_DEFINITION } from "./agents-thread-post-tool.ts";
import { RENAME_THREAD_TOOL_DEFINITION } from "./agents-thread-title-tool.ts";
+import { CHAT_FOLDERS_TOOL_DEFINITION } from "./agents-chat-folders-tool.ts";
import { SET_MAIN_THREAD_TOOL_DEFINITION } from "./agents-main-thread-tool.ts";
import { WORKFLOW_TOOL_DEFINITIONS, WORKFLOW_TOOL_NAMES } from "./agents-workflow-tool.ts";
import { WAIT_TOOL_DEFINITIONS, WAIT_TOOL_NAMES } from "./agents-wait-tools.ts"; import { CHECK_BACK_TOOL_DEFINITIONS, CHECK_BACK_TOOL_NAMES } from "./agents-check-back-tool.ts"; import { BOARD_TOOL_DEFINITIONS, BOARD_TOOL_NAMES } from "./agents-board-tools.ts";
@@ -257,6 +258,7 @@ const TOOL_DEFINITIONS = [
},
RENAME_THREAD_TOOL_DEFINITION,
SET_MAIN_THREAD_TOOL_DEFINITION,
+ CHAT_FOLDERS_TOOL_DEFINITION,
...WORKFLOW_TOOL_DEFINITIONS,
{
name: "start_thread",
@@ -840,7 +842,7 @@ const WATCHER_TOOL_NAMES = new Set(["create_options_card"]);
const LOCAL_VM_TOOL_NAMES = new Set(["vm_exec"]);
/** Refused in a room's thread (routes/waits.ts), and list_waits, since a room holds no wait. */
-const ROOM_REFUSED_TOOL_NAMES = new Set([...WAIT_TOOL_NAMES, ...CHECK_BACK_TOOL_NAMES, "burst", "rename_thread", "set_main_thread"]);
+const ROOM_REFUSED_TOOL_NAMES = new Set([...WAIT_TOOL_NAMES, ...CHECK_BACK_TOOL_NAMES, "burst", "rename_thread", "set_main_thread", "chat_folders"]);
const CLOUD_HOME_SURFACE = {
type: "string", enum: ["auto", "cloud", "browser"],
description: "auto = suitable configured computer, cloud = the bot's cloud computer, browser = built-in browser. Omit to list. This server runs in the cloud: the user's own computer and a Local VM are not places here.",
diff --git a/server/drivers/agents-chat-folders-tool.test.ts b/server/drivers/agents-chat-folders-tool.test.ts
new file mode 100644
index 0000000000..2dd3510fcf
--- /dev/null
+++ b/server/drivers/agents-chat-folders-tool.test.ts
@@ -0,0 +1,31 @@
+import { describe, expect, it } from "vitest";
+
+import { callChatFoldersTool } from "./agents-chat-folders-tool.ts";
+
+function context(answer: Record<string, unknown> = {}) {
+ const calls: Array<[string, unknown]> = [];
+ return {
+ calls,
+ context: { botId: "bot-1", threadId: "t-1", client: { api: async (path: string, init?: { body?: string }) => { calls.push([path, init?.body ? JSON.parse(init.body) : undefined]); return answer; } } } as never,
+ };
+}
+
+describe("chat_folders arguments", () => {
+ it("refuses a missing action and arguments of the wrong type before calling the app", async () => {
+ for (const args of [{}, { action: "delete" }, { action: "create" }, { action: "create", name: 3 }, { action: "create", name: "A", emoji: 1 },
+ { action: "move" }, { action: "move", folder: 2 }, { action: "move", folder: "A", thread_id: 5 }]) {
+ const { calls, context: ctx } = context();
+ expect((await callChatFoldersTool(args as never, ctx)).isError, JSON.stringify(args)).toBe(true);
+ expect(calls).toEqual([]);
+ }
+ });
+
+ it("sends its own bot and thread with each action", async () => {
+ const list = context({ folders: [{ id: "f-1", name: "Clients", threads: [{ threadId: "t-9", title: "Acme" }] }] });
+ expect((await callChatFoldersTool({ action: "list" }, list.context)).text).toBe("Clients (id f-1): #Acme (t-9)");
+ expect(list.calls).toEqual([["/api/internal/folders?fromBotId=bot-1&fromThreadId=t-1", undefined]]);
+ const move = context({ title: "Acme", folder: null });
+ expect((await callChatFoldersTool({ action: "move", folder: "" }, move.context)).text).toBe("Took #Acme out of its folder.");
+ expect(move.calls).toEqual([["/api/internal/folders/move", { fromBotId: "bot-1", fromThreadId: "t-1", folder: "" }]]);
+ });
+});
diff --git a/server/drivers/agents-chat-folders-tool.ts b/server/drivers/agents-chat-folders-tool.ts
new file mode 100644
index 0000000000..622c79c23f
--- /dev/null
+++ b/server/drivers/agents-chat-folders-tool.ts
@@ -0,0 +1,68 @@
+// The agents catalog's chat_folders tool: a bot lists and creates its own sidebar folders and moves its own threads
+// into or out of them, as the person's "New folder" and "Move to folder" do. The internal routes
+// (server/routes/internal-threads.ts) only take the bot's own folders and threads.
+import type { Json } from "./agents-client.ts";
+import type { ToolCallContext, ToolCallResult } from "./agents-call.ts";
+
+export const CHAT_FOLDERS_TOOL = "chat_folders";
+
+type Folder = { id: string; name: string; emoji?: string; threads?: Array<{ threadId: string; title: string }> };
+
+const label = (folder: Folder) => `${folder.emoji ? `${folder.emoji} ` : ""}${folder.name}`;
+
+export async function callChatFoldersTool(args: Json, context: ToolCallContext): Promise<ToolCallResult> {
+ const action = args.action;
+ if (action !== "list" && action !== "create" && action !== "move") {
+ return { text: "chat_folders needs action: list, create or move.", isError: true };
+ }
+ const from = { fromBotId: context.botId, fromThreadId: context.threadId };
+ if (action === "list") {
+ const r = await context.client.api(`/api/internal/folders?${new URLSearchParams(from).toString()}`);
+ if (r.error) return { text: `Couldn't list your folders: ${String(r.error)}`, isError: true };
+ const folders = (r.folders ?? []) as Folder[];
+ if (!folders.length) return { text: "You have no folders yet. Create one with action create." };
+ return { text: folders.map((folder) => `${label(folder)} (id ${folder.id}): ${folder.threads?.length
+ ? folder.threads.map((one) => `#${one.title} (${one.threadId})`).join(", ") : "no threads"}`).join("\n") };
+ }
+ if (action === "create") {
+ if (typeof args.name !== "string" || !args.name.trim()) return { text: "chat_folders create needs name: the folder's name, at most 80 characters.", isError: true };
+ if (args.emoji != null && typeof args.emoji !== "string") return { text: "chat_folders create takes emoji as one emoji, or leave it out.", isError: true };
+ const r = await context.client.api("/api/internal/folders", {
+ method: "POST",
+ body: JSON.stringify({ ...from, name: args.name, ...(args.emoji ? { emoji: args.emoji } : {}) }),
+ });
+ if (r.error) return { text: `Couldn't create the folder: ${String(r.error)}`, isError: true };
+ const folder = r.folder as Folder;
+ return { text: r.existed ? `You already have the folder ${label(folder)} (id ${folder.id}); nothing new was made.` : `Created the folder ${label(folder)} (id ${folder.id}).` };
+ }
+ if (args.thread_id != null && typeof args.thread_id !== "string") {
+ return { text: "chat_folders move needs thread_id as a string from list_threads; leave it out for this thread.", isError: true };
+ }
+ if (typeof args.folder !== "string") {
+ return { text: "chat_folders move needs folder: a folder name or id, or \"\" to take the thread out of its folder.", isError: true };
+ }
+ const r = await context.client.api("/api/internal/folders/move", {
+ method: "POST",
+ body: JSON.stringify({ ...from, folder: args.folder, ...(typeof args.thread_id === "string" && args.thread_id.trim() ? { moveThreadId: args.thread_id.trim() } : {}) }),
+ });
+ if (r.error) return { text: `Couldn't move the thread: ${String(r.error)}`, isError: true };
+ const folder = r.folder as Folder | null;
+ return { text: folder ? `Moved #${String(r.title)} into ${label(folder)}.` : `Took #${String(r.title)} out of its folder.` };
+}
+
+export const CHAT_FOLDERS_TOOL_DEFINITION = {
+ name: CHAT_FOLDERS_TOOL,
+ description: "Your own sidebar folders, only when the person asks: list them with their threads, create one, or move one of your threads into one.",
+ inputSchema: {
+ type: "object",
+ additionalProperties: false,
+ properties: {
+ action: { type: "string", enum: ["list", "create", "move"] },
+ name: { type: "string", description: "create: at most 80 characters." },
+ emoji: { type: "string" },
+ thread_id: { type: "string", description: "move: from list_threads; default: this thread." },
+ folder: { type: "string", description: "move: name or id; \"\" takes it out of its folder." },
+ },
+ required: ["action"],
+ },
+};
diff --git a/server/drivers/agents-claude-defer.test.ts b/server/drivers/agents-claude-defer.test.ts
index c44524ff3b..aab23e4c1e 100644
--- a/server/drivers/agents-claude-defer.test.ts
+++ b/server/drivers/agents-claude-defer.test.ts
@@ -25,10 +25,10 @@ const DEFER = { [DEFER_TOOLS_ENV]: "1" };
/** Bytes Claude Code sends up front for the agents server when the budget was last set; each may move at most 2%. */
const UP_FRONT_BASELINE: Record<string, { whole: number; deferred: number }> = {
- default: { whole: 3896, deferred: 1360 },
- specialist: { whole: 1495, deferred: 1188 },
- fullest: { whole: 3896, deferred: 1721 },
- board: { whole: 3896, deferred: 1794 },
+ default: { whole: 3896, deferred: 1386 },
+ specialist: { whole: 1495, deferred: 1214 },
+ fullest: { whole: 3896, deferred: 1747 },
+ board: { whole: 3896, deferred: 1820 },
};
const listed = (env: Record<string, string>) => agentsToolList(env).listed as Array<{ name: string; description: string; inputSchema: unknown; _meta?: Record<string, unknown> }>;
diff --git a/server/drivers/agents-proxy.test.ts b/server/drivers/agents-proxy.test.ts
index f2bde423be..2ff713030c 100644
--- a/server/drivers/agents-proxy.test.ts
+++ b/server/drivers/agents-proxy.test.ts
@@ -655,6 +655,7 @@ describe("agents-proxy MCP surface", () => {
"close_thread",
"rename_thread",
"set_main_thread",
+ "chat_folders",
"run_workflow",
"workflow_edit",
"start_thread",
diff --git a/server/drivers/agents-tool-groups.ts b/server/drivers/agents-tool-groups.ts
index b353000197..69521037c3 100644
--- a/server/drivers/agents-tool-groups.ts
+++ b/server/drivers/agents-tool-groups.ts
@@ -28,7 +28,7 @@ export const OWN_SWITCH_TOOLS: Readonly<Record<"memory" | "research", ReadonlySe
export const CORE_TOOLS: ReadonlySet<string> = new Set([
"tool_result_read", "list_shared_computers", "shared_computer", "ask_for_computer", "list_room_targets", "coordinate_bots",
"assignment_status", "list_bots", "usage_limits", "list_rooms", "select_computer", "reset_cloud_computer", "list_threads",
- "close_thread", "rename_thread", "set_main_thread", "start_thread", "burst", "list_models", "vm_exec", "attach_file", "show_widget", "create_options_card",
+ "close_thread", "rename_thread", "set_main_thread", "chat_folders", "start_thread", "burst", "list_models", "vm_exec", "attach_file", "show_widget", "create_options_card",
"post_to_room", "post_to_thread", "create_bot", "list_team_setup", "list_team_library", "propose_team_setup",
"propose_bot_deletion", "manage_room", "request_credential", "request_sign_in", "fill_login", "send_voice_note", "decide",
"extract", "what_changed", "message_person", "report_bug", "retry_thread", "session_search", "trigger_info", "trigger", "delete_trigger",
diff --git a/server/routes/internal-threads.test.ts b/server/routes/internal-threads.test.ts
index 1dbd1058ef..3e45518abf 100644
--- a/server/routes/internal-threads.test.ts
+++ b/server/routes/internal-threads.test.ts
@@ -276,3 +276,92 @@ describe("set_main_thread on the sender's own threads", () => {
for (const threadId of ["t-ops-busy", "t-run", "t-archived"]) expect((await setMain({ mainThreadId: threadId })).patched).toEqual([]);
});
});
+
+describe("chat_folders on the sender's own folders and threads", () => {
+ function setup(opts: { owns?: boolean } = {}) {
+ const bot = { ...lead, projects: [{ id: "f-clients", name: "Clients", emoji: "💼" }, { id: "f-a", name: "Same" }, { id: "f-b", name: "same" }] } as BotRecord;
+ const own = [{ ...task("t-own", "Today"), projectId: "f-clients" } as TaskRecord, task("t-old", "Acme review"), { ...task("t-hidden", "Owner only"), projectId: "f-clients" } as TaskRecord];
+ const created: Array<[string, string, string | null | undefined]> = [];
+ const patched: Array<[string, string, Partial<TaskRecord>]> = [];
+ const store = {
+ bot: (id: string) => id === lead.id ? bot : ops, bots: [bot, ops],
+ tasks: (id: string) => id === lead.id ? own : tasks[id] ?? [],
+ taskByThread: (botId: string, threadId: string) => (botId === lead.id ? own : tasks[botId] ?? []).find((one) => one.threadId === threadId),
+ project: (botId: string, id: string) => botId === lead.id ? bot.projects!.find((one) => one.id === id) : undefined,
+ createProject: (botId: string, name: string, emoji?: string | null) => {
+ created.push([botId, name, emoji]);
+ const project = { id: `f-new-${created.length}`, name, ...(emoji ? { emoji } : {}) };
+ bot.projects = [...bot.projects!, project];
+ return project;
+ },
+ patchTask: (botId: string, threadId: string, patch: Partial<TaskRecord>) => { patched.push([botId, threadId, patch]); return own[0]; },
+ };
+ async function call(method: string, path: string, body: unknown = {}) {
+ const route = createInternalThreadRoutes({
+ store: store as never, coordinator: {} as never,
+ from: lead, fromThreadId: "t-own", ownsThread: () => opts.owns ?? true, shown: (id) => id !== "t-hidden", mainThreadTasks: () => [],
+ threadBusy: () => false, queuedThreadPosition: () => null, queuedReason: () => "",
+ readBody: async () => body,
+ });
+ let status = 0;
+ let answer: Record<string, unknown> | undefined;
+ await route({ res: {}, url: new URL(`http://x${path}`), path, method, json: (_res: unknown, code: number, value: never) => { status = code; answer = value; } } as never);
+ return { status, answer: answer! };
+ }
+ return { call, created, patched };
+ }
+
+ it("lists its own folders with the threads it may see in each", async () => {
+ const { status, answer } = await setup().call("GET", "/api/internal/folders");
+ expect(status).toBe(200);
+ expect(answer.folders).toEqual([
+ { id: "f-clients", name: "Clients", emoji: "💼", threads: [{ threadId: "t-own", title: "Today" }] },
+ { id: "f-a", name: "Same", threads: [] },
+ { id: "f-b", name: "same", threads: [] },
+ ]);
+ });
+
+ it("creates a folder, and gives back the one it already has under that name instead of a second", async () => {
+ const { call, created } = setup();
+ const made = await call("POST", "/api/internal/folders", { name: " Acme ", emoji: "📁" });
+ expect(made.status).toBe(200);
+ expect(created).toEqual([["bot-lead", "Acme", "📁"]]);
+ expect(made.answer).toMatchObject({ folder: { name: "Acme", emoji: "📁" } });
+ const again = await call("POST", "/api/internal/folders", { name: "clients" });
+ expect(again.answer).toMatchObject({ folder: { id: "f-clients" }, existed: true });
+ expect(created).toHaveLength(1);
+ });
+
+ it("refuses a missing or too long name, a bad emoji and a sender that does not own its conversation", async () => {
+ const { call, created } = setup();
+ for (const body of [{}, { name: " " }, { name: 7 }, { name: "x".repeat(81) }, { name: "Ok", emoji: "folder" }]) {
+ expect((await call("POST", "/api/internal/folders", body)).status, JSON.stringify(body)).toBe(400);
+ }
+ expect((await setup({ owns: false }).call("POST", "/api/internal/folders", { name: "Ok" })).status).toBe(403);
+ expect((await setup({ owns: false }).call("GET", "/api/internal/folders")).status).toBe(403);
+ expect(created).toEqual([]);
+ });
+
+ it("moves one of its own threads into a folder by id or name, and out of its folder", async () => {
+ const { call, patched } = setup();
+ const byName = await call("POST", "/api/internal/folders/move", { moveThreadId: "t-old", folder: "CLIENTS" });
+ expect(byName.status).toBe(200);
+ expect(byName.answer).toMatchObject({ threadId: "t-old", title: "Acme review", folder: { id: "f-clients", name: "Clients" } });
+ expect((await call("POST", "/api/internal/folders/move", { folder: "f-a" })).status).toBe(200);
+ const out = await call("POST", "/api/internal/folders/move", { moveThreadId: "t-old", folder: "" });
+ expect(out.answer).toMatchObject({ threadId: "t-old", folder: null });
+ expect(patched).toEqual([["bot-lead", "t-old", { projectId: "f-clients" }], ["bot-lead", "t-own", { projectId: "f-a" }], ["bot-lead", "t-old", { projectId: undefined }]]);
+ });
+
+ it("refuses a teammate's or hidden thread, an unknown or ambiguous folder, a bad argument and a sender that does not own its conversation", async () => {
+ const { call, patched } = setup();
+ expect((await call("POST", "/api/internal/folders/move", { moveThreadId: "t-ops-busy", folder: "Clients" })).status).toBe(404);
+ expect((await call("POST", "/api/internal/folders/move", { moveThreadId: "t-hidden", folder: "Clients" })).status).toBe(404);
+ expect((await call("POST", "/api/internal/folders/move", { moveThreadId: "t-old", folder: "Nope" })).status).toBe(404);
+ expect((await call("POST", "/api/internal/folders/move", { moveThreadId: "t-old", folder: "same" })).status).toBe(409);
+ expect((await call("POST", "/api/internal/folders/move", { moveThreadId: "t-old" })).status).toBe(400);
+ expect((await call("POST", "/api/internal/folders/move", { moveThreadId: 3, folder: "Clients" })).status).toBe(400);
+ expect((await setup({ owns: false }).call("POST", "/api/internal/folders/move", { folder: "Clients" })).status).toBe(403);
+ expect(patched).toEqual([]);
+ });
+});
diff --git a/server/routes/internal-threads.ts b/server/routes/internal-threads.ts
index 46f3ab06e0..3f5ec5d78a 100644
--- a/server/routes/internal-threads.ts
+++ b/server/routes/internal-threads.ts
@@ -2,7 +2,7 @@ import { chiefTidies } from "../chief-of-staff.ts";
import type { Coordinator, HandoffView } from "../coordinator.ts";
import { mainThreadChoicePatch } from "../main-thread.ts";
import { reachablePeers } from "../peer-roster.ts";
-import { threadTitleFrom, type BotRecord, type Store, type TaskRecord } from "../store.ts";
+import { isProjectEmoji, threadTitleFrom, type BotRecord, type Store, type TaskRecord } from "../store.ts";
import { PASS, type RouteHandler } from "./table.ts";
import { closeRoomThreadAtTurnEnd } from "../room-thread-close.ts";
import { conversationLanguage, serverLine } from "../server-lines.ts";
@@ -24,7 +24,7 @@ interface ThreadRow {
/** Only dispatch inside the internal capability gate: `from` and `fromThreadId` come from the caller's capability. */
export function createInternalThreadRoutes(deps: {
- store: Pick<Store, "bot" | "bots" | "tasks" | "taskByThread" | "appendMessage" | "patchTask" | "setTaskClosedBy" | "renameTask" | "patchBot" | "groupByThread" | "groupTaskByThread">;
+ store: Pick<Store, "bot" | "bots" | "tasks" | "taskByThread" | "appendMessage" | "patchTask" | "setTaskClosedBy" | "renameTask" | "patchBot" | "groupByThread" | "groupTaskByThread" | "createProject">;
coordinator: Pick<Coordinator, "threadActivity" | "awaitingAnswer" | "activeDirect">;
from: BotRecord;
fromThreadId: string;
@@ -131,6 +131,50 @@ export function createInternalThreadRoutes(deps: {
store.patchBot(from.id, choice);
return json(res, 200, { threadId, title: task.title });
}
+ // chat_folders: a bot lists and creates its own sidebar folders and moves its own threads, under the person's rules.
+ if ((method === "GET" && path === "/api/internal/folders") || (method === "POST" && (path === "/api/internal/folders" || path === "/api/internal/folders/move"))) {
+ if (!deps.ownsThread(from.id, fromThreadId)) {
+ return json(res, 403, { error: "source conversation does not belong to sender" });
+ }
+ if (method === "GET") {
+ const folders = store.bot(from.id)?.projects ?? [];
+ const own = store.tasks(from.id).filter((one) => one.projectId && deps.shown(one.threadId));
+ return json(res, 200, {
+ folders: folders.map((folder) => ({
+ ...folder, threads: own.filter((one) => one.projectId === folder.id).map((one) => ({ threadId: one.threadId, title: one.title })),
+ })),
+ });
+ }
+ const body = await deps.readBody() as Record<string, unknown> | null;
+ // Read after the body: the person may have added or removed a folder meanwhile.
+ const folders = store.bot(from.id)?.projects ?? [];
+ const sameName = (name: string) => folders.filter((folder) => folder.name.toLowerCase() === name.toLowerCase());
+ if (path === "/api/internal/folders") {
+ const name = typeof body?.name === "string" ? body.name.trim() : "";
+ if (!name || name.length > 80) return json(res, 400, { error: "the folder needs a name of 1 to 80 characters" });
+ if (body?.emoji != null && !isProjectEmoji(body.emoji)) return json(res, 400, { error: "emoji must be a single emoji, or left out" });
+ const existing = sameName(name)[0];
+ if (existing) return json(res, 200, { folder: existing, existed: true });
+ const folder = store.createProject(from.id, name, isProjectEmoji(body?.emoji) ? body.emoji : undefined);
+ if (!folder) return json(res, 404, { error: "your bot is gone" });
+ return json(res, 200, { folder });
+ }
+ if (body?.moveThreadId != null && typeof body.moveThreadId !== "string") return json(res, 400, { error: "thread_id must be a thread id from list_threads, or left out for this thread" });
+ if (typeof body?.folder !== "string") return json(res, 400, { error: "folder must be a folder name or id, or \"\" to take the thread out of its folder" });
+ const threadId = typeof body.moveThreadId === "string" && body.moveThreadId.trim() ? body.moveThreadId.trim() : fromThreadId;
+ const task = store.taskByThread(from.id, threadId);
+ if (!task || !deps.shown(threadId)) {
+ return json(res, 404, { error: "that is not one of your own threads (a room's thread or a teammate's stays where it is) — call list_threads" });
+ }
+ const wanted = body.folder.trim();
+ const byId = folders.find((folder) => folder.id === wanted);
+ const named = byId ? [byId] : wanted ? sameName(wanted) : [];
+ if (wanted && named.length === 0) return json(res, 404, { error: `you have no folder named "${wanted}" — create it first, or call chat_folders with action list` });
+ if (named.length > 1) return json(res, 409, { error: `you have ${named.length} folders named "${wanted}" — use the folder id from chat_folders list` });
+ const folder = named[0];
+ if (!store.patchTask(from.id, threadId, { projectId: folder?.id })) return json(res, 404, { error: "that thread is gone" });
+ return json(res, 200, { threadId, title: task.title, folder: folder ?? null });
+ }
// close_thread folds a thread, never deletes it (a person's confirmed action), and never while it runs.
const closeMatch = method === "POST" ? path.match(/^\/api\/internal\/threads\/([\w-]+)\/close$/) : null;
if (!closeMatch) return PASS;
diff --git a/src/locales/de.json b/src/locales/de.json
index aff1b5050f..fb14e812a2 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -4323,6 +4323,7 @@
"imageGen.complexity.medium": "Mittel",
"imageGen.complexity.high": "Hoch",
"activity.tool.team.editImage": "Bild bearbeiten",
+ "activity.tool.team.chatFolders": "Chat-Ordner",
"voice.deepseek.sharedKey": "DeepSeek verwendet den vorhandenen DeepSeek-Schlüssel dieser Installation.",
"voice.deepseek.description": "Liest Antworten und Sprachnachrichten mit der DeepSeek-Stimme Stella oder Tide vor. Mit DeepSeek hören dich auch Diktat und abwechselndes Sprechen über die DeepSeek-Spracherkennung, bis zu etwa zwei Minuten pro Aufnahme. Nutzt deinen DeepSeek-API-Schlüssel und wird von DeepSeek abgerechnet.",
"voice.deepseek.stella": "Stella (weiblich)",
diff --git a/src/locales/en.json b/src/locales/en.json
index cf38252006..9578848916 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -9750,6 +9750,7 @@
"activity.tool.team.closeThread": "Close thread",
"activity.tool.team.renameThread": "Rename thread",
"activity.tool.team.setMainThread": "Set main thread",
+ "activity.tool.team.chatFolders": "Chat folders",
"activity.tool.team.coordinateBots": "Coordinate bots",
"activity.tool.team.createBot": "Create bot",
"activity.tool.team.createRoom": "Create room",
diff --git a/src/locales/it.json b/src/locales/it.json
index 077c6d2781..675690d6c8 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -9603,6 +9603,7 @@
"activity.tool.team.closeThread": "Chiudi conversazione",
"activity.tool.team.renameThread": "Rinomina conversazione",
"activity.tool.team.setMainThread": "Imposta thread principale",
+ "activity.tool.team.chatFolders": "Cartelle chat",
"activity.tool.team.coordinateBots": "Coordina bot",
"activity.tool.team.createBot": "Crea bot",
"activity.tool.team.createRoom": "Crea chat di gruppo",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 0dd3959498..8391d49626 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -9680,6 +9680,7 @@
"activity.tool.team.closeThread": "Fechar conversa",
"activity.tool.team.renameThread": "Renomear conversa",
"activity.tool.team.setMainThread": "Definir conversa principal",
+ "activity.tool.team.chatFolders": "Pastas de conversa",
"activity.tool.team.coordinateBots": "Coordenar bots",
"activity.tool.team.createBot": "Criar bot",
"activity.tool.team.createRoom": "Criar grupo",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 2e355b71dd..ee2104d775 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -9684,6 +9684,7 @@
"activity.tool.team.closeThread": "关闭对话",
"activity.tool.team.renameThread": "重命名对话",
"activity.tool.team.setMainThread": "设为主对话",
+ "activity.tool.team.chatFolders": "对话文件夹",
"activity.tool.team.coordinateBots": "协调机器人",
"activity.tool.team.createBot": "创建机器人",
"activity.tool.team.createRoom": "创建房间",