Skip to content

VSCode / Swift / Codex Deadlock #12777

Open

Description

@samdeane

What version of the Codex App are you using (From “About Codex” dialog)?

26.224.1209 (697)

What subscription do you have?

Plus

What platform is your computer?

26.3 (25D125) / Darwin 25.3.0 arm64 arm

What issue are you seeing?

This is a problem that happens on macOS with VSCode and the swift plugin.

The problem is that as soon as code changes, the VSCode/Swift-plugin combination will kick off a new build.

If Codex then tries to run swift build or swift test, it will hit the standard Swift message saying "Another instance of SwiftPM (PID: 19511) is already running ... waiting until that process has finished execution...".

That ought to be ok, but somehow it periodically manages to trigger the same state inside VSCode.

This leaves both Codex and VSCode/Swift-plugin deadlocked waiting for the other one to finish.

Responsibility is likely shared for this problem, but it would be good if Codex was aware of the possibility, and could mitigate against it in some way. For example by timing out and retrying its swift command if it spots a likely deadlock.

I can see that this might be someone else's bug, but the interactions with Codex are the only time I've ever seen this kind of thing resolve in a deadlock. Normally another process wins, finishes its swift command, and then the waiting command resumes.

What steps can reproduce the bug?

Open a SwiftPM project in VSCode, with the official Swift plugin installed.

Open the same project in the Codex app.

Ask Codex to perform an action that will result in a code change, and then in Codex trying to run swift build or swift test

What is the expected behavior?

Ideally the commands should just succeed. If Codex does hit a message about another process building, it should successfully wait for that to succeed, and then its own command(s) should succeed.

Additional information

No response

Activity

  1. added
    app
    on Feb 25, 2026
  2. added
    bug
    extension
    tool-calls
    on Feb 25, 2026
  3. removed
    extension
    tool-calls
    on Mar 5, 2026
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

    appbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions