Skip to content

feat(web): inspect prompt and tool-call trajectories #446

Closed

Description

@tt-a1i

Add an inspectable trajectory view inspired by DeepSeek Harness ui-trajectory to the existing React workbench (#76, #346).

First slice: an ordered graph/ledger of persisted user prompts, assistant messages, tool calls and tool results; selecting a node shows bounded input/output evidence. Preserve repeated prompts and calls, match results by unambiguous tool identity, disclose omitted history and incomplete pairs. Keep the existing chat view and session/runtime ownership. No polling or model-facing changes.

Evidence boundary: Pi 0.85.1 Session records are not the final provider request. before_provider_request handlers may replace payloads after an observer; before_agent_start/context are earlier projections. Do not present reconstructed chat as final system prompt/tool schemas/request payload, or entry timestamps as execution durations. Accurate request capture and timing need a subsequent native-seam design.

Reference: https://github.com/deepseek-ai/deepseek-harness/blob/d347e703908d0406b7a7ef80e3a0e594d86b2215/packages/client/ui-trajectory/README.md

Canonical investigation record will be docs/research/WEB_TRAJECTORY_2026-09-07.md in the implementation PR.

Activity

  1. tt-a1i commented on Sep 7, 2026

    @tt-a1i
    CollaboratorAuthor

    第一阶段已由 #447 合并到 main:可检查持久化用户 Prompt、助手消息、Tool Call 与结果的有界轨迹视图。按该阶段范围关闭。

    完整最终 Provider 请求捕获与权威执行耗时尚未实现,已拆为后续 #454;其中继续保留来源、身份、截断和不确定性边界,不把历史重建当成最终请求,也不把记录时间当成执行耗时。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions