Skip to content

[Bug] 关闭标签快捷键测试修改绑定后缺少刷新,导致非 macOS CI 失败 #1885

Closed

Description

@1lck

Platform / 平台

Other / 其他(Linux / Windows CI 均已复现;macOS 独立探针也复现)

Area / 模块

Test / 测试

Lithe version / Lithe 版本

preview 1cad09c;Java PR #1884 的对应测试文件与该基线 SHA-256 完全一致。

Priority / 优先级

P1 / 尽快处理:使用体验大幅下降,但通常仍可继续使用(阻断三平台测试;未证实产品快捷键有缺陷)

OS and architecture / 操作系统与架构

GitHub Actions ubuntu-latest x64 / windows-latest x64;本地 macOS arm64 无头复现。

Environment / 环境信息

Viva 固定 96a5af59bc30,Go 无头工作台。与 Java/JDT/Maven 无关。生产设置页 SetKeymap 会调用 invalidator.Invalidate;测试 closeTabChord 只改内存设置,遗漏相同的刷新。

Steps to reproduce / 复现步骤

  1. 打开普通文件,再打开 LSP Logs 编辑器页签。
  2. 无默认绑定的平台先发送 Control-W,确认无效果。
  3. 测试直接修改 settings.Keymap 添加 CloseTab 的 Control-W 绑定,不请求刷新。
  4. 立即发送该组合键;Driver.Pump 仅处理已有 wake,旧帧没有新绑定。
  5. macOS 用同样的显式 Control-W 绑定独立探针也得到相同失败;无需依赖 CI 时间。

Expected behavior / 预期行为

测试设置变更应像真实设置页一样明确通知刷新,再验证新组合键。应增加所有平台均运行的显式用户绑定回归,不能只在 macOS 依赖已有默认 Command-W。

Actual behavior / 实际行为

TestCloseTabShortcutClosesTheSelectedEditorTab 失败:1 个日志页签仍在,普通文件未选中。异步背景 wake 偶尔可能掩盖缺失刷新,不应靠重跑或 sleep。

Logs or diagnostic output / 日志或诊断输出

Linux 失败任务、Windows 同样失败

--- FAIL: TestCloseTabShortcutClosesTheSelectedEditorTab (0.06s)
    close_tab_shortcut_test.go:80: after the chord: 1 log tabs, the file selected false

本地独立探针同样失败。基线文件 SHA-256:ef68c508178f6db0948739dcb5faf598c175176110639db49a0f10fa42f1be4b。git blame 指向 #1873/#1876 的测试沿用;不在本次 Java 生产代码差异中。

Screenshots or recordings / 截图或录屏

N/A:无头测试时序问题,文本证据足够。

Checklist / 提交前检查

  • I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
  • I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。

Activity

  1. added
    bug
    on Nov 13, 2026
  2. added
    review: high
    on Nov 13, 2026
  3. 1lck commented on Nov 14, 2026

    @1lck
    OwnerAuthor

    按维护者本轮清理要求,核对最新 preview b582e20 后关闭。

    本问题已经由 PR #1886 修复并合入 preview,合并提交为 81bc8ce。

    • bindCloseTab 在修改快捷键绑定后显式调用 invalidator.Invalidate(),与生产 SetKeymap 的刷新语义一致。
    • 新增 TestCloseTabUserBindingClosesTheSelectedEditorTab,所有平台都覆盖显式 Control-W 用户绑定,避免 macOS 默认 Command-W 掩盖缺少刷新。
    • 已核对 fix(test): refresh close-tab bindings before headless shortcuts #1886 的检查记录,Vet and test on Linux、Vet and test on macOS、Vet and test on Windows 均有 SUCCESS 结果;取消/跳过的其他历史检查没有计为通过。

    证据:修复 PR、当前实现与回归测试。

    本次回读代码及已有 CI 结果,未重新启动完整测试。

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

    bugreview: high

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions