Skip to content

app: say an agent's live line as its turn moves to each call - #2068

Merged
santoshkumarradha merged 8 commits into
app/v3from
lane/engine-liveline
Nov 3, 2026
Merged

santoshkumarradha merged 8 commits into
app/v3from
lane/engine-liveline

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

What

An agent's line (the call its running turn is on) is now said again with agent.changed as the turn moves to each call. Before, a.step changed on every EventToolBegin but nothing emitted it, so a window kept whatever line the last road said (usually none) for the whole turn.

How

  • cmd/codeaf/appliveline.go: stepMoved sets the step and says the agent at most once per appLineEvery (1 s) per agent. A newer line inside the interval waits for one trailing flush, so the newest line is always the last one said. lineSettledLocked drops a pending flush when the turn ends, because the turn's own end already says the agent with no line.
  • cmd/codeaf/app.go: the tool-begin case calls stepMoved, and the turn end calls lineSettledLocked. There is one new field (lineSays).
  • The line is the same tui3.ToolTitle the call's turn.tool row carries. It reports only what the agent did, never a guess at intent. It does not depend on any tool's name.

Tests

  • TestAppLiveLineMovesWithTheTurnsCalls: a scripted turn's call reaches agent.changed as line, with state working.
  • TestAppLiveLineIsRateLimitedAndEndsOnTheNewest: with a fake clock, the first line is said at once, lines in between are never said, the last is said after the interval, a call after the interval is said at once, and a line pending at turn end is dropped.

Focused tests pass. TestAppLiveLineMovesWithTheTurnsCalls fails without the change: no agent.changed carries the line.

The desk reads the line for the canvas manager's own live line.

agentfield-bot and others added 6 commits October 30, 2026 08:55
The line (the call the turn is on) was set on each new call but never
said, so a window kept a stale line for the whole turn. Each new call is
now said with agent.changed, at most once a second per agent, the newest
always last; a line waiting when the turn ends is dropped.
agent.changed goes straight out while the turn's events go through their box,
so where it lands among them is not part of the order. The first call's live
line is asserted on its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 2, 2026 17:37
@santoshkumarradha
santoshkumarradha merged commit 98f007d into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the lane/engine-liveline branch November 3, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants