Skip to content

The composer keeps showing "Read only" after an external agent model is selected #6702

Closed

Description

@YongGoose

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.observe reports permissions.access: "read_only" and backend.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 gets approvalPolicy: "never" and dangerFullAccess (plugins/agent/native/src/executor/external/{claude,agy,codex}.rs). External::admit doesn'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

  1. Under Settings → External agents, enable Claude Code or Codex and accept the permissions.
  2. In a conversation, choose Read only in the sandbox menu.
  3. Open the model menu and choose the external model.
  4. 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-preview 57470e4c1
  • OS and version: macOS 27.0.1 (arm64)
  • Surface: desktop

Activity

  1. YongGoose commented on Nov 8, 2026

    @YongGoose
    MemberAuthor

    take

  2. YongGoose commented on Nov 8, 2026

    @YongGoose
    MemberAuthor

    @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.

  3. M4n5ter commented on Nov 8, 2026

    @M4n5ter
    Member

    @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.

    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.

  4. YongGoose commented on Nov 9, 2026

    @YongGoose
    MemberAuthor

    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.

  5. added a commit that references this issue on Nov 10, 2026
    04c4ceb
  6. YongGoose commented on Nov 11, 2026

    @YongGoose
    MemberAuthor

    @M4n5ter, #6704 and #6713 now work against each other. #6713 makes an external runtime require current full access (validate_current_access in plugins/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_unavailable blocker: "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 on rust-preview c8287d41b with a fake Claude CLI, and both pieces of code are unchanged on 5f96c05d8.

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions