mini TUI: show live activity while thinking, using tools, or waiting on task child sessions
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- cli
Hướng nghiên cứu
Start from the opencode mini TUI's footer/status-bar rendering and the session-status source it reads, then trace how a task child session (ses_…) is recorded so the parent pane can see descendant status. Confirm the scope with a maintainer first: the issue bundles phase display, an inline tool ticker, a subagents strip, and child-session navigation, and overlaps #65057 and #57097. Done looks like a opencode mini --agent orchestrator run showing a phase (thinking/tool:<name>/task:<agent>), a tool line, and the child session id while a task runs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
In opencode mini (terminal TUI, often embedded in cmux), the parent session frequently shows no visible progress for long stretches: prompt + block cursor, status bar only (agent + model + context %). Users cannot tell whether the model is thinking, calling a tool, or waiting on a task child session that runs elsewhere.
This is especially painful for orchestrator → Task → specialist flows (e.g. developer), where the parent is intentionally quiet but the UI offers no phase indicator, no inline tool ticker, and no link to the active child ses_….
Related issues (overlap, not duplicate):
- #65057 — parent session looks idle while subagent still running (desktop)
- #57097 — bring subagents back to session sidebar (TUI + desktop)
- #6191 — subagent session not in sidebar (historical)
Environment
- OpenCode: 2.3.x (
opencode mini) - Host: cmux 0.65.x (Ghostty surface) on macOS
- Pattern: custom
orchestratoragent withtaskallow-list fordeveloper,code-reviewer, etc.
Expected behavior
While a turn is active, mini should always expose something observable:
- Phase in the status/footer:
thinking|tool:<name>|task:<agent>|waiting_permission|idle - Inline tool activity (compact cards or one-line ticker), including when the parent is waiting on a child
- When
taskspawns a child: show child session id (ses_…) with a keybind or hint to open/list (opencode session list/ switch session) - Elapsed time since last event (helps distinguish slow model vs wedged permission
ask)
Optional: mirror last N tool events from child into parent as read-only feed (collapsed).
Actual behavior
- Long gaps with no streamed output and no tool lines (large context makes “time to first token” long).
- Footer shows parent agent name only, not the active subagent or tool.
- After
task, work continues in a child session with no parent-pane visibility; users assume the session is stuck. - Permission prompts on subagents can wedge headless terminals with no obvious UI.
Reproduction
- Configure a primary agent with
taskallowed for a subagent (e.g.developer). opencode mini --agent orchestratorin a terminal-only surface (cmux or plain).- Ask for work that delegates via
task(or resume with a large context thread). - Observe: parent pane static for minutes; child may be running in another session.
Proposed direction (OpenCode-owned)
Prioritize mini first (cmux and plain SSH), reuse session/subagent data already in the local DB:
- Status bar phase driven by session + descendant status (not only parent
idle) - Subagents strip in mini (may share implementation with #57097)
- Stream tool_start / tool_end to TUI even before assistant text tokens
Additional context
Downstream users work around this with opencode session list, second-pane log tailing, or avoiding task for tool-heavy work (build single thread). A first-class mini indicator would remove the need for those hacks.
Happy to test nightlies or a TUI plugin hook if there is an interim API.
- Ngôn ngữ chính
- TypeScript
- Star
- 227k
- Fork
- 30.7k
- Merge trung bình
- 3 giờ 57 phút
- Pull request đã merge (30 ngày)
- 484
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của anomalyco/opencode
-
[Site] Active section detection should respect scroll-margin-topCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea/web reproduced type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
anomalyco/opencode#65384 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/cli type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#65379 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursĐang mởarea/core platform/linux type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anomalyco/opencode#65254 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
inference/go type/feature
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
anomalyco/opencode#65148 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/providers type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#64845 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anomalyco/opencode
Issue tương tự
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcatalog provider provider-compatibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
lidge-jun/opencodex#9037 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Project submission: xmcp DocsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
Maintainer thường phản hồi trong vòng 1 ngày
-
effort:S P3 refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nightscout/nocturne#3735 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
Maintainer thường phản hồi trong vòng 2 ngày