TUI should emit OSC 7 when its working directory changes
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- PR merge metrics
- PR metrics pending
Description
What variant of Codex are you using?
CLI
What feature would you like to see?
When you resume a session in a different working directory, Codex needs to tell the terminal emulator which directory it is using. OSC 7 is the standard way to do that.
This is supported by modern Linux/macOS terminals and by Windows Terminal following
https://github.com/microsoft/terminal/pull/20019
I don't know what other behaviours in codex may need this other than resume, there may be some.
Additional information
In my case, I want this so Ctrl+Shift+T opens the same working directory as codex is using. I'm using ghostty
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
Trace the CLI TUI session-resume path and the code that emits terminal control sequences. Check how the working directory is tracked when a session resumes, then implement OSC 7 emission for directory changes. Done means the terminal receives the updated directory, including when resuming in a different working directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100