Skip to content

fix: Remove the window from the Agents pane title - #2110

Merged
huang195 merged 1 commit into
rossoctl:mainfrom
huang195:fix/agents-title-window
Nov 24, 2026
Merged

huang195 merged 1 commit into
rossoctl:mainfrom
huang195:fix/agents-title-window

Conversation

@huang195

@huang195 huang195 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Problem

The Agents pane shows its window three times:

agentop … · agents · 7 days · agent=bob        <- title
│ AGENT   SESSIONS  LAST SEEN  COST 7 DAYS …   <- column header
  … [w] 7 days …                               <- footer

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 now agentop … · 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/ and go test -short ./tui/ in cmd/agentop: pass.

Assisted-By: Claude (Anthropic AI) [email protected]

Summary by CodeRabbit

  • UI Improvements
    • The Agents pane title now stays focused on the pane name, while the cost column header and footer hint show the selected time window.
    • The cost header displays “COST TODAY” initially and updates to “COST 7 DAYS” when switching windows.

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]>
@huang195
huang195 requested a review from a team as a code owner November 24, 2026 13:53
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Agents pane title no longer includes the selected cost window. The updated test checks that the COST header identifies the selected window before and after pressing w.

Changes: Agents pane window label

Layer / File(s) Summary
Title and COST header window labels
cmd/agentop/tui/app.go, cmd/agentop/tui/agents_cursor_scope_test.go
The title omits the selected window. The test checks that the COST header identifies today initially and 7 days after pressing w.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Possibly related PRs

  • rossoctl/cortex#1826: Adds project scope to the Agents pane and updates its title format, which this change also edits.
  • rossoctl/cortex#1531: Adds the selected window to the Agents pane COST header, which this change tests.

Suggested reviewers: esnible, evaline-ju

Merge Risk: Minimal · up to c1421

This is a small cosmetic title change with updated test coverage. The window is still shown in the COST header, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix: Remove the window from the Agents pane title" matches the main change. The app.go change removes the window label from the Agents pane title, which now ends at "agents". The cost colum…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix: Remove the window from the Agents pane title" matches the main change. The app.go change removes the window label from the Agents pane title, which now ends at "agents". The cost column header and footer hint still identify the window. The test change checks the COST header for the window and checks that the title omits it. The title is specific, short, and uses a conventional prefix.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd64852c-7f7c-4b44-a56b-fc30685f2fee
Commits

Reviewing files that changed from the base of the PR and between e2645ea and c142188.

Files selected for processing: 2

  • cmd/agentop/tui/agents_cursor_scope_test.go
  • cmd/agentop/tui/app.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/: clean
  • go test -short ./tui/: pass
  • I put the base app.go back with the old title: TestAgentsPane_WCyclesOneWindowForRowsHeaderAndDrawer fails on agents · 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.

@github-actions github-actions Bot added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 24, 2026
@huang195
huang195 merged commit b8cffb7 into rossoctl:main Nov 24, 2026
60 of 61 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 24, 2026
@huang195
huang195 deleted the fix/agents-title-window branch November 24, 2026 19:16
huang195 added a commit that referenced this pull request Nov 24, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants