feature: agentop observe — search user prompts and agent responses across a session's events

未关闭
#1,680 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@huang195 已经在做这个了。

开始于 2026年11月7日。

  • #1713 来自 @huang195 —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

enhancement ux

Problem

In agentop observe, / searches only what a pane displays. On the events pane that's the table columns (host, method, plugin, and so on), not what the user typed or what the agent answered. Message text is searched only inside an event's detail, after you open it. There's no way to find the turn that contained a given prompt or reply without opening events one by one.

This was deliberate (#1339, and the README note on ?view=summary): the events list fetches summaries without conversation bodies, which makes sessions open about 163x faster.

Proposal

Add a way to search the conversation text of a session (user prompts and agent responses, maybe tool inputs/outputs) and land on the matching event.

Possible shapes:

  • A separate key on the events pane that searches message bodies. The proxy could answer it server-side, for example GET /v1/sessions/{id}/events?q=… returning matching seqs, so the list keeps fetching summaries.
  • The same search across sessions on the sessions pane ("which session did I ask X in?").

Open questions:

  • Server-side search over in-memory and archived (on-disk) sessions, or client-side after fetching full events on demand?
  • What text counts: only the newest user message and the completion, or the whole request payload? Matching the whole history would hit every later turn.
  • How to mark matches in the table, since it doesn't render bodies.

Context

Requested in #cortex-community by @vinodmut (2026-11-06).

Where it lives

  • cmd/agentop/tui/search.go, search_surfaces.go, events_pane.go
  • the session events API (/v1/sessions/{id}/events) if the search runs in the proxy
  • cmd/agentop/README.md: the / row in Keybindings and the summary-view note

Assisted-By: Claude (Anthropic AI) [email protected]

主要语言
Go
星标
23
派生
44
平均合并
14 小时 38 分钟
30 天内合并 PR
254

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rossoctl/cortex 的其他 Issue

查看 rossoctl/cortex 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。