Repository navigation
Paddock 2.8.0: Codex sessions, and the rename - #1
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two commits for 2.8.0.
Codex sessions, beside Claude Code (843884c)
~/.codex,~/.codex-*), found by setup or added withaccount add NAME --tool codex.Now called Paddock (3e8634f)
paddock;cc-sessionskeeps working.~/.config/cc-sessionsto~/.config/paddock(link left behind on macOS/Linux), adds thepaddockcommand and replaces the app shortcut.cc-sessions-*copies,--versionsays cc-sessions under an old name, and the ping still answers cc-sessions.Tested
🤖 Generated with Claude Code
https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o