feat: add TUI dialog for interactive YOLO mode selection#1
Open
hunterd wants to merge 2 commits into
Open
Conversation
Adds TUI plugin for interactive mode selection (Off/On/Aggressive) via /yolo slash command. Shows current status with ● indicator. - New: tui.ts with DialogSelect + sync .yolo.json read/write - package.json: added ./tui export subpath - tsconfig.json: include tui.ts
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 an interactive TUI dialog that opens when typing
/yolowithout arguments, showing the current mode and letting the user switch between Off / On / Aggressive directly — without going through the agent.Changes
tui.ts— TUI plugin entry point (@frankhommers/opencode-yolo/tui):/yoloslash command viaapi.command.register().yolo.jsonsynchronously to determine the current modeDialogSelectwith the current mode pre-selected (● indicator).yolo.jsonon selection and closes the dialogpackage.json— Added"./tui"export subpathtsconfig.json— Addedtui.tsto the build include listREADME.md— Updated with TUI plugin install instructions, dialog screenshot, and development notesHow it looks
The active mode is shown in the dialog title (
YOLO Mode — Off/On/Aggressive) and marked with ● in the list with a "Currently active — …" description.Notes
fsAPIs (appropriate for the TUI rendering context)Closes #(add issue if any)