Repository navigation
fix(terminal): 固定兼容的 xterm 浏览器插件版本 - #1940
Merged
deepcoldy merged 1 commit intoOct 15, 2026
Merged
Conversation
baicaicc
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
October 15, 2026 06:47
This was referenced Oct 15, 2026
|
🚀 Released in v3.45.0 |
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.
Web 终端可能已经连上 WebSocket,xterm 缓冲区也有文本,但 Android WebView 中整块画布仍然空白。页面使用
@xterm/xterm@5,插件却使用浮动的@0;当前会组合到 xterm 5.5.0 与 WebGL 0.19.0、Fit 0.11.0、Unicode11 0.9.0 等不同代的内部接口。将七处 CDN URL 固定到 xterm 5.5.0 官方兼容表 中的精确版本:xterm 5.5.0、Fit 0.10.0、WebLinks 0.11.0、Unicode11 0.8.0、WebGL 0.18.0、Canvas 0.7.0。保留现有加载顺序、WebGL/Canvas 回退与终端权限逻辑。
影响面是各平台、CLI 和会话共用的 Web 终端 HTML,仅改变前端依赖版本,不改变 PTY、WebSocket 协议或输入处理。
验证:
vitest run --project unit test/web-terminal-initial-follow.test.ts test/web-terminal-fixed-grid-scroll.test.ts test/web-terminal-touch-scroll.test.ts test/web-terminal-mobile-input.test.ts test/terminal-width-generated.test.ts test/terminal-write-frame.test.ts。src/worker.ts的七个 URL,git diff --check通过。上游分支未另装依赖重跑完整构建。