Skip to content

Paddock 2.8.0: Codex sessions, and the rename - #1

Merged
barath-dev merged 3 commits into
mainfrom
codex-support
Nov 20, 2026
Merged

barath-dev merged 3 commits into
mainfrom
codex-support

Conversation

@barath-dev

Copy link
Copy Markdown
Owner

Two commits for 2.8.0.

Codex sessions, beside Claude Code (843884c)

  • Codex accounts (~/.codex, ~/.codex-*), found by setup or added with account add NAME --tool codex.
  • Saved Codex conversations listed, searched, renamed and resumed with Codex's own titles, and counted in Usage by model.
  • Running Codex windows found and matched to their conversation. Turns still running in Codex's background service after their window closed are listed too. Close stops the turn and the commands it left in background terminals.
  • The loop check reads Codex's patches and failing commands.
  • Fixes: a key pressed while Resume or Log in opened a terminal on macOS could run the command as another account; a zombie server in a container without init was waited on for 60 s.

Now called Paddock (3e8634f)

  • Command, program, settings folder, shortcuts and release files are named paddock; cc-sessions keeps working.
  • First run moves ~/.config/cc-sessions to ~/.config/paddock (link left behind on macOS/Linux), adds the paddock command and replaces the app shortcut.
  • 2.7 installs can update to it: releases also carry cc-sessions-* copies, --version says cc-sessions under an old name, and the ping still answers cc-sessions.

Tested

  • 42 unit and 19 end-to-end tests; clippy clean for macOS, Windows and Linux targets.
  • Against the real Codex CLI 0.169/0.170 on macOS and Linux.
  • A real 2.7.2 install self-updating to this build from a local stand-in release.
  • Not yet run on Windows: this PR's CI is the first run there. Running Codex sessions are not found on Windows yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o

barath-dev and others added 3 commits November 18, 2026 18:47
- Codex accounts: ~/.codex and ~/.codex-* folders are found by setup and
  listed under folders not registered yet; account add takes --tool codex.
  Sign-in (ChatGPT plan or API key), login, shortcuts (codex-NAME) and
  resume work as for Claude Code.
- Saved Codex conversations (rollouts, and the .jsonl.zst files Codex
  compresses) are listed, searched, renamed and resumed, with Codex's own
  titles; a codex review is named after what it reviews. Usage counts
  their tokens by model, without counting a fork's parent twice.
- Running Codex windows are found from the process list and matched to
  their conversation by the file they hold, the conversation they resume
  (by id or title), or their folder, several windows in one folder each to
  their own. Status comes from the conversation file, and from Codex's
  background service for a pending approval.
- Turns and commands still running in the background service after their
  window was closed are listed too. Close stops the turn (turn/interrupt)
  and the commands it left in background terminals, then the window; a
  --no-daemon window's command process groups are ended with it.
- The loop check reads Codex's patches and failing commands, also from
  code-mode scripts.
- Fixed: on macOS, a key pressed while Resume or Log in opened a terminal
  window could make the command run as another account. The line is now
  cleared first, and the command is typed as env VAR=folder program.
- Fixed: on Linux, a stopped server left as a zombie (in a container with
  no init) was waited on for 60 s.
- An account a pre-Codex version saved without its tool is read as Codex
  when its folder is ~/.codex or ~/.codex-*.
- cc-sessions close skips the Codex session it runs in (CODEX_THREAD_ID).

Tested against the real Codex CLI 0.169 (and its 0.170 background
service) on macOS, and in Docker on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o
Claude Sessions (cc-sessions) is renamed Paddock, since it is no longer
only for Claude. The command, program, settings folder, shortcuts and
release files are named paddock; installs from before keep working.

- First run of the new version moves ~/.config/cc-sessions to
  ~/.config/paddock (%APPDATA%\paddock on Windows), leaving a link at the
  old path on macOS and Linux. The program stays where it was installed.
- A paddock command is added beside cc-sessions, and a saved command name
  of cc-sessions becomes paddock. The app shortcut (Paddock.app,
  paddock.desktop, Paddock.lnk) and the fish file replace the old ones.
- setup rewrites the old aliases line and comment in the shell file to
  the new ones, with a .paddock-backup.
- PADDOCK_* environment variables, falling back to CC_SESSIONS_*.
- 2.7 can update to this: releases also carry the files under their old
  cc-sessions-* names, the program says cc-sessions in --version when run
  under such a name, and the server's ping still answers cc-sessions.
  GitHub forwards the old repository address.
- The installers update an install in the old place where there is one.

Tested by updating a real 2.7.2 install (setup with shortcut) from a local
stand-in release: settings, accounts, shortcuts and the shell line carried
over, and both commands start the new server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o
- Usage left out the tokens of sub-agents, which Claude Code saves under
  <folder>/<session>/subagents/ (a workflow's agents a folder further
  down). They now count with the session that started them: in its
  tokens, by model and by hour. The loop check still weighs only the
  session's own tokens against its own edits.
- Tests: leave out PATH folders that hold a paddock program. On Windows
  cargo puts the one it built on PATH, where the rename's first run took
  the paddock command name as already taken.
- Help: the first lines line up again after the rename.

Claude Code's own figures stay higher: they count a reply once for each
line it is written over, and by UTC day.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o
@barath-dev
barath-dev merged commit e5129da into main Nov 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant