Conversation
Separate GPUI-specific code from the nemo binary into a new nemo-ui crate and create a nemo-tui crate with ratatui-based terminal rendering. This allows the same XML configuration system to drive both desktop (GPUI) and terminal (ratatui) applications. - Extract components, workspace, theme, config, runtime into nemo-ui crate - Create nemo-tui crate with stack, panel, label, text, progress, table components - Add --tui/--ui CLI flags with XML <app default="tui"> fallback - Add tui-basic example and 12 integration tests using TestBackend Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nemo-uicrate: Moves all GPUI-specific code (54 components, workspace, theme, config, runtime, window) from thenemobinary into a dedicatednemo-uilibrary crate with arun_gpui()entry pointnemo-tuicrate with ratatui rendering: New terminal UI backend that maps XML components to ratatui widgets (stack→Layout, panel→Block, label/text→Paragraph, progress→Gauge, table→Table) with graceful degradation for unsupported types--tui/--uiCLI flags: Mode detection with priority: CLI flag ><app default="tui">XML config > default to GPUIArchitecture
New crates
nemo-uinemobinary)nemo-tuiTUI component mapping
stackLayout(horizontal/vertical with flex constraints)panelBlock(borders + title, children inside)labelParagraph(single line)textParagraph+Wrap(multi-line)progressGauge(value/max ratio)tableTable(column definitions + row data)Test plan
TestBackendcargo run -- --app-config examples/basic/app.xml— GPUI still workscargo run -- --app-config examples/tui-basic/app.xml— TUI mode viadefault="tui"cargo run -- --app-config examples/basic/app.xml --tui— Force TUI on GPUI config🤖 Generated with Claude Code