Repository navigation
Description
What happened
Enabling a runtime under Settings → External agents warns that the agent "runs in its native full-access mode" outside the Maka sandbox. After that, its models appear in every conversation's model menu, and nothing in the conversation ties that choice to the conversation's own sandbox setting.
In a conversation set to Read only:
- The model menu lists the external models next to native ones. Their only distinction is the source line, "Native CLI · ".
- After one is chosen, the composer still shows "Read only". The sandbox menu still says "Read files without changing the workspace" and "Applies to this conversation."
agent.observereportspermissions.access: "read_only"andbackend.selection.executor: "external"at the same time.- A send is accepted, and the Host starts the runtime in its full-access mode. Claude Code and agy get
--dangerously-skip-permissions. Codex getsapprovalPolicy: "never"anddangerFullAccess(plugins/agent/native/src/executor/external/{claude,agy,codex}.rs).External::admitdoesn't look at the conversation's access.
The composer tells the person that this conversation can't change the workspace, but the selected model can.
How to reproduce
- Under Settings → External agents, enable Claude Code or Codex and accept the permissions.
- In a conversation, choose Read only in the sandbox menu.
- Open the model menu and choose the external model.
- The composer still shows Read only, with nothing saying it doesn't apply to that model.
I ran steps 2 to 4 in the desktop UI through the native desktop test harness (maka-cli with desktop-tests), using the fixture Codex CLI from external-agent-cli.mjs.
Separately, I sent with real Claude Code 2.1.308 through host_benchmark_client, with a local change so its send passes the selected backend. The conversation was read_only. Admission returned started, and Claude Code's transcript recorded "permissionMode": "bypassPermissions". I didn't see the runtime write a file in that run, because the invocation stalled after Claude Code's setup turn.
Expected
One of these:
- The composer shows that the conversation's sandbox doesn't apply to the selected external model, for example in the sandbox control or next to the model, or it asks for confirmation before the first send.
- External models are unavailable while the conversation is below Full access.
Choosing between them is a product decision. I'd like to implement whichever one you prefer.
Environment
- Maka version or commit:
rust-preview57470e4c1 - OS and version: macOS 27.0.1 (arm64)
- Surface: desktop
Activity
YongGoose commentedon Nov 8, 2026
take
YongGoose commentedon Nov 8, 2026
@M4n5ter, you wrote the external runtimes (#6631, #6639) and the sandbox control, so I'd like your call on the direction before I open a PR. One option is to show in the composer that the conversation's sandbox doesn't apply to an external model, or to ask for confirmation before the first send. The other is to make external models unavailable while the conversation is below Full access. I can do either.
M4n5ter commentedon Nov 8, 2026
I don’t think adding a permission restriction is necessary here. External agents don’t run under Maka’s session sandbox, so we should hide the sandbox option when an external CLI is selected. This avoids implying that the setting restricts the external agent.
YongGoose commentedon Nov 9, 2026
Thanks, @M4n5ter. #6704 does that: it hides the sandbox control while an external CLI is selected, for existing conversations and new drafts, and shows it again when a native model is chosen. It adds no permission restriction or warning, and the stored permissions are unchanged.
fix(composer): hide the sandbox control when an external agent is sel…
YongGoose commentedon Nov 11, 2026
@M4n5ter, #6704 and #6713 now work against each other. #6713 makes an external runtime require current full access (
validate_current_accessinplugins/agent/native/src/executor.rs). #6704 hides the sandbox control whenever an external model is selected.So in a read-only conversation, choosing Claude Code hides the control. A send is still accepted, and then the run moves to Waiting for you with a
current_authority_unavailableblocker: "native external runtime requires current full access". The CLI is never started. To get out, the person has to switch back to a native model, change the access, and choose Claude Code again. I checked this onrust-previewc8287d41bwith a fake Claude CLI, and both pieces of code are unchanged on5f96c05d8.Now that the sandbox setting does apply to external runtimes, I think #6704 should be reverted so the control stays visible. A follow-up could say next to it that external agents need Full access. #6713 also removed
external_agents.rs, where #6704's test lived. Should I open the revert?