b5a3b3c84f
Implement conversation pruning logic, integrate with TUI stream, and add regression coverage. ISSUES CLOSED: #6350
17 lines
833 B
Gherkin
17 lines
833 B
Gherkin
Feature: TUI conversation content pruning
|
|
Exercises the line-count based pruning behaviour for the main conversation stream.
|
|
|
|
Background:
|
|
Given the TUI app module is imported with mocked Textual
|
|
|
|
@tdd_issue @tdd_issue_6350
|
|
Scenario: Conversation exceeding the pruning threshold removes oldest blocks and inserts a note
|
|
Given a mock command router and persona state
|
|
When I instantiate the Textual TUI app
|
|
And I call on_mount on the app
|
|
And I deliver 6 conversation messages of 600 lines each
|
|
Then the conversation widget should contain "(Earlier messages pruned — see session history for full conversation)"
|
|
And the conversation widget should contain "message-6 line-4"
|
|
And the conversation widget should not contain "message-1 line-1"
|
|
And the session transcript should contain 6 entries
|