core-agent-ide/codex-rs/tui/src/chatwidget
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
..
snapshots feat(tui): Add confirmation prompt for enabling full access approvals (#4980) 2025-10-16 17:31:46 -07:00
agent.rs chore: enable clippy::redundant_clone (#3489) 2025-09-11 11:59:37 -07:00
interrupts.rs refactor onboarding screen to a separate "app" (#2524) 2025-08-20 20:47:24 +00:00
session_header.rs Add session header to chat widget (#3592) 2025-09-14 17:53:50 -07:00
tests.rs feat: add path field to ParsedCommand::Read variant (#5275) 2025-10-17 06:19:54 +00:00