Skip to content

fix(cli): support auto permissions when attaching - #48148

Open
thisisryanswift wants to merge 1 commit into
anomalyco:devfrom
thisisryanswift:attach-auto
Open

fix(cli): support auto permissions when attaching#48148
thisisryanswift wants to merge 1 commit into
anomalyco:devfrom
thisisryanswift:attach-auto

Conversation

@thisisryanswift

Copy link
Copy Markdown

Issue for this PR

Closes #48142

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

opencode attach rejected the permission auto-approval flags supported by the regular TUI. This registers the same visible --auto flag 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.ts
  • bun test test/cli/help/help-snapshots.test.ts
  • bun typecheck in packages/opencode
  • Pre-push bun turbo typecheck (30 packages)
  • bunx prettier --check on changed TypeScript files

Screenshots / recordings

Not applicable; this changes CLI startup behavior.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
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 opencode attach command.

No duplicate PRs found

@thisisryanswift
thisisryanswift marked this pull request as ready for review September 9, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

attach does not accept --auto permission mode

1 participant