github / github/copilot-cli

Any way for an extension to render a live panel in the terminal?

未關閉
#3,979 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:plugins area:terminal-rendering
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

An extension has no way to render a live, refreshing panel in the terminal (e.g. a sub-agent progress dashboard) — `session.log` only appends scrolling text.

### Proposed solution

I'm building a CLI extension that runs a bunch of sub-agents in parallel and I want to show progress while they run. Something like:

```
my-run · explore · 3/5 done · 02:14
✓ auth-coverage done 45s 12.3K tok
✓ input-validation done 38s 10.1K tok
⠿ rate-limiting streaming 41s 3.2KB 8.7K tok
⠿ error-handling tool 41s (web_fetch)
· cors-policy pending 0s
```

ideally refreshing in place.

As far as I can tell there's no way to do this from an extension right now. The only output options are `session.log(..., { ephemeral: true })`, which is just scrolling text with no fixed region, and the modal `session.ui.*` dialogs. Since stdout is the JSON-RPC channel I can't draw to the terminal myself either.

I have all the data on the extension side (state, elapsed, tokens, current tool per agent) — I just have no surface to render it on.

Would you consider an API for extensions to render a panel like this in the TUI?
Even a read-only snapshot (no keyboard, no live push) would be enough to start — the extension hands the host some structured rows and the host draws them. Live updates could come later.

`@github/copilot` ~1.0.65, extension via `@github/copilot-sdk/extension`.

### Example prompts or workflows

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

先檢視透過 @github/copilot-sdk/extension 暴露的擴充功能 API,以及 session.log 和 session.ui.* 如何在 TUI 中呈現。先定義最小的結構化列快照 API,接著確認擴充功能能否提供所要求的資料,以及 host 是否會將其渲染為固定終端面板;即時重新整理與互動明確屬於後續考量事項。

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

評估

技術堆疊
github
領域
cli, developer-experience
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
冷清
描述清晰度
基本清楚
新手友好度
35/100

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

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