Repository navigation
Description
Description
Make the Nanocoder UI responsive to terminal width and height.
The current interface should make better use of the available terminal space while gracefully adapting when the terminal becomes smaller.
The welcome experience should be able to center itself when enough space is available while reducing spacing and hiding secondary information when the terminal becomes constrained.
Use Case
Terminal users run Nanocoder in many different environments:
- Full-screen terminal windows.
- Split terminal panes.
- Small SSH sessions.
- Narrow terminal windows.
- Large external monitors.
- Resized terminals.
The UI should remain usable regardless of the available dimensions.
The most important elements should always remain accessible:
- Conversation.
- Composer.
- Essential status information.
Decorative or secondary information should be reduced or hidden when space becomes limited.
Proposed Solution
Implement responsive layout behavior based on the terminal dimensions.
Possible behavior:
Large terminal
- Center the welcome experience vertically and horizontally where appropriate.
- Provide comfortable spacing.
- Display the full welcome experience and secondary information.
Medium terminal
- Reduce vertical spacing.
- Maintain the primary welcome content.
- Reduce decorative elements if necessary.
Small terminal
- Prioritize conversation and composer.
- Hide secondary information.
- Reduce logo/decorative content.
- Prevent important elements from being pushed off-screen.
Resize handling
When the terminal is resized:
- Recalculate layout dimensions.
- Reposition content appropriately.
- Avoid overlapping components.
- Avoid unexpected scrolling.
- Preserve the current input/conversation state.
Alternatives Considered
- Use a fixed layout optimized for large terminals.
- Only support horizontal responsiveness.
- Hide content only when rendering fails.
A responsive layout is preferred because terminal dimensions can change at any time.
Additional Context
The exact breakpoint behavior and layout rules are open for suggestions.
Implementation Notes
This may depend on the fullscreen TUI work from the related UI initiative. #947
The implementation should preferably derive layout from the actual terminal dimensions rather than maintaining many fixed configurations.
Contribution / PR Workflow
Please create PRs against: feature/new-ui
Do not merge these UI changes directly into main.
Suggestions for alternative responsive-layout strategies are welcome.
Activity
Dhirenderchoudhary commentedon Aug 28, 2026
@akramcodez as previous task was already done I'd like to take this one on.
akramcodez commentedon Aug 29, 2026
@Dhirenderchoudhary I just assigned you to another high-priority issue, so you can work on that one. This issue will be open for everyone.
Dhirenderchoudhary commentedon Sep 1, 2026
@akramcodez as previous task was already done I'd like to take this one on.
about another task i shared a plan please have a look
akramcodez commentedon Sep 2, 2026
sure @Dhirenderchoudhary
Dhirenderchoudhary commentedon Sep 4, 2026
Made fullscreen the default so this is what you get on launch. Welcome stays centered; --no-alt-screen still drops back to inline. does this look right?