Skip to content

Spread AbsolutePathBuf#17792

Merged
pakrym-oai merged 12 commits into
mainfrom
pakrym/core-cwd-absolute-full-ci
Apr 14, 2026
Merged

Spread AbsolutePathBuf#17792
pakrym-oai merged 12 commits into
mainfrom
pakrym/core-cwd-absolute-full-ci

Conversation

@pakrym-oai

@pakrym-oai pakrym-oai commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Mechanical change to promote absolute paths through code.

@pakrym-oai pakrym-oai changed the title Refactor cwd handling to use absolute paths Spread AbsolutePathBuf Apr 14, 2026
…ute-full-ci

# Conflicts:
#	codex-rs/core/src/turn_metadata.rs
#	codex-rs/core/src/turn_metadata_tests.rs
@pakrym-oai pakrym-oai force-pushed the pakrym/core-cwd-absolute-full-ci branch from 17ff20b to bf49d6e Compare April 14, 2026 17:45
AbsolutePathBuf::from_absolute_path(cwd.as_path())
} else {
let base = path.parent().unwrap_or(path.as_path());
AbsolutePathBuf::from_absolute_path(base.join(cwd.as_path()))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this use AbsolutePathBuf::resolve_path_against_base() instead?

unreachable!("loop ensures we break on command execution items");
};
assert_eq!(cwd, second_cwd);
assert_eq!(cwd.as_path(), second_cwd.as_path());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is assert_eq!(cwd, second_cwd); no longer an option?

assert!(command.contains("sleep 0.01"));
assert!(command.contains(&release_marker.display().to_string()));
assert_eq!(cwd, workspace);
assert_eq!(cwd.as_path(), workspace.as_path());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@pakrym-oai pakrym-oai merged commit dd1321d into main Apr 14, 2026
39 of 46 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/core-cwd-absolute-full-ci branch April 14, 2026 21:26
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants