Repository navigation
fix: Remove the window from the Agents pane title - #2110
Conversation
The Agents pane title named the window ("agents · 7 days"). The COST
column header ("COST 7 DAYS") and the footer hint ("[w] 7 days") also
name it, so the title copy was a repeat. The comment that gave the
reason was out of date: the pane got its own `w` window cycle in
a066960.
The title now reads "agents", then the agent and project scope.
TestAgentsPane_WCyclesOneWindowForRowsHeaderAndDrawer checks that the
COST header names the window and the title does not.
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
clawgenti
left a comment
There was a problem hiding this comment.
Summary
This removes the window from the Agents pane title, so the title now reads agentop · <endpoint> · agents and then the scope. The window still shows in the COST column header (agentsCostTitle) and in the footer's [w] hint. The out-of-date comment goes too. I traced the production path: an agentRowsLoadedMsg for the pane's window sets agentsRowsWindow and calls rebuildAgentsTable() while the pane is on screen, so the COST header follows w with the same one-round-trip lag the old title had. The test calls rebuildAgentsTable() by hand, which matches what that handler does. I found nothing blocking.
Verified locally at c142188 (cmd/agentop, GOWORK=off):
go vet ./tui/: cleango test -short ./tui/: pass- I put the base
app.goback with the old title:TestAgentsPane_WCyclesOneWindowForRowsHeaderAndDrawerfails onagents · today, so the test guards the change as the PR says. - No other test, README or doc refers to the old
agents · <window>title.
Author: huang195 (MEMBER — maintainer)
Areas reviewed: Go (TUI + test)
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: DCO and CodeRabbit pass. The GitHub Actions jobs were still queued (no runner picked them up) when I posted, so the local vet and test results above stand in for them.
PR #2110 removed the window from the Agents pane title. It did not regenerate docs/assets/agentop/agents.svg. TestCommittedStillsAreCurrent fails on main since b8cffb7. This commit runs `go -C scripts/readme-demo run . -stills` again. Only agents.svg changes. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
Problem
The Agents pane shows its window three times:
The title copy is a repeat. Its comment said the pane had no window cycle of its own. That stopped being true in a066960, which added
w.Change
cmd/agentop/tui/app.go: the Agents title is nowagentop … · agents, then the agent and project scope (· agent=bob).TestAgentsPane_WCyclesOneWindowForRowsHeaderAndDrawer(renamed from…RowsTitleAndDrawer): it checks that the COST header names the window and that the title does not. I put the old title back to make sure the test fails on it.The spend band on the top edge does not change.
Tests
GOWORK=off go vet ./tui/andgo test -short ./tui/incmd/agentop: pass.Assisted-By: Claude (Anthropic AI) [email protected]
Summary by CodeRabbit