Repository navigation
Description
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:309registersset_session_permission_modeinoperations!and forwards valid requests toLocalBackend.apps/maple-agent/app/src/remote/wire.rs:111-180enumerates the remoteMethodallowlist and includesSetSessionWebEnabledandAnswerQuestion, but has noSetSessionPermissionModevariant.Method::parserejects 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-86currently 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
fix(agent): let a paired computer change a remote task's permission m…