Skip to content

use the alternate screen buffer #453

Closed
Closed

Description

@zion-off

Summary

should the cli use the alternate screen buffer? there's a bunch of quirks that this could solve

Expected Behavior

open the editor while the model is reasoning you should be able to type in your editor normally while the agent keeps working in the background

Actual Behavior

open the editor while the model is reasoning it messes everything up

Steps to reproduce the issue

  1. set EDITOR to nvim
  2. prompt the agent
  3. wait for it to start reasoning
  4. hit ctrl+g

Command Code Version

0.30.1

Operating System

macOS

Terminal/IDE

ghostty

Shell

zsh

Additional context

No response

Activity

  1. added theissue type on Jun 3, 2026
  2. smujaddid commented on Jun 19, 2026

    @smujaddid

    Up!
    I experienced the same in Ubuntu 24.04. Using both Wezterm and Ubuntu 24.04 default terminal, with zsh. Opening any terminal editor (nano, nvim, helix) when trying to edit a skill, via /skills and selecting a skill, and press tab, it messes everything up. I was trying to type a command for the editor or typing something in the editor, but the cmd also received the same text I typed and the cmd will send it to the agent and start working, and both the cmd and the editor buffers were mixed up and I couldn't see what is the actual output.
    Then I tried Claude Code to see if my terminal (wezterm or default) were the problem, but it was fine. Claude Code can forward to the editor (via /memory command) and get back to the Claude Code session without messing the session.
    I'm using CommandCode version 0.39.2 in Ubuntu 24.04

  3. ahmadawais commented on Jun 19, 2026

    @ahmadawais
    Member

    Not sure why we need to do alt screen. It will create a bunch of problems. Search won't work, scroll will be a mess. The native primary screen is much better at all this. We have a major rendering engine rewrite landing soon.

  4. smujaddid commented on Jun 22, 2026

    @smujaddid

    Not sure why we need to do alt screen. It will create a bunch of problems. Search won't work, scroll will be a mess. The native primary screen is much better at all this. We have a major rendering engine rewrite landing soon.

    Can't wait for the new engine 🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions