Skip to content

Multiple tool results render incorrectly after expanding output with Ctrl+O #701

Description

@devkade

What happened?

In the interactive TUI, expanding several completed tool results with Ctrl+O can render incomplete or mismatched content. Some entries remain as headers or error summaries, while another entry shows only a trailing portion of its result. The collapsed list renders normally; the problem appears after expansion.

Observed on macOS arm64.

Steps to reproduce

  1. Start Senpi in interactive mode with extensions disabled.
  2. Run a prompt that performs several tool calls, such as reading multiple files in parallel.
  3. Wait until the calls complete in collapsed form.
  4. Press Ctrl+O to expand tool output.
  5. Inspect each tool header and its displayed result.

Expected behavior

Each completed tool call displays its own complete result, associated with the correct header, after expansion.

Version

2026.8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions