Skip to content

Agent: allow permission mode changes on remote computers #1500

Closed

Description

@AnthonyRonning

Summary

Auto can classify tool calls on a remote execution computer and its approval questions can be answered remotely, but the paired controller cannot change the task's permission mode. The new set_session_permission_mode operation is registered in the general backend dispatch but is missing from the deliberately smaller remote wire allowlist.

This was introduced with the new Read only / Auto / Full access modes in #1490.

Expected behavior

After selecting Read only, Auto, or Full access from Maple's remote-computer view, the execution host persists that mode for the selected task and applies it from the next tool call, just as it does locally. Approval questions should continue to be answerable from the controller.

Actual behavior

A remote mode change is rejected locally with This operation is available only on the local computer. Reading a task that is already in Auto can still produce classifier questions remotely, but a controller cannot select a mode for a remote task.

Evidence

On current master (3a09c6f8):

  • apps/maple-agent/app/src/backend.rs:309 registers set_session_permission_mode in operations! and forwards valid requests to LocalBackend.
  • apps/maple-agent/app/src/remote/wire.rs:111-180 enumerates the remote Method allowlist and includes SetSessionWebEnabled and AnswerQuestion, but has no SetSessionPermissionMode variant.
  • Method::parse rejects methods outside that enum (remote/wire.rs:240-242). Its module documentation makes clear that adding a general backend operation does not expose it remotely.
  • The new task defaults are Auto, while pre-existing tasks retain Full access (crates/maple-agent/src/agent/types.rs:322-353, crates/maple-agent/src/agent/store.rs:79-82), so the missing setter particularly affects existing or non-default remote tasks.
  • docs/remote-security.md:83-86 currently says a controller can both answer prompts and change the mode; the code supports the former but not the latter.

This is a source-level finding on the latest master, not yet a live two-computer test.

Proposed fix and tests

Add SetSessionPermissionMode to remote wire v7; the existing JSON dispatch and account/pairing checks already reach the setter. Add coverage that parses the snake-case remote method and verifies the remote request shape plus authorization/dispatch. Keep the existing AnswerQuestion approval path.

Confirm that a paired controller can change a remote task among all three modes and that the change applies to its next tool call, as promised by the docs.

Activity

  1. added a commit that references this issue on Nov 16, 2026
    f353dd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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