Skip to content

fix(core): run read-only shell commands without asking in edits mode - #264

Merged
its-janghoon merged 1 commit into
developfrom
fix/readonly-bash
Nov 16, 2026
Merged

its-janghoon merged 1 commit into
developfrom
fix/readonly-bash

Conversation

@its-janghoon

Copy link
Copy Markdown
Member

fix(core): run read-only shell commands without asking in edits mode

A device session in edits mode (수정 자동) asked for every bash call, so grep, cat, ls, git status
or sed -n waited for approval as 'something that can change or delete'. permission/readonly.ts
classifies a command as read-only only when every simple command in it is a known reader with
no writing flag and nothing writes through a redirection; those now run as file reads do.
Anything it does not understand still asks; a configured deny still wins.

A device session in edits mode (수정 자동) asked for every bash call, so grep, cat, ls, git status
or sed -n waited for approval as 'something that can change or delete'. permission/readonly.ts
classifies a command as read-only only when every simple command in it is a known reader with
no writing flag and nothing writes through a redirection; those now run as file reads do.
Anything it does not understand still asks; a configured deny still wins.
@its-janghoon
its-janghoon merged commit f92ddfd into develop Nov 16, 2026
12 checks passed
@its-janghoon
its-janghoon deleted the fix/readonly-bash branch November 16, 2026 13:46
@its-janghoon its-janghoon mentioned this pull request Nov 16, 2026
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