Skip to content

separate AUTO mode from process flow in HeaderBar#525

Merged
JeremyDev87 merged 1 commit intomasterfrom
fix/tui-header-auto-mode-display-488
Feb 17, 2026
Merged

separate AUTO mode from process flow in HeaderBar#525
JeremyDev87 merged 1 commit intomasterfrom
fix/tui-header-auto-mode-display-488

Conversation

@JeremyDev87
Copy link
Owner

Summary

Fixes #488 — Two bugs in the TUI HeaderBar component:

  • AUTO mode display error: AUTO was rendered as PLAN → ACT → EVAL → AUTO, making it appear as a sequential step. AUTO is actually an independent mode that cycles through PLAN→ACT→EVAL autonomously. Now rendered as a separate [AUTO] badge.
  • Right-side content overflow: Workspace/session text could extend beyond the terminal boundary. Fixed with overflowX="hidden", flexShrink constraints, and dynamic width calculation with safety truncate.

Changes

File Change
header-bar.pure.ts ALL_MODESPROCESS_MODES (exclude AUTO), AUTO as separate badge, dynamic overflow calculation + safety truncate
header-bar.pure.spec.ts +5 tests (AUTO separation ×3, overflow ×2)
HeaderBar.tsx ModeFlow refactored for AUTO badge, removed truncateWorkspace/HEADER_RESERVED_CHARS, added overflowX="hidden" + flexShrink
HeaderBar.spec.tsx +2 tests (AUTO separation)
theme.ts Updated stale comment

Before: PLAN → ACT → EVAL → AUTO
After (non-AUTO): [PLAN] → ACT → EVAL
After (AUTO active): [AUTO] PLAN → ACT → EVAL

Test plan

  • 946 TUI tests passing (58 test files)
  • 7 new tests added covering both bugs
  • Build compiles without errors
  • No dangling references to removed symbols (ALL_MODES, HEADER_RESERVED_CHARS, truncateWorkspace)

@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Feb 17, 2026 5:38pm

@JeremyDev87 JeremyDev87 self-assigned this Feb 17, 2026
@JeremyDev87 JeremyDev87 added fix tui TUI Agent Monitor labels Feb 17, 2026
@JeremyDev87 JeremyDev87 changed the title fix(tui): separate AUTO mode from process flow in HeaderBar separate AUTO mode from process flow in HeaderBar Feb 17, 2026
AUTO was incorrectly displayed as the 4th sequential step (PLAN → ACT → EVAL → AUTO).
It is now rendered as an independent badge since AUTO is an autonomous cycling mode,
not a step in the process pipeline.

Also fixes right-side content overflow by adding overflowX="hidden", flexShrink
constraints, and dynamic width calculation with safety truncate.
@JeremyDev87 JeremyDev87 force-pushed the fix/tui-header-auto-mode-display-488 branch from 418cef9 to 112dc4f Compare February 17, 2026 17:37
@JeremyDev87 JeremyDev87 merged commit 056eff1 into master Feb 17, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the fix/tui-header-auto-mode-display-488 branch February 17, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix tui TUI Agent Monitor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tui): Fix AUTO mode display error + right-side content terminal overflow in HeaderBar

1 participant