Terminal performance degradation with large history and auto-scrolling issues when switching from Expand Mode to Normal Mode

Abierto
#1,133 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cli
Área
cli

Línea de trabajo

Start by locating the terminal history rendering and the code that switches between Expand Mode and Normal Mode; the issue does not name files or tests. Reproduce with heavy output, then switch modes and observe history scrolling and responsiveness. Done means long sessions remain responsive and returning to Normal Mode preserves the current scroll position.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary

The CLI tool retains too much terminal history without a proper limit, leading to lag, slow scrolling, and eventual unresponsiveness/freezing over long sessions. Additionally, switching from Expand Mode back to Normal Mode triggers an unwanted, prolonged auto-scroll from top to bottom.

Expected Behavior

History Management: The terminal should handle accumulated output smoothly (e.g., via an output buffer limit or virtual scrolling) without freezing or lag.

Display Mode Switching: Returning from Expand Mode to Normal Mode should preserve the current scroll position instead of auto-scrolling all the way from top to bottom.

Actual Behavior

1.As logs and terminal history accumulate over time, scrolling becomes extremely slow.

2.In long sessions, the terminal occasionally freezes or becomes entirely unresponsive.

3.When switching from Expand Mode back to Normal Mode, the view sometimes automatically scrolls continuously from the top to the bottom for an extended duration.

Steps to reproduce the issue

1.Start a long session or generate heavy output in the terminal using Command Code.

2.Notice the gradual lag and slow scrolling as history grows.

3.Switch into Expand Mode and then switch back to Normal Mode.

4.Observe the automatic scrolling behavior from top to bottom.

Command Code Version

1.88.5

Operating System

Windows

Terminal/IDE

Powershell

Shell

No response

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

No response

Lenguaje dominante
Sin datos de lenguaje
Estrellas
4.2k
Forks
377
Merge medio
1 d 17 min
PR fusionados (30 d)
7

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CommandCodeAI/command-code

Todos los issues de CommandCodeAI/command-code

Issues similares

Más issues de CLI

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.