Composer: let a pending question fold instead of only closing

Abierto
#293 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
62/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, kotlin
Área
mobile-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Kotlin
Estrellas
146
Forks
35
Merge medio
7 h 41 min
PR fusionados (30 d)
221

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de anomalyco/opencode-android

Todos los issues de anomalyco/opencode-android

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.