Skip to content

🤖 perf: the migration name claim can take over 2 s on Windows #5596

Description

@ThomasK33

On Windows CI, the bash tool's migration name claim (BackgroundProcessManager.claimMigrationProcessId, awaited in tools/bash.ts before the exit check) sometimes takes more than 2 s. That was the root cause of the #5593 flake. #5595 made the tests independent of this latency. A name claim should normally take milliseconds, and when the user presses "send to background", a slow claim is visible as lag. It also turns commands that finish during the claim into normal completions.

Next step: measure the claim on Windows (spawn-lock acquisition, record-directory probes) and find what takes seconds. This is a performance question, not a correctness bug.

Found by the final check of #5595.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $47.22

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions