web: mobile permission card overflows and the approval buttons become unreachable
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 66/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Individua la scheda di richiesta dei permessi dell’interfaccia web e verifica come dispone il testo di comandi lunghi e i pulsanti Allow once, Allow always e Reject in una viewport di 375×667. Riproduci il caso con un comando su più righe, poi verifica che l’area del comando possa scorrere e che tutti i pulsanti di approvazione restino raggiungibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
On a phone-sized viewport the web UI's permission request card grows with the command it shows. A long or multi-line command pushes the Allow once / Allow always / Reject buttons past the bottom of the screen, and the card does not scroll, so the request cannot be answered from the client.
Environment
- opencode version: 2.1.1
- OS: Windows_NT 10.0.26300 (win32 x64)
- Terminal: Unavailable: terminal environment variables are not set
- Shell: C:\WINDOWS\system32\cmd.exe
- Install/channel: latest (npm global
@opencode/[email protected]) - Active plugins:
free_models_drift_check.js(local plugin in~/.config/opencode/plugins)
Reproduction
-
Run the v2 server and open the web UI in a phone-sized viewport (iPhone SE, 375x667 CSS pixels), or in a desktop browser in device mode.
-
Add a permission rule that asks, in
opencode.jsonc:{ "permissions": [{ "action": "shell", "resource": "*", "effect": "ask" }] } -
Make the agent run a command that spans several lines, for example a PowerShell pipeline or a multi-line
python -c. -
The permission card shows the whole command, the card ends up taller than the viewport, and the buttons are below the fold with no way to scroll to them.
Expected Behavior
The command text should be clamped (for example a maximum height) and scrollable, so the approval buttons always stay reachable regardless of the command length.
Actual Behavior
The card overflows the viewport, the buttons are cut off and cannot be tapped, and the client is left with a pending permission request it cannot answer.
Additional Context
- The server side works correctly: the request is created, the
permission.askedevent is delivered, and the reply is applied. Verified by creating a request through the API and replying through the API. - Reproducible every time on a phone-sized viewport with a long command, fine on a desktop viewport, so this looks like a small-screen layout problem.
- The same card carries the "always" reply, which stores a durable project-scoped allow rule, so being unable to answer also blocks saving approvals.
- Workaround used for now: keep approval-triggering commands on one short line (write a script file, then run it with a one-line command).
- Related: the request list endpoint
/api/permission/requestis location-scoped, so a client has to pass the session location to see pending requests.
- Lingua principale
- TypeScript
- Stelle
- 215k
- Fork
- 28.9k
- Merge medio
- 8h 11m
- PR unite (30g)
- 365
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di anomalyco/opencode
-
reproduced
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
anomalyco/opencode#57711 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anomalyco/opencode#57698 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
anomalyco/opencode#57579 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anomalyco/opencode#57536 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
fs: /cd and file pickers fail on FreeBSD/ZFS — `stat` throws "dev exceeds the safe integer range" (fixed in @effect/platform-node-shared 4.0.5)Forse già presa @argszero l’ha presa 1 giorno fa. Apertareproduced
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
anomalyco/opencode#57518 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di anomalyco/opencode
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
zts212653/clowder-ai#1678 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
Progressive-Victory/the-website#680 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100