Windows: integrated terminal immediately closes in projects with hyphens in folder name
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.831.20005
What subscription do you have?
Plus
What platform is your computer?
Windows x64
What issue are you seeing?
The integrated terminal opens briefly and then immediately closes for some projects.
The problem appears correlated with hyphens in the project folder name.
Examples:
Terminal works:
C:\Users\Jayhilwig\PROJECTS\whitehousewar
C:\Users\Jayhilwig\PROJECTS\srcgpt
C:\Users\Jayhilwig\PROJECTS\eatsafely
Terminal immediately closes:
C:\Users\Jayhilwig\PROJECTS\safe-food
C:\Users\Jayhilwig\PROJECTS\codex-usage
The strongest reproduction is safe-food vs eatsafely:
I cloned the same Safe Food repository/codebase from the hyphenated folder:
C:\Users\Jayhilwig\PROJECTS\safe-food
to:
C:\Users\Jayhilwig\PROJECTS\eatsafely
The integrated PowerShell terminal immediately closes in safe-food, but opens and remains usable normally in eatsafely.
This began after updating Codex Desktop to version 26.831.20005.
I also tried both Repair and Reset from Windows Apps settings, and neither fixed the issue.
PowerShell itself appears healthy. I tested the Codex/runtime PowerShell externally and received:
PowerShell 7.6.4
Exit code: 0
What steps can reproduce the bug?
-
On Windows, open Codex Desktop 26.831.20005.
-
Open a project whose folder name contains a hyphen, for example:
C:\Users\Jayhilwig\PROJECTS\safe-food
-
Try to open the integrated PowerShell terminal.
-
The terminal panel appears briefly, then immediately closes.
-
Open the same repository from an equivalent folder without a hyphen, for example:
C:\Users\Jayhilwig\PROJECTS\eatsafely
-
Open the integrated terminal again.
-
The terminal opens normally and remains usable.
I can reproduce the same failure with:
C:\Users\Jayhilwig\PROJECTS\codex-usage
while non-hyphenated projects such as whitehousewar and srcgpt work normally.
What is the expected behavior?
The integrated terminal should open and remain usable regardless of whether the project/workspace folder name contains a hyphen.
Additional information
The behavior appears path/workspace-specific rather than shell-specific.
Troubleshooting already performed:
- Fully quit and restarted Codex Desktop
- Tested in new chats
- Windows Apps > Repair
- Windows Apps > Reset
- Verified PowerShell launches independently
- Verified Codex/runtime PowerShell reports PowerShell 7.6.4 and exits successfully with code 0
The same repository works when cloned/opened from a hyphen-free folder.
I have not confirmed that every hyphenated Windows path fails, so the safest description is that the issue appears strongly correlated with hyphenated workspace folder names.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are identified in the report. Start by reproducing the integrated PowerShell terminal failure in Codex Desktop 26.831.20005 with C:\Users\Jayhilwig\PROJECTS\safe-food, then compare it with the working eatsafely path. Done means the terminal opens and remains usable for workspace folders containing hyphens.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, rust
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100