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 摘要。