Skip to content

[Copilot UI] Add a persistent Tool Activity timeline for searches, data calls, and research steps #33

Closed

Description

@helsome

Background

#27 会定义结构化 streaming event,但用户仍需要一个稳定的产品界面理解 Copilot 正在做什么:查了哪些金融数据、搜索了哪些来源、调用了哪些工具、哪些步骤失败/重试、最终哪些结果被回答采用。

这不是展示隐藏 chain-of-thought,而是展示 可观察的工具活动与任务阶段。

Related: #14 #19 #27 #29 #30

Requirements

Tool Activity model

基于 #27 的 typed events 构建 UI timeline/card,至少展示:

  • tool/search/data-source name;
  • running / succeeded / failed / cancelled 状态;
  • started_at / duration;
  • 安全、可读的参数摘要;
  • 结果摘要 / returned item count;
  • retry / fallback 信息;
  • evidence/source ids(产生证据时);
  • error reason(安全处理后)。

UX

  • 默认保持简洁,不把内部参数 JSON 全铺开;
  • 支持展开查看更详细的安全信息;
  • 同一 tool call 在 streaming 更新中使用稳定 card identity,不重复插入;
  • 多步 research 可按阶段或父子关系组织;
  • 对长任务可看到当前 activity 和已完成 activity;
  • failed/retried/fallback 状态不能被隐藏成普通成功。

Security

Persistence

完成后的 conversation reload 仍能恢复对应 Tool Activity,而不是只存在于实时 stream。

Acceptance Criteria

  • search、financial data call、普通 tool call 至少三类 activity 有稳定 UI。
  • running → success/failure/cancelled 在同一卡片上更新,不重复生成。
  • retry/fallback 能被用户识别。
  • tool 产生的 evidence 可以进入 [Copilot Evidence] Add unified inline citations and a source inspector #30 Source Inspector。
  • conversation reload 后 activity timeline 仍存在。
  • UI 不展示 CoT,canary secret 不泄漏。
  • PR 必须真实运行一次包含 >=3 个不同工具/数据源调用的 Copilot/Deep Research 任务,并附完整 Tool Activity 录屏。

Non-goals

Activity

  1. shi-felix commented on Sep 11, 2026

    @shi-felix
    Collaborator

    Hi, I'd like to take this one. I'm already implementing #27 (the structured streaming event protocol), and this issue is the natural downstream consumer of those typed events — I can build the Tool Activity timeline directly on top of the \ ool_started\ / \ ool_progress\ / \ ool_result\ + \status\ events being defined there.

    My plan:

    1. Tool Activity model: derive a per-call activity record from the [Copilot] Define a structured streaming event protocol with cancel and reconnect #27 typed events, keyed by stable \callId, covering search / financial data / plain tool calls with status transitions (running -> succeeded/failed/cancelled), \started_at/\duration, and retry/fallback markers.
    2. Stable cards: one card per \callId\ that updates in place during streaming — never re-inserted, no duplicate identity (mirrors [Copilot] Define a structured streaming event protocol with cancel and reconnect #27's idempotency on runId+sequence).
    3. Persistent timeline: persist the activity events along with the run so the timeline survives conversation reload, not just live stream.
    4. Security ([Privacy] Centralize redaction and data minimization for logs, diagnostics, traces, and eval artifacts #19 + [Copilot UI] Add a persistent Tool Activity timeline for searches, data calls, and research steps #33): \ ool\ args/results go through redaction before reaching the UI; no credentials/Authorization headers; no hidden chain-of-thought; failed/retried/fallback states stay visible and canary-safe.

    Open question for reviewers: should the persisted Tool Activity reuse the same event log as #27's reconnect/resume, or be written independently to the run manifest? I'll follow the existing kernel/run-manager patterns and can adapt to feedback.

  2. added
    claimed
    on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

claimed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions