LiveAgent icon indicating copy to clipboard operation
LiveAgent copied to clipboard

Sessions run in kn don't show up or update in LiveAgent until long after the turn

Open xiaozhou26 opened this issue 3 weeks ago • 0 comments

Problem

When a turn starts in the kn TUI on a session that shares LiveAgent's data root, LiveAgent shows nothing until well after the turn has finished:

  • the session shows up in the sidebar 15–30 s after the turn ends, never while it runs;
  • there's no running indicator;
  • if the chat is already open, it keeps showing the old transcript even after the turn ends, because re-opening the warm conversation is a cache hit;
  • the composer stays enabled, so a second turn can be started on a session that kn is still writing to.

The backend side, which covers discovery, the run lease and the external_run summary field, is tracked in Stack-Cairn/K-brain#191.

Expected

  • A session started in kn appears in the sidebar within about a second, with the running spinner.
  • The open chat follows the turn as kn checkpoints it.
  • The composer is locked with a clear hint while the turn runs elsewhere, and unlocks when it ends.

xiaozhou26 avatar Nov 10 '26 07:11 xiaozhou26