You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Opening a terminal waits for a running Commit & Push in the same project #43109
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Open a project that is a Git repository with a remote.
Start Commit & Push from the Git actions menu, with the commit message left for the model to write.
While it runs, open a terminal in a thread of the same project.
Expected behavior
The terminal opens right away, as it does when no Git action is running (about 100 ms here).
Actual behavior
The terminal stays empty until Commit & Push finishes, 6 to 7 seconds here. The shell itself then starts in about 50 ms.
Terminal startup and Git actions take the same per-folder lock (withWorkspaceLease). runStackedAction holds it for the whole action, including commit message generation and git push, so terminal.open waits behind it. The lock is there so storage cleanup cannot delete a folder while a terminal starts in it, but commits, pushes, and branch switches never delete the folder.
Impact
Minor bug or occasional failure
Version or commit
0.1.13-nightly.20261125.5258
Environment
Windows 11 Pro, T3 Code desktop, PowerShell 7 terminal, Codex writing commit messages
Logs or stack traces
# server.trace.ndjson, every terminal.open from one session# wait = time before terminal.openLocked started, spawn = terminal.openLocked
terminal.open 106 ms wait 3 ms spawn 100 ms (no Git action running)
terminal.open 5941 ms wait 5896 ms spawn 43 ms git.runStackedAction started 2.0 s earlier, push ended at +5674 ms
terminal.open 6900 ms wait 6841 ms spawn 57 ms git.runStackedAction started 1.2 s earlier, push ended at +6612 ms
terminal.open 7261 ms wait 7212 ms spawn 47 ms git.runStackedAction started 1.7 s earlier, push ended at +6982 ms
In each slow case terminal.openLocked begins about 200 ms after GitManager.pushCurrentBranch ends.
Workaround
Wait for Commit & Push to finish before opening a terminal in that project.
Activity