Skip to content

[Feature] Experimental Fullscreen TUI / Full Terminal Viewport #947

Closed

Description

@akramcodez

Description

Explore and implement an experimental fullscreen TUI experience for Nanocoder.

Currently, Nanocoder behaves primarily like normal terminal output. The goal of this issue is to investigate whether Nanocoder can properly own the terminal viewport and provide a stable application-like interface, similar to modern terminal agents such as Claude Code and OpenCode.

This should be treated as an experimental foundation for several other UI improvements. The implementation should remain compatible with Ink where practical.

This is a relatively large change and should begin with investigation and a working prototype before attempting a complete implementation.

Use Case

A terminal AI agent should feel like a dedicated application rather than continuously appended terminal output.

The user should be able to:

  • Keep the main Nanocoder interface visible.
  • See the welcome experience, conversation, composer, and status information within the terminal viewport.
  • Scroll the conversation without causing unrelated UI elements to disappear.
  • Interact with the composer without unexpectedly moving the entire terminal.
  • Resize the terminal while keeping the application usable.
  • Eventually have a sticky composer and predictable conversation scrolling.

This issue provides the foundation for several other UI improvements.

Proposed Solution

Investigate an approach where Nanocoder takes control of the terminal viewport while continuing to use Ink.

The implementation should investigate:

  • Fullscreen terminal rendering.
  • Terminal viewport management.
  • How Ink can be extended to support the required behavior.
  • stdin handling and keyboard interaction.
  • Mouse capture through ANSI escape sequences if required.
  • Native terminal selection and copy/paste behavior.
  • Focus handling and the first-click-after-focus behavior.
  • Terminal cleanup/restoration when Nanocoder exits.
  • Compatibility with existing CLI behavior.

Start with a small prototype that demonstrates:

  1. Entering the fullscreen TUI.
  2. Rendering the Nanocoder interface inside the viewport.
  3. Keeping the interface stable while typing.
  4. Handling terminal exit correctly.
  5. Resizing the terminal.
  6. Basic keyboard and mouse interaction.

Do not attempt to solve every UI problem in this issue.

Alternatives Considered

  • Continue using normal terminal output without owning the viewport.
  • Completely replace Ink with another TUI framework.
  • Implement fullscreen behavior only for specific parts of Nanocoder.
  • Use a hybrid approach where fullscreen mode is experimental/optional.

The preferred direction is to first determine how far we can take the current Ink architecture before considering a framework replacement.

Additional Context

This issue is intentionally exploratory. The exact implementation is open for suggestions.

Implementation Notes

This issue is related to terminal viewport ownership, stdin handling, mouse capture, and Ink behavior. Several other UI improvements depend on this work, so architectural decisions should be documented clearly.

Contribution / PR Workflow

Please do not open PRs directly against main for this UI work.

All implementation PRs related to the new UI should target: feature/new-ui

Please discuss the approach before beginning a large implementation. Suggestions and alternative approaches are welcome.

Activity

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

    @Dhirenderchoudhary
    Contributor

    @akramcodez I want to build TUI my web mode and semantic memory done locally will raise Pr tomorrow for sure.

  3. akramcodez commented on Aug 26, 2026

    @akramcodez
    MemberAuthor

    Thanks, @Dhirenderchoudhary, for taking interest in this one. I’d highly recommend completing web mode and semantic memory first. Hopefully, we can get them into our next release.

    This is also a very high-priority, long-term feature that will need some proper discussion. We need to have a solid design in mind and a clear implementation plan before we start. I’d also be really happy if @puri-adityakumar could help with this.

  4. will-lamerton commented on Aug 27, 2026

    @will-lamerton
    Member

    Hi @akramcodez, @Dhirenderchoudhary - I believe this is already done if you run nanocoder --alt-screen. Let me know if I'm wrong!

  5. akramcodez commented on Aug 27, 2026

    @akramcodez
    MemberAuthor

    Just tested it, and it’s working really well! @will-lamerton what do you think about making it the default? I think it would be great, but I’d love to hear your opinion.

  6. Dhirenderchoudhary commented on Aug 27, 2026

    @Dhirenderchoudhary
    Contributor

    Confirmed on main this is already done. nanocoder --alt-screen (or "alternateScreen": true in preferences).
    @akramcodez can you assign me other TUI issues please as both my assigned are done.

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