Skip to content

[Bug]: Project action command gets stuck when the terminal has not been opened #6337

Description

@amitray007

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a project in T3 Code web or desktop and use a thread where the terminal has not been opened yet.
  2. Add a project action named Dev with the command npm run dev.
  3. Run the action from the project actions menu.
  4. Observe the terminal drawer after it opens.
  5. Open the terminal manually before running the same action and compare the result.

Related but not a duplicate: #1527 covered an automatic worktree setup action that used stale worktree context. This report covers an ordinary manually invoked project action and fresh interactive-shell startup.

Expected behavior

The project-action command should execute exactly once, regardless of whether the terminal was previously opened.

Actual behavior

When the terminal has not been opened previously, the terminal drawer opens but the action command gets stuck above the new shell prompt and npm run dev does not start. Running the action works after the terminal has already been opened.

The action path currently opens the terminal and then immediately sends the command through a separate terminal write. On a fresh terminal, interactive shell initialization can race that write.

Impact

Major degradation or frequent failure

Version or commit

main @ 78f462c

Environment

macOS, T3 Code web and desktop clients, zsh interactive shell. Reproduced with a project action running npm run dev.

Logs or stack traces

No application error is emitted. The command appears above the initialized shell prompt instead of executing.

Screenshots, recordings, or supporting files

A screenshot is available showing npm run dev stuck above the project prompt while the dev server remains stopped.

Image

Workaround

Open the terminal drawer and wait for the shell prompt before running the project action.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions