Repository navigation
Agents and bots: no caps on monitors or holds, quick actions follow the permission mode, one profiler switch, unreadable settings refused instead of narrowed - #2381
Merged
Conversation
… create_quick_action asks only when the permission mode does not allow edits
…ent-access and per-tool switches are gone
…d saying what could not be read, never narrowed to Ask or read-only
…se setup in any work, reads its applets, and its subagents show cards and message other bots
…s in the workspace, and a run nobody watches skips a change it would ask about instead of stopping
…l pick changes it; master failures recorded under #2346
TheAnimatrix
force-pushed
the
agent-tools-open-caps
branch
from
November 30, 2026 02:42
e1b49d6 to
c4ae5b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the second of two PRs. The first, #2385, is merged; it covered who holds "person", tools for subagents, schedules, automations, approvals and messages between agents. This branch is rebased on master.
Problem
The owner's own agents and bots still ran into limits nobody chose for them: monitors stopped after 30 minutes and
keep_workingafter 6 hours;create_quick_actionasked every time, even in Agent or Full access; the profiler had an "Agents can read the profiler" switch and one switch per tool on top of the Profiler switch; anything unreadable quietly became the narrowest setting (an unknown permission mode ran as Ask, an agent whose mode could not be read answered as Ask, a bot turn whose start could not be read ran read-only); and bots had small hidden refusals: a work run could not pick its own model, only work started from the chat could ask for computer-use setup, bots could not read their own applets, and a work subagent could not show a card or message the owner's other bots.Change
keep_workingrun as long as the agent sets; the defaults (10 and 30 minutes) stay for a call that names no time. They still end when the script exits, the socket closes, the hold is released or the thread is stopped. A limit past one timer's longest delay (about 24.8 days) waits its whole time.create_quick_actionis an edit (mousse:quick_action): it runs unasked when the permission mode allows edits and asks through the normal approval card under Ask. Its separate question flow is gone.mousse_unreadable, refused asunavailable), never narrowed: a tool call that would ask when its run's permission mode cannot be read, and an agent's approval answer when its run's or thread's mode cannot be read. A bot turn whose start no build names does not run: it is refused withbot_turn_unreadable, naming its key, trigger and lane, and the chat says so.use_modelwithnow, among the offered models, by full name and entry); changing the rows for good stays the owner's. Any work that holds "use the computer" may ask for computer-use setup. Main turns haveread_appletwithpublish_applet. A work subagent holdsshow_cardandreport_bug, andbot_list/bot_sendwhen its work does; its thread resolves to its work.unattendedBehavior: 'skip'). Parsing of existing saved agents is unchanged.Kept on purpose
background_runkeeps its 6-hour limit and a bot'swatch_startits 360 minutes: not part of this change.use_modelwithalwaysfrom a run, explicit bot permission toggles and ask cards, private threads, secrets handling,report_bug's daily limit.tests/known-failures.json.Verification
On c4ae5b1, rebased on master 85e553a:
node scripts/verify.mjs <27 files> --typecheck all:verify: PASS @ c4ae5b1. 577 tests ran, and the node and web typechecks found no errors.Before the last rebase, at 3ecc825 on d9f92fd,
tests/run,tests/bots,tests/monitorsandtests/agentDefinitionswere run in full with vitest. One failure came from this branch: a memory-rights row used a turn kind no build names, and such a turn no longer runs. That row is removed at c4ae5b1. Every other failure also fails on master:botThreadParity,codexAdapterread-only child,botMarks,botPageChecks,botAvailableHistoryand the memory export.An earlier run at e1b49d6, before the rebase, covered 110 files: every test that names a changed tool, setting, default or module (monitors, quick actions, profiler, Labs and settings search, authority and registry, approvals, bot engine, grants, cards, subagents, computer use, applets, agent definitions and workflow agents). What each claim is checked by:
Long monitor and hold limits:
tests/monitors/threadMonitors.test.ts(500 minutes runs 500 minutes; a 40-day hold ends once, at its time).Quick actions follow the permission mode:
tests/run/appToolGates.test.ts(Agent and Full access add unasked; Ask asks withmousse:quick_action; a rejection adds nothing),tests/harness/turnBridgeNever.test.ts, the pinned table intests/run/toolAuthorityParity.test.ts.One profiler switch:
tests/profiler.test.ts,tests/run/botProfilerTools.test.ts,tests/renderer/labsSettings.test.ts.Typed errors:
tests/run/mcpToolRegistry.test.ts(unreadable mode refuses, asks nothing),tests/run/approvalRespondDaemon.test.ts(unreadable answering mode refuses; the request stays pending),tests/bots/botTurnKinds.test.tsandtests/run/toolApiContract.test.ts(an unreadable start does not run; chat blocked, run failed withbot_turn_unreadable).Bots:
tests/run/botAppTools.test.ts(a run's own model pick, by entry),tests/bots/botModelSlots.test.ts,tests/run/botComputerRequest.test.ts(a scheduled run may ask),tests/bots/botWorkSubagents.test.ts(a subagent holds cards; bot messages follow its work; its thread resolves to its work),tests/bots/botEngine.test.ts.Agent defaults: covered by the agent definition and workflow files above passing with the new defaults. Not tested: a real unattended workflow run skipping an edit.
No issue