nanocoder icon indicating copy to clipboard operation
nanocoder copied to clipboard

[Bug] Welcome screen is clipped on a standard 80×24 terminal

Open addyCooks opened this issue 2 months ago • 1 comments

Description

80×24 is the single most common terminal default there is. welcome-message.tsx budgets its logo/menu thresholds against the whole terminal height, but the fullscreen viewport only hands it rows minus the footer, and chat-history.tsx clips with overflow: "hidden" so a new user's very first screen is missing content, with no visual hint anything was cut.

Parent: #907

Steps to Reproduce

  1. Start Nanocoder in a plain 80×24 terminal (the default size for most terminal emulators).
  2. Look at the welcome screen menu.

Expected Behavior

The full menu (Resume session, Select model, Help, Quit) and the tip line beneath it, same as at a taller terminal size.

Actual Behavior

Only 3 of 4 menu items render (Quit /exit is missing), and the tip line beneath the menu doesn't render either.

Recording

Image

Root Cause

source/components/welcome-message.tsx:63,68-70 computes its logo/menu thresholds against the raw terminal height, not the smaller viewport fullscreen mode actually gives it after the footer takes its share.

Suggested Fix

Pass the actual available viewport height (rows minus footer) into WelcomeMessage and lower its thresholds accordingly.

Additional Context

  • [x] I have searched existing issues to ensure this is not a duplicate
  • [x] I can reproduce this issue consistently
  • [x] This issue occurs on the latest main

addyCooks avatar Sep 15 '26 19:09 addyCooks

Hi @akramcodez, could you assign this one to me?

addyCooks avatar Sep 15 '26 19:09 addyCooks