Linux: gpui opens real Wayland and X11 windows, not headless (L1.1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-11 02:07:48 -04:00
1 parent 178625b6f3
commit c62d548688
9 files changed
+388 -1

No files matched your search

+9
View File
@@ -198,3 +198,12 @@
- [x] R2.18 官网(用户定):下载一律指向 GitHub 的 v0.1.x 发布页,不直接链 DMG — R1 截图文案死代码(连同 screen() 与截图一并删去);R2 PASS;已上线
- [x] R2.19 发布 0.1.1:版本号、打包、GitHub Release、官网指向新发布页 — v0.1.1 已发布(六个 arm64 dmg 与两个源码包,releases/latest),官网显示 0.1.1;release-macos.sh 通过
- [x] R2.20 ElyShow:放映图层一次回复超过 64 MB 帧上限(大屏上 4 张以上图层的幻灯片报 “layers pass 67107840 bytes”,放映起不来) — R1 单层仍超帧上限、暂存不随文档释放;R2 测试只核长度;R3 PASS
## L1 Linux 发布(用户 2026-10-11 报:Omarchy 上六个 AppImage 都打不开;要 deb、rpm、Arch、AppImage;在 ubuntu:26.04 容器里本机构建,替换 v0.1.3 的 Linux 包)
- [x] L1.1 Linux 显示后端:`gpui_platform` 开 `wayland` 与 `x11`(原样无头,“window open”而合成器里没有窗口);Omarchy(Hyprland)上 ElyTree 在 Wayland 与 X11 上画出窗口(其余五个要引擎,随 L1.5 实测);`tests/scripts/linux-backends.sh` — R1 锁文件、目标目录、未证明交帧;R2 产物路径、字形未核;R3 语言、OCR 错误被吞;R4 PASS
- [ ] L1.2 Omarchy 主题同步:查清空闲时每秒数次重套主题的根因并修;Omarchy 换主题时应用跟随
- [ ] L1.3 Linux 构建环境:`ubuntu:26.04` 容器里构建全部引擎与六个应用(glibc 不高于 2.43)
- [ ] L1.4 Linux 包:deb、rpm、Arch(pkg.tar.zst)、AppImage 出自同一份分装,装到 `/opt/ely-office/<应用>`,带桌面项、图标与文件类型
- [ ] L1.5 本机出六个应用的四种包;Omarchy 上装 Arch 包与 AppImage 出窗口;deb、rpm 在各自发行版的容器里装上并冒烟
- [ ] L1.6 v0.1.3:删去旧 AppImage,上传新包;`ci.sh` 的 Linux 产出四种包;agents.md 与官网随之
+7
View File
@@ -0,0 +1,7 @@
FAIL
Cargo.toml:25 — The new backend features require dependencies absent from the tracked Cargo.lock. In a clean copy, `cargo build --locked -p ely-tree` and locked metadata both exit 101 because the lockfile needs updating; the smoke script hides this by adding 26 packages during `cargo tree`. Commit the matching lockfile and verify a clean locked build. Evidence: `.work/l1.1-r1-locked.log`, `.work/l1.1-r1-backends.log`.
tests/scripts/linux-backends.sh:30 — The executable path ignores Cargo's target directory. With a separate `CARGO_TARGET_DIR`, the probe successfully built ElyTree there, then failed because `$root/target/debug/ely-tree` did not exist. If that path contains an older binary, the script tests that binary instead of the build it just produced. Resolve and launch the actual Cargo build artifact. Evidence: `.work/l1.1-r1-custom-target.log`.
tests/scripts/linux-backends.sh:32 — `ready ElyTree` does not establish that a frame was presented: its next-frame callback runs before presentation. In an isolated, rebuilt probe, replacing `platform_window.draw(...)` with a no-op still made this script exit 0 and claim both backends drew. Wayland tracing confirmed zero surface-buffer attachments, versus one with the original binary. Require successful presentation and compositor-visible rendered content before reporting success; a disabled presentation path must fail this test. Evidence: `.work/l1.1-r1-no-presentation.log`, `.work/l1.1-r1-presentation-evidence.log`.
+5
View File
@@ -0,0 +1,5 @@
FAIL
tests/scripts/linux-backends.sh:36 — Executable selection still assumes Cargo's native output layout. With CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu and a separate CARGO_TARGET_DIR, the locked build succeeds under <target>/x86_64-unknown-linux-gnu/debug, then the script fails launching nonexistent <target>/debug/ely-tree. An older native binary there would be tested instead. Launch the executable reported by Cargo's build-artifact JSON. Evidence: .work/l1.1-r2-explicit-target-build.log, .work/l1.1-r2-explicit-target.log.
tests/scripts/linux-backends.sh:55 — The text assertion counts contrasting control fills and icons, so it passes without any text. In an isolated rebuilt probe, returning immediately from Window::paint_glyph still makes the script exit 0 on both Wayland and X11. The inspected window has no text, yet its ink count is 10578 against the 500 threshold. Check known rendered text in a region excluding control fills and icons, and verify that disabling glyph painting fails the assertion. Evidence: .work/l1.1-r2-no-glyphs.log, .work/l1.1-r2-glyph-evidence.log, .work/l1.1-r2-mutation.log.
+5
View File
@@ -0,0 +1,5 @@
FAIL
tests/scripts/linux-backends.sh:60 — The OCR assertion always expects English while the application inherits its locale. Running with `ELY_LOCALE=zh-CN` maps and renders the window successfully, then fails because the supported Chinese interface contains no “Open a repository”. Pin `ELY_LOCALE=en` in the application's launch environment when asserting English text. Evidence: `.work/l1.1-r3-chinese.log`; forcing English passes both backends in `.work/l1.1-r3-fixed-locale.log`.
tests/scripts/linux-backends.sh:59 — OCR failure diagnostics are discarded. With Tesseract installed but `TESSDATA_PREFIX` pointing to an existing empty directory, the script exits 1 with no output; the missing `eng.traineddata` and initialization errors disappear into `/dev/null`. Preserve Tesseract's stderr or include it in an explicit failure message. Evidence: `.work/l1.1-r3-missing-tessdata.log`, `.work/l1.1-r3-ocr-error-evidence.log`, `.work/l1.1-r3-verification.log`.
+1
View File
@@ -0,0 +1 @@
PASS