Composer: let a pending question fold instead of only closing

Offen
#293 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
62/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
android, kotlin
Bereich
mobile-dev

Rechercherichtung

Start by finding the composable that renders the pending-question card in the transcript, and the permission-prompt card next to it that already folds — that pair is the model for this change. Hoist a fold state on the question card so folding keeps the pending request and any entered answer, then render the folded one-line form with the question text and an expand affordance. The ✕ path needs a confirmation step before it cancels. Done when folding and expanding round-trips without losing the request or typed answer, and cancelling only happens after confirming.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

When the agent asks a question, it shows up as a card in the transcript. The only control on that card is the ✕, and the ✕ cancels the request. There is no way to fold the card, read the agent's message above it, and then come back to answer. Permission prompts do fold, so the behaviour is inconsistent between the two.

Why it matters

I answer questions by voice. While the card is open, it and the keyboard take the bottom of the screen, and the text the question refers to is off-screen. The choice is between cancelling the question and answering blind.

What I'd like

  1. A fold control on the question card: folded, it becomes one line with the question text and an expand affordance.
  2. Folding must not cancel: the question stays pending, entered answers are kept, expanding restores them.
  3. ✕ keeps cancelling, but asks for confirmation first — it reads as "close this window" while it actually dismisses the agent's request.

Environment

  • OpenCode 0.8.0 (Google Play), Android 13 (MIUI 14.0.8), Redmi Note 10 Pro.
  • For comparison: in another Android client the same panel has a chevron, folds down, and unfolds without losing the request.
Vorherrschende Sprache
Kotlin
Sterne
146
Forks
35
Ø Merge
7 Std. 41 Min.
Gemergte PRs (30 T.)
221

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus anomalyco/opencode-android

Alle Issues in anomalyco/opencode-android

Ähnliche Issues

Weitere Issues zu Kotlin

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.