Skip to content

fix(tui): separate prompts, replies, and tool lines - #1510

Merged
akramcodez merged 3 commits into
Nano-Collective:mainfrom
Dhirenderchoudhary:fix/951-message-hierarchy
Nov 19, 2026
Merged

akramcodez merged 3 commits into
Nano-Collective:mainfrom
Dhirenderchoudhary:fix/951-message-hierarchy

Conversation

@Dhirenderchoudhary

@Dhirenderchoudhary Dhirenderchoudhary commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Prompts, replies, and tool lines were sharing the same frame, so a long session was hard to follow.

  • A prompt is a You: label with the text indented under it.
  • A reply keeps the left rule, without the blank padding around the text. Code blocks stay outside that rule.
  • Tool activity is indented and stays on one line.

The composer is unchanged. It was already the rounded prompt box.

Closes #951.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changeset

  • Added a changeset (pnpm changeset) describing this change for the changelog

Docs-only or internal chores need no changeset (or run pnpm changeset --empty to note that intentionally).

Testing

Automated Tests

  • New features include passing tests in .spec.ts/tsx files
  • All existing tests pass (pnpm test:all completes successfully)
  • Tests cover both success and error scenarios

Ran the specs that render these surfaces: user-message, assistant-message, streaming-message, tool-result-display, chat-input, and session-history-renderer. 188 passed. Did not run pnpm test:all.

Manual Testing

  • Tested with Ollama
  • Tested with OpenRouter
  • Tested with OpenAI-compatible API
  • Tested MCP integration (if applicable)

Checklist

  • If this was for an open issue, I was assigned to it
  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)
  • Appropriate logging added using structured logging (see CONTRIBUTING.md)

@akramcodez

Copy link
Copy Markdown
Member

@Dhirenderchoudhary can you redirect this PR to main? The feature/new-ui branch has already been merged into main, so that branch is outdated now.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Hi @Dhirenderchoudhary, thanks for this PR! It looks like a maintainer has left feedback
or review activity and there are still some outstanding items to wrap up.

Whenever you get a chance, could you take a look at the open comments?
If anything is unclear or you'd like a hand, just reply here and we'll help you get it across the line.

Keep the compact error check and live row cap, and indent those tool lines with the rest of the hierarchy.
@Dhirenderchoudhary
Dhirenderchoudhary changed the base branch from feature/new-ui to main October 6, 2026 15:34
@Dhirenderchoudhary

Dhirenderchoudhary commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

@akramcodez Retargeted this to main. I brought the branch up to date with current main.

The only conflict was the compact tool display. I kept main's error check and the 5-row cap, and those lines stay indented with the rest of the hierarchy. The diff against main is still just the prompt, reply, and tool-line split.

@github-actions github-actions Bot added the area:tui Terminal UI label Nov 19, 2026
@akramcodez
akramcodez merged commit 0382fc4 into Nano-Collective:main Nov 19, 2026
18 checks passed
@akramcodez

Copy link
Copy Markdown
Member

Thanks @Dhirenderchoudhary, merged! Appreciate the cleaner prompt, reply and tool-line hierarchy.

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

Labels

area:tui Terminal UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Improve Conversation and Message Hierarchy

2 participants