UAT: TUI PersonaBar missing session cost display — spec requires cost shown as $0.12 after each actor response #6438

Open
opened 2026-04-09 21:03:17 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Spec Reference

Specification lines 29247–29257 (PersonaBar), line 29075 (Footer mockup)

Expected Behavior (from spec)

The PersonaBar should show five segments (spec lines 29247–29257):

feature-dev │ claude-4-sonnet │ think: high │ 2 projects       │ $0.12
─────────── ─ ─────────────── ─ ─────────── ─ ──────────────── ─ ─────
persona       actor             preset        scope              cost
PersonaBar 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)

src/cleveragents/tui/widgets/persona_bar.py PersonaBar.set_content() (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 set_content() method has no cost parameter and does not display cost. The call site in app.py _refresh_persona_bar() (lines 155–166) also does not pass cost:

bar.set_content(
    persona_name=persona.name,
    actor_name=persona.actor,
    preset_name=preset,
    scope_text=scope_text,
)

No cost tracking exists anywhere in the TUI.

Code Location

  • src/cleveragents/tui/widgets/persona_bar.pyset_content() lines 30–38
  • src/cleveragents/tui/app.py_refresh_persona_bar() lines 155–166

Steps to Reproduce (Code Analysis)

  1. Read src/cleveragents/tui/widgets/persona_bar.py lines 30–38
  2. Observe: no cost parameter in set_content()
  3. Read src/cleveragents/tui/app.py lines 155–166
  4. Observe: no cost passed to set_content()
  5. Compare with spec lines 29247–29257

Severity

Medium — cost display is important for users to track spending. Backlog item.


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

## Bug Report ### Spec Reference Specification lines 29247–29257 (PersonaBar), line 29075 (Footer mockup) ### Expected Behavior (from spec) The PersonaBar should show five segments (spec lines 29247–29257): ``` feature-dev │ claude-4-sonnet │ think: high │ 2 projects │ $0.12 ─────────── ─ ─────────────── ─ ─────────── ─ ──────────────── ─ ───── persona actor preset scope cost ``` | PersonaBar 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) `src/cleveragents/tui/widgets/persona_bar.py` `PersonaBar.set_content()` (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 `set_content()` method has no `cost` parameter and does not display cost. The call site in `app.py` `_refresh_persona_bar()` (lines 155–166) also does not pass cost: ```python bar.set_content( persona_name=persona.name, actor_name=persona.actor, preset_name=preset, scope_text=scope_text, ) ``` No cost tracking exists anywhere in the TUI. ### Code Location - `src/cleveragents/tui/widgets/persona_bar.py` — `set_content()` lines 30–38 - `src/cleveragents/tui/app.py` — `_refresh_persona_bar()` lines 155–166 ### Steps to Reproduce (Code Analysis) 1. Read `src/cleveragents/tui/widgets/persona_bar.py` lines 30–38 2. Observe: no `cost` parameter in `set_content()` 3. Read `src/cleveragents/tui/app.py` lines 155–166 4. Observe: no cost passed to `set_content()` 5. Compare with spec lines 29247–29257 ### Severity Medium — cost display is important for users to track spending. Backlog item. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-10 00:45:55 +00:00
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.

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