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

openedAug 12, 2026byAamitray007

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 @ 78f462c4e18c

Environment

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

Logs or stack traces

shell
1No 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.

Workaround

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

Note

This is an automated response from a bot acting on maria's behalf. This issue has had no activity since 2026-08-12. Is it still relevant on the current version? If so, your version and OS would help.