UAT: TUI PersonaBar missing session cost display — spec requires cost shown as right-aligned $secondary 70% segment #5066

Closed
opened 2026-04-09 00:53:47 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area: TUI — Persona System (PersonaBar)

Severity: Low (cost visibility missing)

What Was Tested

The PersonaBar layout as defined in the specification (§ PersonaBar).

Expected Behavior (from spec)

The PersonaBar shows 5 segments:

feature-dev │ claude-4-sonnet │ think: high │ 2 projects       │ $0.12
─────────── ─ ─────────────── ─ ─────────── ─ ──────────────── ─ ─────
persona       actor             preset        scope              cost
Segment Style Updates When
Persona name $text-primary on $primary 10% bg tab cycle
Actor name $text-secondary tab cycle
Preset label $text-warning (non-default) / $text-muted (default) ctrl+tab cycle
Scope indicator $text-muted Persona change or /scope:add/remove
Session cost $secondary 70%, right-aligned After each actor response

Actual Behavior (from code analysis)

The PersonaBar.set_content() in src/cleveragents/tui/widgets/persona_bar.py (lines 30-38):

def set_content(
    self,
    *,
    persona_name: str,
    actor_name: str,
    preset_name: str,
    scope_text: str,
) -> None:
    self.update(f"{persona_name} | {actor_name} | {preset_name} | {scope_text}")

The method signature has no cost parameter. The _refresh_persona_bar() in app.py (lines 155-166) calls set_content() without a cost argument. Session cost is never displayed in the PersonaBar.

Steps to Reproduce

  1. Run agents tui
  2. Observe the PersonaBar at the bottom of the screen
  3. No cost figure (e.g., $0.12) appears in the bar

Code Location

  • src/cleveragents/tui/widgets/persona_bar.py lines 30-38 (missing cost parameter)
  • src/cleveragents/tui/app.py lines 155-166 (_refresh_persona_bar() — no cost passed)

Impact

Users cannot see the cumulative session cost in the PersonaBar. Cost tracking is a key feature for managing API spend during TUI sessions.


Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Bug Report **Feature Area:** TUI — Persona System (PersonaBar) **Severity:** Low (cost visibility missing) ### What Was Tested The PersonaBar layout as defined in the specification (§ PersonaBar). ### Expected Behavior (from spec) The PersonaBar shows 5 segments: ``` feature-dev │ claude-4-sonnet │ think: high │ 2 projects │ $0.12 ─────────── ─ ─────────────── ─ ─────────── ─ ──────────────── ─ ───── persona actor preset scope cost ``` | Segment | Style | Updates When | |---------|-------|--------------| | Persona name | `$text-primary` on `$primary 10%` bg | `tab` cycle | | Actor name | `$text-secondary` | `tab` cycle | | Preset label | `$text-warning` (non-default) / `$text-muted` (default) | `ctrl+tab` cycle | | Scope indicator | `$text-muted` | Persona change or `/scope:add/remove` | | **Session cost** | `$secondary 70%`, right-aligned | After each actor response | ### Actual Behavior (from code analysis) The `PersonaBar.set_content()` in `src/cleveragents/tui/widgets/persona_bar.py` (lines 30-38): ```python def set_content( self, *, persona_name: str, actor_name: str, preset_name: str, scope_text: str, ) -> None: self.update(f"{persona_name} | {actor_name} | {preset_name} | {scope_text}") ``` The method signature has no `cost` parameter. The `_refresh_persona_bar()` in `app.py` (lines 155-166) calls `set_content()` without a cost argument. Session cost is never displayed in the PersonaBar. ### Steps to Reproduce 1. Run `agents tui` 2. Observe the PersonaBar at the bottom of the screen 3. No cost figure (e.g., `$0.12`) appears in the bar ### Code Location - `src/cleveragents/tui/widgets/persona_bar.py` lines 30-38 (missing `cost` parameter) - `src/cleveragents/tui/app.py` lines 155-166 (`_refresh_persona_bar()` — no cost passed) ### Impact Users cannot see the cumulative session cost in the PersonaBar. Cost tracking is a key feature for managing API spend during TUI sessions. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
Author
Owner

Closing as duplicate of #4788 — both issues report the same problem: TUI PersonaBar missing session cost display. Issue #4788 has more detail on the spec requirement.


Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Closing as duplicate of #4788 — both issues report the same problem: TUI PersonaBar missing session cost display. Issue #4788 has more detail on the spec requirement. --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#5066
No description provided.