Skip to content

Feature/tui#37

Merged
JheisonMB merged 263 commits into
developfrom
feature/tui
Apr 28, 2026
Merged

Feature/tui#37
JheisonMB merged 263 commits into
developfrom
feature/tui

Conversation

@JheisonMB
Copy link
Copy Markdown
Collaborator

What changed

Why

Related issue

Checklist

Related issue

Checklist

  • Local checks pass (build/lint/tests)
  • Docs updated when behavior changed
  • PR is focused and avoids unrelated edits
  • Commits follow Conventional Commits

Notes (optional)

- [ ] Local checks pass (build/lint/tests)
  • Docs updated when behavior changed
  • PR is focused and avoids unrelated edits
  • Commits follow Conventional Commits

Notes (optional)

JheisonMB and others added 30 commits April 12, 2026 09:26
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…ms in wizard

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…anner to doctor

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
… agent view

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…ction

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…where

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…d backgrounds

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Brian's Brain: proper XOR hash seeding with time seed for variety,
  toroidal wrapping via rem_euclid so patterns stay alive, extracted
  make_grid helper for DRY new/reset

- Navigation flow: Home → Preview → Focus
  Home: banner + brain screensaver, q=quit, Esc=confirm quit overlay
  Preview: ↑↓ navigate agents, Enter=focus, Esc=home
  Focus: log scroll for background, PTY for interactive, EscEsc=back

- Sidebar: two bordered Block boxes (Background/Interactive) with
  proportional height split and accent-colored borders on selection

- Right panel renders per mode: Home=banner+brain, Preview=config/PTY
  snapshot, Focus=scrollable log or interactive PTY with cursor

- Added quit confirmation overlay (y/Enter to confirm, any key cancel)

- Footer hints update per mode

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ion cleanup

Brain's Brain:
- Seed grid from CANOPY banner text centered on screen
- Shows banner as green cells before activation, then explodes
- Sparse random scatter (~3%) around banner fuels chain reactions

Registry-driven interactive agent spawn:
- Add interactive_args field to CliConfig (from registry)
- Remove hardcoded match in agent.rs spawn, use registry args
- NewAgentDialog stores CliConfig for each available CLI
- Pass interactive_args to InteractiveAgent::spawn

Dialog UX rework:
- ←→ selects CLI, ↓ moves to directory picker (not Tab)
- Space enters a directory, Enter launches agent
- Updated footer hints and labels

Session cleanup:
- kill_selected_agent now removes agent from interactive_agents vec
- delete_selected also removes interactive agents fully
- Selection adjusts after removal

Log display:
- Running tasks show active run header with run ID and elapsed time
- Bounds check for interactive agent index

Colors:
- BG_SELECTED changed to green-tinted dark (20,40,20)
- INTERACTIVE_COLOR changed to green (102,187,106) matching ACCENT

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…n seeding

- New agent dialog no longer uses Clear or opaque background —
  the automaton/banner shows through behind the dialog border
- Quit confirmation dialog changed to green (ACCENT) color scheme
- Removed extra leading space in quit dialog text
- Brain seeding now only uses █ (full block) characters from the
  banner — no random scatter particles, banner looks clean before
  exploding
- Daemon start kills any stale process occupying the port before
  binding (prevents 'address already in use' errors)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Replace the dual-buffer scroll system (vt100 live + plain-text
output_buffer for history) with vt100's built-in scrollback.

Before: scroll_offset > 0 rendered gray plain-text from a manually
accumulated output_buffer — lost all colors, had off-by-one bugs,
and ANSI sequences leaked into the text.

After: set_scrollback(offset) shifts the vt100 viewport into its
10,000-line scrollback ring buffer. cell() returns the scrolled
content with full colors preserved.

- Removed output_buffer field and its reader thread accumulator
- Removed selection/selected_text/rows/cols unused fields
- Simplified screen_snapshot() to a single path via set_scrollback
- max_scroll() probes vt100's actual scrollback depth
- output() uses screen.contents() instead of manual buffer
- Fixed scroll clamping (removed stale +1 offsets)

Zero warnings.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…p_or

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…logs, and per-agent accent colors

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…ead of status

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@JheisonMB JheisonMB merged commit 2907a30 into develop Apr 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant