Skip to content

Commit 649202a

Browse files
authored
fix(agents): construct exact screen allowlists (#126691)
1 parent 85ab6a3 commit 649202a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/agents/core-tool-factory-descriptors.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const CORE_TOOL_FACTORY_DESCRIPTORS = [
2828
{ name: "conversations_send", family: "openclaw" },
2929
{ name: "conversations_turn", family: "openclaw" },
3030
{ name: AUTOMATIONS_TOOL_NAME, family: "openclaw" },
31+
{ name: "screen", family: "openclaw" },
3132
{ name: "dashboard", family: "openclaw" },
3233
{ name: "gateway", family: "openclaw" },
3334
{ name: "get_goal", family: "openclaw" },

‎src/agents/embedded-agent-runner/run/attempt-tool-construction-plan.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ describe("resolveEmbeddedAttemptToolConstructionPlan", () => {
380380
},
381381
},
382382
);
383-
for (const toolName of ["suggest_task", "dismiss_task"]) {
383+
for (const toolName of ["suggest_task", "dismiss_task", "screen"]) {
384384
expectConstructionPlan(
385385
resolveEmbeddedAttemptToolConstructionPlan({ toolsAllow: [toolName] }),
386386
{

0 commit comments

Comments
 (0)