Skip to content

[Bug] @选取文档时光标错位 #461

Description

@damifan3

Operating system / 操作系统

Windows

OS version and display / 系统版本与显示

Win11 25H2

Pebrel version / 版本号

2.1.1

How did you install Pebrel? / 安装方式

GitHub Release (.exe / .zip / .dmg / .AppImage / .deb)

Shell in the affected pane / 出问题的面板用的 Shell

Windows PowerShell 5.1

Program running in the pane / 面板里正在跑的程序

Gemini CLI / other AI agent — 其他 AI agent

Connection type / 连接方式

Local terminal / 本地终端

Affected area / 影响范围

Keyboard / IME / mouse / shortcuts / clipboard — 键盘、输入法、鼠标、快捷键、剪贴板

Did it work in a previous version? / 旧版本是否正常?

Not sure / 不确定

Can you reproduce it? / 复现概率

Always (100%) / 必现

Steps to reproduce / 复现步骤

我输入如下提示词

rich-table这个插件好像有点问题,请排查如下问题。
  截图和表格来自于文档 @【我想@的一个文档】
如图没有打开阅读模式下编辑的按钮。

<img width="1379" height="628" alt="Image" src="https://github.com/user-attachments/assets/10219be3-86d6-413f-9337-e0ef69395103" />

现在是阅读模式,有的表格不能编辑

<img width="1440" height="909" alt="Image" src="https://github.com/user-attachments/assets/93c6203b-6fce-404b-a318-34a633df57cb" />

但是有的就能编辑:

<img width="1552" height="845" alt="Image" src="https://github.com/user-attachments/assets/03e506e0-d3b1-471c-8573-fcce1d0c2632" />

我先输入了其它提示词,最后输入@【我想@的一个文档】
光标突然从@后方错位到了三行以下的“628”处。

Image

此时只是视觉错位,光标实际上还在上方@后边,我按下左右方向键,虽然光标在628处动,但是实际上是在@后方移动光标,可以看到此时下方的候选文档会刷新。当继续左右键超过@【文档名】时,光标似乎会真的挪到三行以下(参见视频)。

但是当我按下tab选择了对应文档后,光标彻底跑到了三行以下的628处

Image

值得注意的是,我将pebrel全屏后就没有这个问题了,似乎只在窗口不够高的情况下复现。

Expected behavior / 期望结果

光标不错位,还在@后边。

Actual behavior / 实际结果

光标错位

Logs / screenshots / 日志或截图

视频演示如下:

PixPin_2026-10-03_18-17-57.mp4

Non-default settings / 改过的设置

No response

Before submitting / 提交前确认

  • I searched existing issues and did not find a duplicate / 已搜索,无重复
  • I tested with the latest release / 已用最新版本试过
  • I removed passwords, private keys, tokens and other secrets / 已删除敏感信息

No activity

Activity on this issue will appear here.

Activity

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

    area: agentsClaude Code / Codex / Pi / OMP 等 agent 集成与状态area: input键盘、IME、鼠标、快捷键、剪贴板bug缺陷:行为与预期不符 / something isn't workingos: windows仅 Windows 或与 ConPTY/Win32 相关triage待维护者初审 / not yet reviewed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions