core-agent-ide/codex-rs/tui
Michael Bolin 50f53e7071
feat: add path field to ParsedCommand::Read variant (#5275)
`ParsedCommand::Read` has a `name` field that attempts to identify the
name of the file being read, but the file may not be in the `cwd` in
which the command is invoked as demonstrated by this existing unit test:


0139f6780c/codex-rs/core/src/parse_command.rs (L250-L260)

As you can see, `tui/Cargo.toml` is the relative path to the file being
read.

This PR introduces a new `path: PathBuf` field to `ParsedCommand::Read`
that attempts to capture this information. When possible, this is an
absolute path, though when relative, it should be resolved against the
`cwd` that will be used to run the command to derive the absolute path.

This should make it easier for clients to provide UI for a "read file"
event that corresponds to the command execution.
2025-10-17 06:19:54 +00:00
..
frames Login flow polish (#3632) 2025-09-15 00:42:53 -07:00
src feat: add path field to ParsedCommand::Read variant (#5275) 2025-10-17 06:19:54 +00:00
tests feat: add Vec<ParsedCommand> to ExecApprovalRequestEvent (#5222) 2025-10-15 13:58:40 -07:00
Cargo.toml Add log upload support (#5257) 2025-10-16 21:03:23 -07:00
prompt_for_init_command.md chore: rename INIT.md to prompt_for_init_command.md and move closer to usage (#1886) 2025-08-06 11:58:57 -07:00
styles.md fix: stop using ANSI blue (#2421) 2025-08-18 16:02:25 +00:00