You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flaky e2e: slash-command-menu inline menu shows the 命令 group for a non-leading slash #2948
apps/desktop/e2e/slash-command-menu.spec.ts:87 — offers commands only for the first token and keeps explicit Skill queries separate — fails intermittently on main.
The composer holds explain / at that point. A slash that is not the first token must not open the command group — only the Skills group. Intermittently the command group is present and stays present for the whole polling window.
Reproduction
On main at 8925d4353, with no local changes:
npm --workspace @maka/desktop run build:with-deps
npm --workspace @maka/desktop exec -- playwright test --config e2e/playwright.config.ts e2e/slash-command-menu.spec.ts:87 --repeat-each=10 --workers=1
Two runs of 10 on that commit: 6 failures in 20. It also fails from a full-suite run, so it is not an artifact of --repeat-each.
Not caused by a recent change
Observed while verifying an unrelated UI branch. I checked out main itself and reproduced at the rate above, on a code path that branch does not touch, so this predates it. The CI failure that main showed earlier was a different spec (quote-selection.spec.ts) and is being fixed separately in #2946.
Why it matters
It is the only known flake left in the desktop e2e suite, so it will keep turning main and unrelated PRs red at roughly a 1-in-3 rate per run of this spec, which trains people to re-run rather than read failures.
Starting points
Whether this is a test-timing problem or a real product bug is still open — worth settling first:
If the command group is genuinely rendered for explain /, the defect is in whatever decides the inline menu's groups from the composer text, and the assertion is right to fail.
If it is a stale render from the preceding composer.fill('seed session') / turn-completion step, the test needs to wait for the menu to settle for the new query rather than asserting on whatever is mounted at that instant.
A trace from a failing run is written to apps/desktop/e2e/test-results/slash-command-menu-offers--f3f8e-icit-Skill-queries-separate/trace.zip.
I'm working on this. I'll first determine whether explain / really mounts the command group or whether the spec is asserting against a stale menu from the previous query, then land the smaller of a product fix or a settle wait.
Grok is assisting with the investigation; I will review the change and remain the human contributor of record.
Activity
1625567290 commentedon Aug 13, 2026
I'm working on this. I'll first determine whether
explain /really mounts the command group or whether the spec is asserting against a stale menu from the previous query, then land the smaller of a product fix or a settle wait.Grok is assisting with the investigation; I will review the change and remain the human contributor of record.
简体中文对照
我来做这个。先确认
explain /是真的打开了命令分组,还是测试在看上一轮查询留下的旧菜单,再选更小的修法:改产品逻辑或让断言等到菜单稳定。Grok 协助排查,我会审阅改动并作为 human contributor of record。
Astro-Han commentedon Aug 13, 2026
Assigned!
1625567290 commentedon Aug 13, 2026
I'm not starting this one now — switching to #2959. Please reassign if someone else wants it.
简体中文对照
我这边先不开始这个,转到 #2959。如果有人要做,请重新指派。