From 59bf45c30de9f4ad44f99d16f407459eaacfa3da Mon Sep 17 00:00:00 2001 From: "Rai (Michael Pokorny)" Date: Tue, 24 Jun 2025 20:44:49 -0700 Subject: [PATCH] wip --- agentydragon/CHANGES.md | 96 +++++++++++++++++++++++++++++ agentydragon/prompts/master-diff.md | 1 + 2 files changed, 97 insertions(+) create mode 100644 agentydragon/CHANGES.md diff --git a/agentydragon/CHANGES.md b/agentydragon/CHANGES.md new file mode 100644 index 0000000000..036fbe2fdf --- /dev/null +++ b/agentydragon/CHANGES.md @@ -0,0 +1,96 @@ +# codex-rs Changelog (HEAD vs main) + +This document summarizes the **codex-rs** related changes introduced on the `agentydragon` branch (HEAD) compared to `main`. It covers new features, configuration options, and usage examples. + +## 1. Session resume and playback + +**Added** a new `session` subcommand to resume TUI sessions by UUID: + +```bash +# Start or resume a session by UUID: +codex session 123e4567-e89b-12d3-a456-426614174000 +``` + +The TUI now records your session transcript under: + +``` +sessions/rollout-.jsonl +``` + +APIs exposed in code (`tui` crate): +- `set_session_id` +- `session_id` +- `replay_items` + +On exit, Codex prints a resume reminder: + +```text +Resume this session with: codex session 123e4567-e89b-12d3-a456-426614174000 +``` + +## 2. codex-core enhancements + +Exposed core model types and added a new TUI configuration setting: + +```toml +## config.toml +[core] +# Core model types available programmatically: +# ContentItem, ReasoningItemReasoningSummary, ResponseItem + +[tui] +# Maximum number of rows for the composer input area +composer_max_rows = 10 +``` + +## 3. Dependency updates + +- Added the `uuid` crate to `codex-rs/cli` and `codex-rs/tui` for stable session identifiers. + +## 4. Pre-commit config changes + +- Updated `.pre-commit-config.yaml` to fail Rust builds on warnings: + +```yaml +- repo: local + hooks: + - id: rust-build + entry: bash -lc 'cd codex-rs && RUSTFLAGS="-D warnings" cargo build --workspace --locked' +``` + +## 5. TUI improvements + +### 5.1 Undo feedback decision with Esc key + +Pressing `Esc` in feedback-entry mode now cancels feedback and returns to the select menu, preserving partially entered text. + +```rust +// New unit test in tui/src/user_approval_widget.rs +#[test] +fn esc_cancels_feedback_entry() { + // ... +} +``` + +### 5.2 Restore inline mount DSL and slash-command dispatch + +Reintroduced support for inline `/mount-add` and `/mount-remove` commands, plus proper slash-command dispatch from the popup: + +```text +# Within the composer, type: +/mount-add /path/to/dir +/mount-remove /path/to/dir +``` + +### 5.3 `/edit-prompt` opens external editor + +The `/edit-prompt` slash command now invokes your configured `$EDITOR` for prompt drafting (in addition to `Ctrl+E`): + +```text +# In the TUI composer: +/edit-prompt +``` + +--- + +*End of codex-rs changelog.* diff --git a/agentydragon/prompts/master-diff.md b/agentydragon/prompts/master-diff.md index e765040575..4a5a7f754a 100644 --- a/agentydragon/prompts/master-diff.md +++ b/agentydragon/prompts/master-diff.md @@ -1,3 +1,4 @@ Read the full diff between HEAD and main and produce a list of everything that was added/removed. Include examples of how to use the features, how to configure them, etc. Use Markdown format. Write into $(git rev-parse --show-toplevel)/agentydragon/CHANGES.md. Delete it if it already exists. +Only document changes under codex-rs.