mirror of
https://github.com/openai/codex.git
synced 2026-11-02 19:43:24 +00:00
agentydragon
This file documents the changes introduced on the agentydragon branch
(off the main branch) of the codex repository.
codex-rs: session resume and playback
- Added
sessionsubcommand to the CLI (codex session <UUID>) to resume TUI sessions by UUID. - Integrated the
uuidcrate for session identifiers. - Updated TUI (
codex-rs/tui) to respect and replay previous session transcripts:- Methods:
set_session_id,session_id,replay_items. - Load rollouts from
sessions/rollout-<UUID>.jsonl.
- Methods:
- Printed resume command on exit:
codex session <UUID>.
codex-core enhancements
- Exposed core model types:
ContentItem,ReasoningItemReasoningSummary,ResponseItem. - Added
composer_max_rowssetting (with serde default) to TUI configuration.
Dependency updates
- Added
uuidcrate tocodex-rs/cliandcodex-rs/tui.
Pre-commit config changes
- Configured Rust build hook in
.pre-commit-config.yamlto fail on warnings by settingRUSTFLAGS="-D warnings".
codex-rs/tui: Undo feedback decision with Esc key
- Pressing
Escin feedback-entry mode now cancels feedback entry and returns to the select menu, preserving the partially entered feedback text. - Added a unit test for the ESC cancellation behavior in
tui/src/user_approval_widget.rs.
codex-rs/tui: restore inline mount DSL and slash-command dispatch
- Reintroduced logic in
ChatComposerto dispatchAppEvent::InlineMountAddandAppEvent::InlineMountRemovewhen/mount-addor/mount-removeis entered with inline arguments. - Restored dispatch of
AppEvent::DispatchCommandfor slash commands selected via the command popup, including proper cleanup of the composer input.
codex-rs/tui: slash-command /edit-prompt opens external editor
- Fixed slash-command
/edit-promptto invoke the configured external editor for prompt drafting (in addition to Ctrl+E).
codex-rs/tui: display context remaining percentage
- Added module
tui/src/context.rswith heuristics (approximate_tokens_used,max_tokens_for_model,calculate_context_percent_remaining). - Updated
ChatWidgetandChatComposer::render_refto track history items and render<N>% context leftindicator with color thresholds. - Added unit tests in
tui/tests/context_percent.rsfor token counting and percent formatting boundary conditions.
codex-rs/tui: compact Markdown rendering option
- Added
markdown_compactconfig flag under UI settings to collapse heading-content spacing when enabled. - When enabled, headings render immediately adjacent to content with no blank line between them.
- Updated Markdown rendering in chat UI and logs to honor compact mode globally (diffs, docs, help messages).
- Added unit tests covering H1–H6 heading spacing for both compact and default modes.
Documentation tasks
Tasks live under agentydragon/tasks/ as individual Markdown files. Please update each task’s Status and Implementation sections in place rather than maintaining a static list here.
Branch & Worktree Workflow
- Branch convention: work on each task in its own branch named
agentydragon-<task-id>-<task-slug>, to avoid refname conflicts. - Worktree helper: in
agentydragon/tasks/, run: -
-
Accept a full slug (NN-slug) or two-digit task ID (NN), optionally multiple; use --tmux to open each in a tmux window:
- create-task-worktree.sh [--agent] [--tmux] <task-slug|NN> [<task-slug|NN>...]
-
- Without
--agent, this creates or reuses a worktree at agentydragon/tasks/.worktrees/<task-id>-<task-slug>off theagentydragonbranch.- With
--agent, after setup it launches a Codex agent in that workspace, - preloaded to work on the specified task from its Markdown file.
- After the Developer agent finishes and updates the task file, the Commit agent will automatically stage and commit the changes with an appropriate commit message. You do not need to run
git commitmanually.
This README was autogenerated to summarize changes on the agentydragon branch.