fix(cli): support auto permissions when attaching - #48148
Open
thisisryanswift wants to merge 1 commit into
Open
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found no other open PRs that are duplicates of PR #48148. The search results show:
These are related features in the permission system but are distinct from the current PR's specific scope of supporting auto permissions flags in the No duplicate PRs found |
thisisryanswift
marked this pull request as ready for review
September 9, 2026 12:41
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 #48142
Type of change
What does this PR do?
opencode attachrejected the permission auto-approval flags supported by the regular TUI. This registers the same visible--autoflag and hidden compatibility aliases for attach, then forwards the selected mode through both the full and mini TUI paths.How did you verify your code works?
bun test test/cli/tui/attach.test.ts test/cli/tui/thread.test.tsbun test test/cli/help/help-snapshots.test.tsbun typecheckinpackages/opencodebun turbo typecheck(30 packages)bunx prettier --checkon changed TypeScript filesScreenshots / recordings
Not applicable; this changes CLI startup behavior.
Checklist