Skip to content

feat(tui): add chrome.activity_indicator toggle - #1228

Merged
hakula139 merged 1 commit into
mainfrom
feat/tui-activity-indicator-toggle
Dec 6, 2026
Merged

hakula139 merged 1 commit into
mainfrom
feat/tui-activity-indicator-toggle

Conversation

@hakula139

Copy link
Copy Markdown
Member

Summary

Add a [tui.chrome] activity_indicator boolean option (default true) so users who enable the status segment in statusline can hide the live activity spinner row above the input box.

  • Add activity_indicator: Option<bool> to TuiChromePatch in crates/ox-core/src/config/tui.rs (including TuiConfigPatch::merge) and activity_indicator: bool to TuiChromeConfig in crates/ox-tui/src/style/config.rs (defaulting to true in crates/ox-tui/tui/default.toml).
  • Gate ResolvedSlot::ActivityIndicator in build_layout_plan (crates/ox-tui/src/render/ui.rs) on config.chrome.activity_indicator.
  • Update App::needs_spinner() (crates/ox-tui/src/app.rs) so main-turn spinner ticks are skipped when activity_indicator is false, while running transcript tool calls and running subagents still animate their spinners.
  • Document activity_indicator in docs/reference/tui/tui.md and docs/reference/tui/statusline.md, and add unit tests covering config merging, user override resolution, layout hiding, and needs_spinner() transitions.

Test plan

  • nix develop -c run-hooks passed (all 20 hooks, including clippy, rustfmt, cspell, dprint, markdownlint-cli2, and taplo).
  • cargo test -p ox-core -p ox-tui passed (ox-core: 286 passed, ox-tui: 308 unit tests and 2 preview integration tests passed).

@hakula139 hakula139 added enhancement New capability area: config Touches config loading, layering, or credential discovery area: tui Touches terminal UI rendering, input, or theming labels Dec 6, 2026
@hakula139 hakula139 self-assigned this Dec 6, 2026
@codecov

codecov Bot commented Dec 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hakula139
hakula139 merged commit aa3b738 into main Dec 6, 2026
10 checks passed
@hakula139
hakula139 deleted the feat/tui-activity-indicator-toggle branch December 6, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: config Touches config loading, layering, or credential discovery area: tui Touches terminal UI rendering, input, or theming enhancement New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant