Repository navigation
feat(app): agents run in chat wherever the box can, with no setting to turn it off - #153
Merged
Merged
Conversation
…o turn it off The Labs "Structured agents" switch is gone: Claude Code, Codex and ACP agents start structured whenever the box has the driver, Labs on or off, and in their terminals on boxes without it. Permissions (Bypass | Ask) moves from Labs to Settings > Agents and models. A saved structuredClaude is dropped on load. A structured session opens as its conversation with Labs off, and keeps the switch back from Claude Code's terminal. berthd's default with nothing saved is now structured, asking for each permission, so agents started by the CLI, other agents and runs on a box the app hasn't reached run in chat too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
This branch was successfully deployed
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.
Agents run in chat ("structured") wherever the box has the driver. There's no setting for it: it isn't in Labs and it isn't in Settings. This replaces #150, which made it a switch.
What changed
structuredClaudepref is gone.structuredLaunch(nowlib/structured-core.ts) picks the driver whenever the box hasdriver.claude,driver.codexordriver.acp. Otherwise the agent runs in its terminal, as on older boxes. An old savedstructuredClaudeis stripped when prefs load, so no migration is needed.{structured: true, mode}, with the mode from Permissions.NoSavedDefaults = {Structured: true, Mode: "default"}). This covers agents started by the CLI, by other agents through the berth tools, or by runs on a box the app hasn't synced yet. It asks rather than bypasses because nobody chose to let them through. Terminal presets carry no skip-permissions flags either, so runs that used to start in a terminal behave the same. Once the app sees the box, it pushes the Permissions choice. A request that names"driver": "terminal"still gets its terminal.usePaneView: a structured session opens as its conversation even with Labs off. A Claude moved to its own terminal keeps its switch back to the chat. Per-session "Open in terminal" is unchanged.guides/structured-agents) replaces the Labs section, plus a changelog bullet.app-api.mdxnotes the nothing-saved default.Proof (mock)
Settings › Agents and models: Permissions, and no switch:
Labs without the structured rows:
Tests
e2e/agents-in-chat.spec.ts(5 tests):structuredClaude: falseis dropped.structured-core.test.ts(new) andbox-defaults-core.test.ts, which also checks that an oldlabs: false/structuredClaude: falsechanges nothing.pnpm test: 541 pass.agentdefaults_test.gocovers nothing saved for Claude, Codex, ACP, an agent with no driver, a box without conversations and a broken file.mcptools_test.gochecks that a berth-tools task is structured with nothing saved, in its terminal when saved off, and structured when on.go vet, typecheck:plugins, check:titles, check:csp, check:themes, build,tsc -p e2e,cargo checkand the docs build pass. LocallyTestAttachPassesShiftEnterfails against tmux 3.7c; it passes in CI.🤖 Generated with Claude Code