Skip to content

Fix readonly - #487

Open
quazgar wants to merge 2 commits into
agentclientprotocol:mainfrom
quazgar:fix-readonly
Open

Fix readonly#487
quazgar wants to merge 2 commits into
agentclientprotocol:mainfrom
quazgar:fix-readonly

Conversation

@quazgar

@quazgar quazgar commented Sep 9, 2026

Copy link
Copy Markdown

Attempting a fix for #450, reintroducing read-only mode.

Written by Copilot, human-reviewed.

Renames the existing ReadOnly mode to EditInternal to better reflect its actual permissions
and clarify the mode's behavior in the UI.

Changes:
- Rename AgentMode.ReadOnly to AgentMode.EditInternal
- Change mode ID from "read-only" to "edit-internal"
- Update display name to "Ask for approval"
- Update description to "Edit workspace files, ask for approval to edit external files or use the internet"
- Update AgentMode.all() to use EditInternal

This is a refactoring of the existing mode with no functional changes - it still uses the
same workspace-write sandbox policy and permissions. The name and description are now
clearer about what the mode actually does.

Addresses part of agentclientprotocol#450
Adds a new read-only mode that provides true read-only access, preventing any file modifications
without explicit user approval.

Changes:
- Add AgentMode.ReadOnly: read-only sandbox (type: "readOnly", networkAccess: false)
- Change name to "Read-only"
- Change description to "Inspect only, ask for approval to modify any files"
- Update AgentMode.all() to include ReadOnly first

This provides users with a true inspection mode as requested in agentclientprotocol#450. The three approval-based modes are now:
1. Read-only: inspect only, ask for approval on any modification
2. Ask for approval: edit workspace files, ask for approval on external changes
3. Approve for me: auto-approve safe operations
4. Full access: no restrictions

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant