makecindy / makecindy/cindy

feat: Background command cards: expand to show output/logs for all agents

Open
#925 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

# 「后台命令」卡片增加展示运行详情

**客户端版本**: 0.1.20
**反馈类型**: feature

---

## 使用场景

1. **排查卡住/失败的后台命令**:聊天里出现「后台命令 运行中」卡片,但任务挂住或失败时,无法从卡片里看到 stdout/stderr,只能猜原因。
2. **长时间轮询/后台任务**:例如 `Poll … for completion (round N)` 一类任务会跑很久,用户希望看到中间输出或进度,而不是只有「运行中」。

当前 UI(见附件截图)对 Claude Code / Codex 等后台命令都只展示:

Image

- 任务标题
- 「后台命令 运行中」状态
- 折叠/勾选控件

**没有可展开的运行详情**,无法查看命令输出或日志。

希望该能力覆盖 **Claude Code、Codex 以及所有走同一套后台命令 UI 的 Agent**,不限单一 Agent。

## 诉求

- 后台命令卡片可展开(点击/chevron),查看运行中或已完成的输出。
- 在运行时有数据时展示:stdout/stderr(实时或缓冲)、结束时的退出码/终态;若已有元信息可附带耗时、工作目录、完整命令等。
- 输出不可用时给出清晰空态,而不是点击无反应。
- 全 Agent 一致体验,避免只有某一端有详情。

## 建议方案

1. 复用现有后台命令卡片,增加可展开区域承载 output/log。
2. 运行中优先展示流式/轮询缓冲输出;结束后保留最终输出 + 退出状态。
3. 对 Claude Code 与 Codex(及其他同类 Agent)统一接入同一展示层。
4. 验收建议:
- 任意后台命令卡片可展开查看输出
- 运行中有可用输出时可持续更新
- 完成后仍可回看终态输出
- Claude Code 与 Codex 均可用
- 无输出时有明确空态

## 补充

- 类型:功能建议(非回归 bug)
- 截图:两条后台命令同时为「运行中」的紧凑卡片,无法看详情
- 环境信息由系统自动附加,无需手填
---
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No source files, tests, or entry points are named in the issue. Start by locating the shared background-command card and the data paths used by Claude Code and Codex, then trace how command output and exit status are retained. Done means every shared card can expand, update while running, show final output and status, and display a clear empty state when no output exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, react-native, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.