Skip to content

[Feature] Responsive and Centered Terminal Layout #948

Closed

Description

@akramcodez

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

  1. added
    enhancement
    high-priority
    on Aug 25, 2026
  2. Dhirenderchoudhary commented on Aug 28, 2026

    @Dhirenderchoudhary
    Contributor

    @akramcodez as previous task was already done I'd like to take this one on.

  3. akramcodez commented on Aug 29, 2026

    @akramcodez
    MemberAuthor

    @Dhirenderchoudhary I just assigned you to another high-priority issue, so you can work on that one. This issue will be open for everyone.

  4. Dhirenderchoudhary commented on Sep 1, 2026

    @Dhirenderchoudhary
    Contributor

    @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

  5. akramcodez commented on Sep 2, 2026

    @akramcodez
    MemberAuthor
  6. Dhirenderchoudhary commented on Sep 4, 2026

    @Dhirenderchoudhary
    Contributor
    Image

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:tuienhancementhigh-priority

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions