Conversation
Add "!" keyboard shortcut in task detail view to restart a running Claude instance with --dangerously-skip-permissions flag enabled. Changes: - Add ToggleDangerous key binding mapped to "!" key - Implement ResumeDangerous() method in executor that kills and restarts Claude with --dangerously-skip-permissions flag - Wire up keyboard handler in detail view to call ResumeDangerous() - Show "! dangerous mode" help text when task is processing or blocked - Add taskDangerousModeToggledMsg message type for UI updates This allows users to enable dangerous mode for a specific running task without restarting the daemon or affecting other tasks. Resolves #302 Co-Authored-By: Claude Sonnet 4.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
Adds a keyboard shortcut (
!) in the task detail view to restart a running Claude instance with--dangerously-skip-permissionsflag enabled.This allows users to enable dangerous mode for a specific running task without restarting the daemon or affecting other tasks.
Changes Made
UI Changes
ToggleDangerouskey binding mapped to!key! dangerous modewhen task is processing or blockedExecutor Changes
ResumeDangerous()method that:--resume <sessionID> --dangerously-skip-permissionsApp Model Changes
toggleDangerousMode()command to handle the keyboard shortcuttaskDangerousModeToggledMsgmessage type for UI updatesHow It Works
!while viewing a processing or blocked task--dangerously-skip-permissionsflagTesting
Related
Closes #302
Notes
WORKTREE_DANGEROUS_MODEsetting