Skip to content

test(mcp-server): desktop input captures live test flakes in desktop_wait under load #268

Closed

Description

@ElbertePlinio

Found while fixing #222 (PR #257).

packages/mcp-server/test/desktop-input-captures-live.test.ts sometimes fails before typing starts. Under 10 to 15 busy loops on one pinned CPU, desktop_wait {stableMs: 1300, timeoutMs: 8000} returned ok: false at line 31. In one run the desktop_double_click xdotool child was SIGKILLed at line 50, which may be the outside killer in #253. Neither failure is related to typing.

  • Size the stable wait for a loaded host without weakening what it proves
  • Repeat-run evidence under load

Activity

  1. added
    bug
    on Oct 6, 2026
  2. ElbertePlinio commented on Oct 7, 2026

    @ElbertePlinio
    MemberAuthor

    Re-checked after the host RTTIME fix from #253. Four rounds of two concurrent full suites on main be2d00c did not reproduce this, and no test process was SIGKILLed. The issue describes a timing assumption in the test code, so it stays open. A starved-CPU run, as in the original report, is still the way to confirm the fix.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions