Repository navigation
Bots: one Sandbox setting with Blocked, Public web or Direct network, in About and New bot - #2513
Merged
Merged
Conversation
…is Blocked, Public web or Direct; New bot sets it too About shows one Sandbox row with its state. Its dialog, on the modal surface, names the bot's computer and holds the switch, Files, Network, Local servers, the bot's secrets and their rules, Approvals (Auto or Full commands) and a summary of what commands reach, read from the resolver. The network choice is split into Blocked, Public web and Direct; each launcher says which it can give, and any other choice is unavailable. A saved network-on choice keeps its meaning. New bot has a Sandbox step, off by default, written with the bot before its first turn. The blocked card offers Repair and Turn off this limit.
… the old one; Repair re-probes each card's launcher; a late read never undoes a change; Full commands keeps Remove; secrets given with Use saved are listed
…ttings' secret list names the threads that may use each
…installs, with Repair
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.
Problem
A bot's sandbox showed as two switches in About, the network was only on or off (and "on" meant the public web on Claude Code but this computer's whole network on Codex and background commands), and none of it could be set when making a bot.
Change
BotSandboxFiles, given the bot's id in the dialog), so owner-granted folders can fill it in a later PR. Local servers shows what holds now; opening one to the browser comes later.How to review
src/shared/bots/personal/sandbox.ts: network kinds, the reach summary, card actions.src/mms/bots/sandbox/BotSandboxResolver.ts(networks,givenNetwork) and each launcher's declaration; the runner's own launch opens this computer's network only for Direct.BotEngine.setSandbox's tighter rule (botSandboxNetworkWidens) andcreateBot's initial setting.src/renderer/components/bots/BotSandboxSettings.tsxand the New bot step.Verification
node scripts/verify.mjson 56 named test files (1609 tests) and both typechecks: pass, with one known failure on master too (piBotGate bash test fails on Windows: Git Bash prints the files folder as /tmp/... #2405, Git Bash path inpiBotGate). The New bot step, the dialog, the reach summary, the card's buttons and every launcher's network are covered by named tests.Not tested automatically: how the row, dialog, step and card look. Before/after captures below are the real components with the app's CSS and stores, rendered offscreen in Electron in Mousse Dark, with sample data.
Not checked on a real Linux or macOS sandbox start: the launchers' starts are unchanged except which network each is handed.
Notes
Builds on #2507. No schema change: the next schema version stays free for the file-access work. No issue.
Screens