Skip to content

AntiGravity Switch 4.10.18

Choose a tag to compare

@github-actions github-actions released this 18 Nov 15:10
815714f

AntiGravity Switch 4.10.18

macOS · Apple Silicon Windows · x64 Linux · x64
Download ZIP Download installer Download deb

Terminal packages: Windows console ZIP · Linux console tarball.

SHA-256 values and source commit are in release-manifest.json. The app reads the update feed automatically; the Mac updater tarball is not needed for a manual install.

本次更新

  • 修复账号备注(自定义标签)保存的并发问题。备注写入此前绕过全局账号文件锁,且使用非原子的整文件重写:与后台自动配额刷新、账号切换或导入并发时,后完成的一方会覆盖先完成一方的写入(可能丢失刚刷新的配额或刚保存的备注);进程在写入中途崩溃还可能损坏账号文件。现在备注写入与配额、切换、导入共用同一把文件锁,并走统一的原子保存路径。
  • 批量刷新选中账号的配额后,账号列表改为整批完成时同步一次。此前每个账号刷新完成都会重新加载一次全量账号列表,选中较多账号时造成无谓的重复读取。
  • 清理 OAuth 登录对话框中四处遗留的日语回退文案。正常情况下不显示(中英文键均完整),仅当语言包加载失败时才会出现;现已移除。
  • 删除两个因文件复制误提交的重复文件:一个从未参与编译的 Rust 源文件,和一个从未被 CI 或文档引用、且测试对象并不存在的脚本。

Changes

  • Fixes a lost-update race when saving an account remark (custom label). The write previously bypassed the global account file lock and rewrote the whole JSON file non-atomically, so a save racing a background quota refresh, an account switch or an import could silently overwrite the other write's result, and a crash mid-write could corrupt the account file. Remark saves now share the account file lock with quota, switch and import writers and go through the same atomic save path.
  • Batch quota refresh now syncs the account list once after the whole batch finishes instead of reloading every account after each individual refresh.
  • Removes four leftover Japanese fallback strings from the OAuth login dialog; they never displayed under normal operation but would have surfaced if a locale failed to load.
  • Deletes two duplicate files that were accidentally committed: a Rust source file that was never declared or compiled, and a test script referenced by no CI job or document whose feature under test does not exist.

Verification and limits

Rust unit tests (261 passed, 4 ignored), the frontend tsc/vite build, and the CLI suites (45 executable smoke checks, 68 PTY terminal checks, 8 account viewport checks, 6 agy-target pre-write checks, 6 launch isolation checks) cover this change, together with the three platform package jobs of the final-version CI. The serialized label save reuses the typed load/save path that account import already exercises and that the account round-trip tests cover; interactive remark editing in the packaged native GUI was not separately re-run against a signed-in client. Cleared remarks now omit the optional field instead of writing explicit null; both forms deserialize identically and no migration is needed. No real account was switched, refreshed, exported or deleted during maintainer verification. Mac packages still lack Developer ID/notarization and Windows packages lack Authenticode; bundle and updater signatures do not establish OS trust. Installation requires user action; see updates.

Source commit: 815714f

Platform verification