[FEATURE] Load the agent chat page's chat titles in one request

オープン
#3,745 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@alan-bentley-pgh がすでに取り組んでいます。

2026年11月20日 から。

評価

この issue はまだ評価されていません。

説明


Written by 🤖 (start)

📋 Prerequisites
📝 Feature Summary

Load the agent chat page, with every chat's title, in one request.

❓ Problem Statement / Motivation

The chat list on the agent chat page needs a title for every row. Only chats with a stored name get one from the list call. For every other chat, the UI reads the whole transcript with one A2A ListTasks call per chat, just to find the first user message (ui/src/api/hooks/useConversationTitles.ts).

So a list of N unnamed chats costs N + 1 requests, each one paging a full transcript. The UI caps this at 30 chats (TITLE_BUDGET). Chats past that show "Untitled · id", and the list fills in row by row as the reads land.

#3646 stores a generated title in name for chats on the Go ADK, which covers most new chats there. Chats on the Codex and Claude harnesses, chats created before it, and chats whose title generation failed would still need the per-chat read.

The same limits shape the list itself. It loads every chat up front, and search only filters chats already on the page, so an agent with many chats either loads slowly or can't find older ones.

💡 Proposed Solution
  • The agent chat page gets everything its chat list needs, including every chat's title, from one request, whatever harness a chat runs on.
  • The list loads more chats as the reader scrolls, rather than all at once.
  • Search covers every chat, including ones not loaded yet. It still filters the loaded chats straight away, so it feels instant while the wider search runs.

Where titles come from, and how paging and search work, is open for discussion.

🎯 Affected Service(s)

Controller, UI Service


Written by 🤖 (end)

主要言語
Go
スター
4.5k
フォーク
937
平均マージ
1日 10時間
マージ済み PR(30日)
150

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kagent-dev/kagent のほかの issue

kagent-dev/kagent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。