Repository navigation
fix(agent): let a paired computer change a remote task's permission mode - #1502
Merged
Merged
Conversation
Permission modes (#1490) left set_session_permission_mode off the remote wire allowlist. A paired controller could answer a remote task's permission requests but not change its mode, and a new remote task whose draft mode differed from the host's default never sent its first message, because applying the mode after creation was refused. The setter is now on wire 7 behind a permission_modes_v1 capability. The controller's bridge reads it once per connection, as folder browsing does, and rechecks account and grant before sending. An older host never receives the call; the controller refuses it with coded failures the interface translates. A mode change now broadcasts SessionUpdated, so every window showing the task follows it, here and on paired computers. The component guide, the develop-maple-agent skill and remote-access.md now say chat and agent features are remote-first, with desktop-only settings staying local. Fixes #1500. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…anges An independent review of the remote mode change against the remote, daemon and ACP conventions found: - The remote-first rule named integrations broadly, but MCP and app sign-in, integration permission setup, desktop preferences and host administration stay local on purpose. The rule now names those exceptions and lives in one place, "Adding task features" in docs/remote-access.md, with pointers from the component guide and the develop-maple-agent skill. It also says every new remote method needs a capability, since a released host drops a stream whose method it cannot decode. - Web access changes did not reach other windows either. They now broadcast SessionUpdated, as mode changes do. - Missing tests: mode changes recheck account and grant after a positive probe, and both UI refusal paths read in English and Spanish. The host-side test is renamed for what it covers. permissions.md now says a new task on an older host opens in that host's mode with the message kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Fixes #1500. Permission modes (#1490) shipped without remote parity. A paired computer could answer a remote task's permission requests but couldn't change its mode. Worse, the controller applies the mode picked for a new chat after creating the task. When that mode differed from the remote host's default, the call was refused and the first message never sent.
set_session_permission_modeis on the remote wire allowlist, behind a newpermission_modes_v1capability. Like folder browsing, the controller's bridge reads the host's capabilities once per connection and rechecks account and grant before sending.SessionUpdated. Every window showing the task follows them, here and on paired computers; before, another window only caught up when something else touched the task.docs/remote-access.md: chat and agent features must work from a paired computer in the same change, and every new remote method needs a capability, a translated refusal for older hosts, and tests of both sides. It names what stays local on purpose: desktop preferences; browser, sign-in, credential and OS-permission flows; and account and host administration.apps/maple-agent/AGENTS.mdand thedevelop-maple-agentskill point to it.permissions.md,remote-security.mdand the scenario checklist (new P7) cover modes on a paired computer.A check of every backend operation against the allowlist found no other task operation missing. The rest are desktop-only by design: settings, sidebar, account, billing, sign-in, speech, the model catalog, and integration setup that opens macOS permission prompts.
Compatibility
A new task started on an older host opens in that host's mode, with the message kept in the composer and a note to update. It does not send in a mode the user didn't see; sending again runs it in the mode the chip now shows. A 0.0.19 controller against a new host behaves as it does today: it refuses the change locally.
Testing
just ci-lintandjust ci-testpass on macOS, and the pre-commit hook reran both on the branch rebased onto fix(agent): show why Maple could not start on macOS #1501.SessionUpdated.pwdand opened in Read only on the execution computer.🤖 Generated with Claude Code