feat(tui): implement actor thought block rendering #1001

Closed
opened 2026-03-17 01:10:06 +00:00 by brent.edwards · 2 comments
Member

Actor thought block with max 10 lines, muted styling, expandable.

Dependencies

  • Parent: #868 (Epic: TUI Interface)
  • Tracked by: #926
Actor thought block with max 10 lines, muted styling, expandable. ## Dependencies - Parent: #868 (Epic: TUI Interface) - Tracked by: #926
brent.edwards added this to the v3.7.0 milestone 2026-03-17 01:11:44 +00:00
Author
Member

Implemented and opened PR for this ticket.

What changed

  • Added ActorThoughtBlock widget at src/cleveragents/tui/widgets/actor_thought_block.py with:
    • collapsed max-10-line rendering
    • expandable mode toggle
    • visibility toggle support
    • muted/italic render payload
  • Wired widget into TUI app composition and flow:
    • added block to layout in src/cleveragents/tui/app.py
    • added ctrl+shift+t binding/action to toggle thought visibility
    • updated input submit flow to populate the thought block
  • Updated styling in src/cleveragents/tui/cleveragents.tcss.
  • Added/updated test coverage:
    • Behave scenarios + steps in features/tui_app_coverage.feature and features/steps/tui_app_coverage_steps.py
    • Robot smoke validation in robot/tui_smoke.robot
  • Added changelog entry in CHANGELOG.md.

Validation run

  • nox -s lint
  • nox -s typecheck
  • nox -s unit_tests -- features/tui_app_coverage.feature
  • nox -s integration_tests -- robot/tui_smoke.robot
  • nox -s coverage_report (fail-under 97 enforced)

Commit / PR

  • Commit: 33d9ea211ce9d05fb80d550ddfd6d369292665d3
  • PR: #1238
  • PR is set to auto-merge when checks pass.
Implemented and opened PR for this ticket. ## What changed - Added `ActorThoughtBlock` widget at `src/cleveragents/tui/widgets/actor_thought_block.py` with: - collapsed max-10-line rendering - expandable mode toggle - visibility toggle support - muted/italic render payload - Wired widget into TUI app composition and flow: - added block to layout in `src/cleveragents/tui/app.py` - added `ctrl+shift+t` binding/action to toggle thought visibility - updated input submit flow to populate the thought block - Updated styling in `src/cleveragents/tui/cleveragents.tcss`. - Added/updated test coverage: - Behave scenarios + steps in `features/tui_app_coverage.feature` and `features/steps/tui_app_coverage_steps.py` - Robot smoke validation in `robot/tui_smoke.robot` - Added changelog entry in `CHANGELOG.md`. ## Validation run - `nox -s lint` ✅ - `nox -s typecheck` ✅ - `nox -s unit_tests -- features/tui_app_coverage.feature` ✅ - `nox -s integration_tests -- robot/tui_smoke.robot` ✅ - `nox -s coverage_report` ✅ (fail-under 97 enforced) ## Commit / PR - Commit: `33d9ea211ce9d05fb80d550ddfd6d369292665d3` - PR: https://git.cleverthis.com/cleveragents/cleveragents-core/pulls/1238 - PR is set to auto-merge when checks pass.
freemo self-assigned this 2026-04-02 06:14:02 +00:00
Owner

PR #1298 reviewed, approved, and merged.

The implementation includes:

  • ThoughtBlock domain model with configurable max_lines, expand/collapse state, and rendering helpers
  • ThoughtBlockWidget TUI widget with muted styling, CSS class management, and space/click toggle
  • 23 Behave BDD scenarios covering all domain model and widget behavior
PR #1298 reviewed, approved, and merged. The implementation includes: - `ThoughtBlock` domain model with configurable `max_lines`, expand/collapse state, and rendering helpers - `ThoughtBlockWidget` TUI widget with muted styling, CSS class management, and space/click toggle - 23 Behave BDD scenarios covering all domain model and widget behavior
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1001
No description provided.