desktop: permission dialog expands to full command length instead of scrolling
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start by locating the shared permission prompt component used by the desktop app; the issue does not name its file or a test. Reproduce with a long multi-line shell command and inspect how the command content affects the dialog height. Done means the dialog has a bounded height, the command area scrolls, and the approve and reject buttons remain reachable.
Written by the indexing model from the issue text.
Description
Summary
In the desktop app the permission request dialog expands to fit the whole command. A long multi-line shell command makes the dialog very tall, up to the full screen height. It should have a bounded height with a scrollable area.
Environment
- opencode version: 2.0.32
- OS: macOS 13.7.8 (Darwin 22.6.0, x86_64)
- Terminal: desktop app (not a terminal session)
- Shell: /bin/zsh
- Install/channel: desktop, latest
- Active plugins: none configured (only one MCP server)
Reproduction
- Add an ask rule for shell commands, e.g. a permission with resource * and effect ask.
- Ask the agent to run a long multi-line shell command (20 or more lines).
- The permission dialog appears and shows the entire command.
Expected Behavior
The dialog keeps a fixed maximum height and the command is shown in a scrollable area, so the approve and reject buttons stay reachable.
Actual Behavior
The dialog grows with the command length and takes the full height of the screen.
Additional Context
- Seen while approving multi-line shell commands from a Code Mode agent.
- Workaround: send shorter single-purpose commands.
- Frequency: every time a long command needs approval.
- The same dialog is used for other tools, so the fix likely belongs in the shared permission prompt component.
- Dominant language
- TypeScript
- Stars
- 215k
- Forks
- 28.9k
- Avg merge
- 6h 8m
- Merged PRs (30d)
- 411
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anomalyco/opencode
-
pending close triaging
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
anomalyco/opencode#57939 · 1 comment ·
Maintainers usually reply within 1 day
-
reproduced
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
anomalyco/opencode#57911 · 2 comments ·
Maintainers usually reply within 1 day
-
pending close triaging
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anomalyco/opencode#57907 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
anomalyco/opencode#57855 · 1 comment ·
Maintainers usually reply within 1 day
-
opencode api truncates large output when stdout is a pipe (un-awaited write before process.exit)Openpending close triaging
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anomalyco/opencode#57816 · 1 comment ·
Maintainers usually reply within 1 day
All issues in anomalyco/opencode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
maniator/verticopolis#1303 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
components-web-app/docs#297 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
appwrite/mcp-for-docs#23 · 1 comment ·
-
`@vanilla-extract/turbopack-plugin`: "getImageSize is not a function" with Next.js 16.4.x when a `.css.ts` file imports an imagePossibly taken @aevarOrigo claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vanilla-extract-css/vanilla-extract#1799 · 1 comment ·
-
native
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
prime-radiant-inc/evener#4839 ·
Maintainers usually reply within 1 day