openai / openai/codex

TUI should emit OSC 7 when its working directory changes

Open
#38,229 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

CLI enhancement TUI
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.