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

Aperta
#3,745 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@alan-bentley-pgh ci sta già lavorando.

Dal 20/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione


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)

Lingua principale
Go
Stelle
4.5k
Fork
937
Merge medio
1g 10h
PR unite (30g)
150

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kagent-dev/kagent

Tutte le issue di kagent-dev/kagent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.