emdash icon indicating copy to clipboard operation
emdash copied to clipboard

[feat]: Allow enabling “skip permissions for file operations” even after session start

Open maxonary opened this issue 7 months ago • 8 comments

Feature Summary

Allow enabling “skip permissions for file operations” (full allowance mode) after Claude is already running, without requiring a restart or initial setup configuration.

I want a maximum vibe coding ability toggle (even if I forget setting it initially)

Problem or Use Case

Currently, if this mode is not enabled at project setup, users must restart or reconfigure the session to grant full file access. This interrupts workflows, especially when starting cautiously and later needing broader permissions.

Proposed Solution

Provide a way to enable “skip permissions for file operations” during an active session, ideally via a command, toggle, or settings option.

Alternatives Considered

Restarting the session with the correct configuration, but this breaks context and slows down iteration.

Additional Context

This would support a more flexible workflow: starting with restricted permissions and escalating only when needed, while keeping user intent explicit.

maxonary avatar Apr 06 '26 06:04 maxonary

Hi, I'd like to take a stab at this if it's not already being worked on! My proposed approach: when a Claude Code task is already running without --dangerously-skip-permissions, surface a "Enable Skip Permissions" button in the task UI. Clicking it would stop the current PTY, re-spawn it with the flag added, and use Claude Code's session resume flag (-c) to continue from where it left off — so context isn't lost. This avoids trying to mutate a live process and stays consistent with how Emdash already handles agent spawning. Would also only show for Claude Code tasks since the flag is Claude-specific. Happy to hear if you had a different design in mind before I start. Let me know!

Fizza-Mukhtar avatar Apr 06 '26 14:04 Fizza-Mukhtar

I'd rather use a toggle for that. Sometimes you know it will do the right thing, but sometimes you'd want to interrupt it

maxonary avatar Apr 06 '26 15:04 maxonary

Image

There is this button already when in "bypass permissions" mode. You just have to be able to toggle it

maxonary avatar Apr 07 '26 01:04 maxonary

@maxonary still relevant to you, no? Also in v1

arnestrickmann avatar May 01 '26 09:05 arnestrickmann

Yes pls. I don't want to get asked for permission every time

maxonary avatar May 01 '26 15:05 maxonary

https://github.com/user-attachments/assets/7a484daa-a0fd-424b-acf3-20a7d90f76d1

STILL VERY BUGGY but the idea is there haha :D

janburzinski avatar May 01 '26 16:05 janburzinski

this is the permission-escalation-mid-session pattern and it shows up in every coding agent harness eventually. the reason it's not a simple toggle is that the permission scope is usually baked into the subprocess env or the MCP server handshake at spawn time, not re-read per tool call. flipping it live means either re-spawning the runner (kills context) or piping a signal into the existing process and trusting it to honor the new mode. cursor handled this by making the toggle a soft prompt-time check rather than a hard process boundary. worth checking which layer enforces the gate before designing the UI, otherwise the toggle ships and silently does nothing until the next restart.

m13v avatar May 01 '26 16:05 m13v

we just respawn the session with --resume and attach the right flag

janburzinski avatar May 01 '26 16:05 janburzinski