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

Đang mở
#3,745 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@alan-bentley-pgh đang làm issue này rồi.

Từ ngày 20/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả


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)

Ngôn ngữ chính
Go
Star
4.5k
Fork
937
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
150

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của kagent-dev/kagent

Tất cả issue của kagent-dev/kagent

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.