Skip to content

feat(tui)!: migrate from ratatui to SuperLightTUI v0.6#5

Merged
subinium merged 3 commits intomainfrom
feat/migrate-to-slt
Mar 14, 2026
Merged

feat(tui)!: migrate from ratatui to SuperLightTUI v0.6#5
subinium merged 3 commits intomainfrom
feat/migrate-to-slt

Conversation

@subinium
Copy link
Copy Markdown
Owner

Summary

  • TUI engine: ratatui → SuperLightTUI (SLT) v0.6 — immediate-mode architecture, fewer dependencies, simpler code
  • Shell wrapper: stdout capture → temp file (AGF_CMD_FILE) for command passing
  • Scanner fix: read_git_branch() 100ms timeout prevents infinite blocking on unresponsive .git/HEAD

Breaking Changes

  • Shell wrapper updated — run agf setup after upgrading
  • Summary cycling keybinding changed: Shift+↑/↓[/]

Changes

File Change
Cargo.toml ratatui + crosstermsuperlighttui = "0.6", version 0.5.5 → 0.6.0
src/tui/mod.rs Full rewrite (~1,850 lines, immediate-mode)
src/tui/input.rs Deleted (merged into mod.rs)
src/tui/render.rs Deleted (merged into mod.rs)
src/shell.rs zsh/bash/fish wrappers use temp file, fix zsh status variable
src/main.rs AGF_CMD_FILE env var support
src/scanner/claude.rs 100ms timeout on read_git_branch()
README.md SLT hyperlink, updated keybindings, v0.6 upgrade notes
CHANGELOG.md New

Testing

  • cargo check clean
  • cargo build --release clean
  • TUI launches and renders correctly
  • Resume/New Session/cd/Delete all work through shell wrapper
  • Tested with zsh shell wrapper (source <(agf init zsh))

BREAKING: shell wrapper changed from stdout capture to temp file.
Run `agf setup` after upgrading.

- Replace ratatui + crossterm with superlighttui v0.6 (immediate-mode)
- Consolidate tui/{mod,render,input}.rs into single tui/mod.rs
- Shell wrappers use AGF_CMD_FILE temp file for command passing
- Fix scanner hang: add 100ms timeout to read_git_branch()
- Change summary cycling keybinding: Shift+Arrow → [/]
- Fix zsh read-only `status` variable in shell wrapper
@subinium subinium merged commit 71253fe into main Mar 14, 2026
4 checks passed
@subinium subinium deleted the feat/migrate-to-slt branch March 14, 2026 04:40
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