nanocoder icon indicating copy to clipboard operation
nanocoder copied to clipboard

[Bug] The chat transcript sits out of alignment with the prompt box in inline mode

Open addyCooks opened this issue 2 months ago • 1 comments

Description

In inline mode (--no-alt-screen), the chat transcript renders flush against the terminal's left edge, while the prompt box and status bar below it are indented a few columns further right a visible left-edge misalignment between what you're reading and what you're typing into.

Parent: #907

Steps to Reproduce

  1. Start Nanocoder with --no-alt-screen (inline mode).
  2. Send a message and get a reply.
  3. Compare the left edge of the transcript ("You:", the message text, "mock-model:", etc.) against the left edge of the prompt box border below it.

Expected Behavior

The transcript and the prompt box share the same left inset.

Actual Behavior

The transcript sits flush at column 0; the prompt box and the status bar beneath it are indented roughly 2-3 columns further right, visibly out of alignment with everything above them.

Recording

Image

Root Cause

source/app/components/chat-history.tsx:214:

// Inline: the live component sits below the absolutely-positioned
// <Static>, so it pulls back -1 to share that left edge. ...
<Box marginLeft={fullscreen ? 0 : -1} flexDirection="column">

This only adjusts the live (in-progress) component's margin to match the <Static>-rendered transcript history above it it does not reconcile either of those with the prompt box's own left inset, which is set independently in the composer's own wrapper.

Suggested Fix

Apply one shared left inset constant to both the transcript (Static + live) and the prompt box in inline mode, instead of each computing its own margin independently.

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 22 '26 08:09 addyCooks

Hey @akramcodez, could you assign this me ?

addyCooks avatar Sep 22 '26 08:09 addyCooks