Skip to content
Back to skills

2493 2026 02 20 Disable Agent Text Streaming Default A9652570

ASecurity

Turned off live text streaming rendering in the TUI by default to reduce visual jitter.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
testing

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2493-2026-02-20-disable-agent-text-streaming-default_a9652570 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2493 2026 02 20 Disable Agent Text Streaming Default A9652570?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2493 2026 02 20 Disable Agent Text Streaming Default A9652570
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2493-2026-02-20-disable-agent-text-streaming-defau/badge)](https://www.skillsdirectory.com/skills/tools-only-2493-2026-02-20-disable-agent-text-streaming-defau)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
title: Disable live agent text streaming by default and enable thoughts panel by default
type: delta
link: disable-agent-text-streaming-default
path: src/tunacode/ui/app.py
depth: 0
seams: [M]
ontological_relations:
  - affects: [[ui]]
  - affects: [[core]]
  - affects: [[configuration]]
  - affects: [[tests]]
tags:
  - streaming
  - ui
  - tinyagent
  - abort-handling
  - config
created_at: 2026-02-20T16:05:28-06:00
updated_at: 2026-02-20T16:07:42-06:00
uuid: d9b8ee5e-078c-48b9-9a64-b09cd566ed29
---

# Disable live agent text streaming by default and enable thoughts panel by default

## Summary

Turned off live text streaming rendering in the TUI by default to reduce visual jitter.

Added `settings.stream_agent_text` (default `false`) and wired request creation to pass the streaming callback only when that setting is enabled.

Changed session defaults so the thoughts panel starts enabled (`SessionState.show_thoughts = True`) to keep reasoning visible even with text streaming disabled.

Kept tinyagent event streaming in place for tool lifecycle handling and final message assembly.

## Key behavioral detail

`RequestOrchestrator._handle_message_update()` now appends `text_delta` content to `_debug_raw_stream_accum` even when no streaming callback is attached. This preserves interrupted-response recovery behavior when live streaming output is disabled.

## Files changed

- `src/tunacode/ui/app.py`
- `src/tunacode/configuration/defaults.py`
- `src/tunacode/core/agents/main.py`
- `src/tunacode/core/session/state.py`
- `tests/unit/core/test_thinking_stream_routing.py`
- `tests/unit/core/test_session_state_defaults.py` (new)
- `tests/unit/configuration/test_default_config_stream_agent_text.py` (new)
- `tests/unit/ui/test_stream_agent_text_setting.py` (new)

## Validation

- `uv run ruff check --fix src/tunacode/ui/app.py src/tunacode/core/agents/main.py src/tunacode/core/session/state.py src/tunacode/configuration/defaults.py tests/unit/core/test_thinking_stream_routing.py tests/unit/core/test_session_state_defaults.py tests/unit/configuration/test_default_config_stream_agent_text.py tests/unit/ui/test_stream_agent_text_setting.py` ✅
- `uv run pytest tests/unit/core/test_thinking_stream_routing.py tests/unit/core/test_session_state_defaults.py tests/unit/configuration/test_default_config_stream_agent_text.py tests/unit/ui/test_stream_agent_text_setting.py -q` ✅
- `uv run ruff check .` ✅

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.