Skip to content

Just-Boring-Cat/codex-thread-renamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI logo

Codex Thread Renamer

Thread renamer for OpenAI ChatGPT/Codex VS Code extension

GitHub release License Last commit Repo size VS Code

Patch the installed VS Code openai.chatgpt extension so you can rename Codex threads from the UI.

Prerequisites

Install these before using the patcher:

  • VS Code
  • OpenAI ChatGPT/Codex VS Code extension (openai.chatgpt) installed
  • Node.js (used to run the patcher CLI)
  • sqlite3 CLI available in PATH (used by the runtime patch for cache fallback patching)

Recommended:

  • git (for updating/reapplying the patcher repo)

Important

This project modifies the installed OpenAI ChatGPT/Codex VS Code extension files on your machine.

  • It patches the extension manifest/runtime/webview loader.
  • It adds injected patch files used by the rename feature.
  • It creates timestamped backups before writing changes.

Use verify before apply, and reapply after updating the OpenAI extension.

Visual Preview

Right-click rename action in Codex thread list

Rename thread context menu

Choose thread to rename (Command Palette flow)

Choose thread to rename

What It Adds

  • Rename Codex Thread command in the Command Palette
  • Right-click Rename Thread action in the Codex thread list
  • Live title updates in the open Codex UI
  • Persistent rename via Codex backend rename RPC
  • Cache patching fallback so stale titles do not come back

Quick Start

node bin/codex-thread-renamer-patch.js status
node bin/codex-thread-renamer-patch.js verify
node bin/codex-thread-renamer-patch.js apply

Then restart the VS Code window or run Developer: Restart Extension Host.

Usage

After patching and reloading VS Code:

  1. Open the Codex sidebar.
  2. Rename a thread using either:
    • Command Palette -> Rename Codex Thread
    • Right-click a thread title -> Rename Thread

Commands

  • status - Check whether the installed extension appears patched
  • verify - Validate extension signatures before patching
  • apply - Apply the patch and write backups

Optional flags:

  • --extension-dir <path> - Target a specific openai.chatgpt-* install folder
  • --dry-run - Show what would change without writing files

Docs

Known Issue

  • Canceling the rename prompt currently shows:
    • Codex rename patch: Rename cancelled.
  • This is a UX issue only.
  • Tracked in:

Contributing

Contributions are welcome.

  • You can fork the repo and open a pull request.
  • You can also contribute directly with a branch and pull request if you have access.
  • Please do not push directly to main, the repo uses PR-first protection.
  • If you are not sure where to start, open an issue or pick an existing one:

License

LICENSE

About

Patch the VS Code OpenAI ChatGPT/Codex extension to add live thread rename from the UI.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors