CommandCodeAI / CommandCodeAI/command-code

Scroll bar at the top

未关闭
#737 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
没有语言数据
星标
4k
派生
350
PR 合并指标
30 天内没有已合并 PR

描述

Summary

Whenever Command Code displays an interactive question or a list of choices, the Tabby terminal viewport automatically jumps to the top of the terminal history.

As a result, the newly displayed question is no longer visible, and I must manually scroll back to the bottom before I can read and answer it.

I am using Tabby (termninal interface) -on linux

Image
Expected Behavior

The terminal should remain scrolled to the bottom so that the interactive question and its available choices are immediately visible.

Actual Behavior

The terminal viewport jumps to the top of the scrollback history whenever an interactive question appears. I must manually scroll back to the bottom to see and answer the question.
This happens every time Command Code presents an interactive question or choice prompt.

Steps to reproduce the issue

Open Command Code in the Tabby terminal on Linux.
Start a session that causes Command Code to display an interactive question or multiple-choice prompt.
Wait for the question to appear.
Observe the terminal’s scroll position.

Command Code Version

Command Code version: Latest available version as of August 23, 2026
Operating system: Linux
Terminal: Tabby
Shell: zsh

Operating System

Linux

Terminal/IDE

No response

Shell

zsh

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

The issue appears to be related to how the terminal viewport or scroll position is handled when an interactive prompt is rendered. Normal output does not appear to require this manual scrolling.
No response

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先在 Linux 上使用 zsh,通过 Tabby 终端在 Command Code 中复现该问题,使用交互式问题或多选提示。跟踪负责渲染交互式提示并处理终端 viewport 或滚动位置的入口点。当提示保持显示在底部,同时普通输出继续按预期运行时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
linux, zsh
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。