Repository navigation
fix(mobile): forward swipe scrolling to the desktop terminal - #498
Merged
Merged
Conversation
4 tasks done
…cle" This reverts commit ee158c8.
Retain main media backend ownership and its CI profile; keep the authenticated mobile scrolling changes.
Kuddev
commented
Oct 6, 2026
Kuddev
left a comment
Owner
Author
There was a problem hiding this comment.
已对当前 head 4ebcfaa 重新核查:
pane.scroll保留鉴权、明确窗格目标、32 行范围和当前网格坐标检查;只读移动连接仍拒绝输入。- 滚动复用 TerminalView 的既有鼠标、备用屏和历史规则,不切换用户标签,不改变桌面终端尺寸。
- 视口读取为显式能力;既有实时 screen/tail 默认值和帧大小限制保留。连续滚动回执不再构建完整工作区快照。
- 手机保留缩放、文本选区、横向平移、顺序输入和断线不重放策略;没有新增依赖、轮询线程或推广内容。
- 撤回此前重复的媒体平台重构,采用 main 已有后端。对 main 的 25 个差异文件与已测 66aaa7e 候选逐文件相同;当前树的架构及平台条件检查通过。
原有 40 项 Android 回归、10 项定向 Rust 验证及完整工作区滚动路由回归可追溯。当前整合 head 的 CI 正在重新运行;只在必需检查和实际选中原生任务通过后正常合并,不冒称已完成物理手机验收。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Result / 用户结果
修复手机连接桌面后,在 AI CLI 终端中滑动却只移动当前画面、未滚动历史对话的问题。手机原始网格视图在本地画面边缘转发滚轮事件;桌面按既有鼠标接管、备用屏和终端回滚规则处理,并返回受控视口。
手机端和桌面端都需要包含本次改动。旧桌面通过能力协商保持原有行为,原始网格模式支持远程滚轮,手机重排阅读模式继续使用本地滚动。
Design / 设计边界
pane.scroll输入请求,复用现有认证、明确窗口/窗格目标、权限检查、顺序队列和断线后不重放策略。只读连接不发送滚轮;输入法未直连的草稿模式也可在授权后滚动。TerminalView::on_scroll,不从手机硬编码 Page Up,不抢窗口焦点,不调整桌面 PTY 尺寸。screen_viewport为显式能力协商后的读取选项。既有实时 screen 和文本 tail 的默认行为不变;帧仍保持 400 列、200 行、40000 格及原有文本上限,不逐帧发送全部历史。Evidence / 验证依据
Required Review / 必须确认
Current integration / 当前整合
4ebcfaa241006bdf4663b7946f95c77a60a89b76已同步含 fix(completion): keep WSL command menus stable and accept editor queries #504 补齐修复的 main。66aaa7e3候选逐文件相同;架构及平台条件检查在当前整合树通过。最终合并仍等待当前 head 的必需检查及所有实际选中原生任务。