feat(opencode): add /yolo toggle for auto-approving permissions#27855
Open
salema97 wants to merge 1 commit into
Open
feat(opencode): add /yolo toggle for auto-approving permissions#27855salema97 wants to merge 1 commit into
salema97 wants to merge 1 commit into
Conversation
Adds a new /yolo slash command in TUI sessions that toggles auto-approval
of all permission requests without prompting the user.
Changes:
- TUI session commands: new /yolo slash command in command palette
- KV store: persists yolo_mode state across sessions
- TUI footer: shows 'YOLO' indicator in warning color when active
- TUI sidebar: shows 'YOLO MODE' badge above the version footer
- TUI sync: auto-replies permissions when kv.get('yolo_mode') is true
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate Found:
Why it may be related: This PR also implements a |
3 tasks
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.
Issue for this PR
Closes #
Type of change
What does this PR do?
Adds a new
/yoloslash command in the TUI session that toggles auto-approval of all permission requests without prompting the user. This is useful for power users who want to skip repetitive permission dialogs during a session while keeping the permission system intact.The implementation uses the existing KV store to persist the toggle state across the session, and auto-replies to
permission.askedevents when the mode is active.Changes:
/yoloslash command in the command palette (toggles on/off)yolo_modestate across the sessionYOLOindicator in warning color when activeYOLO MODEbadge above the version footerreply: "once"whenkv.get('yolo_mode')is trueHow did you verify your code works?
/yolocommand appears in the session command paletteScreenshots / recordings
N/A — TUI terminal UI, no graphical screenshots.
Checklist