Composer: let a pending question fold instead of only closing

未關閉
#293 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
62/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
android, kotlin
領域
mobile-dev

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
Kotlin
星號
146
分支
35
平均合併
7 小時 41 分鐘
30 天內合併 PR
221

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

anomalyco/opencode-android 的其他 Issue

查看 anomalyco/opencode-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。