Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 58919753ee
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if info, err := os.Lstat(filepath.Join(targetPath, ".git")); err == nil && info.IsDir() { | ||
| return filepath.Join(targetPath, ".git", markerDirName, InitializedMarkerFilename) | ||
| } | ||
| return filepath.Join(targetPath, markerDirName, InitializedMarkerFilename) |
There was a problem hiding this comment.
Keep the marker path stable for root Git clones
When a workspace clones a repository into dir: ".", workspaceMarkerPath is evaluated before cloneRepos, while .git is still absent, so the first run writes <workspace>/.ax/initialized. On the next runner start, .git exists and this helper switches to <workspace>/.git/.ax/initialized, misses the marker, and reruns setup; fetchRepo then uses git checkout -f FETCH_HEAD, which resets tracked edits. Keep the marker path stable across the clone.
Useful? React with 👍 / 👎.
| } | ||
|
|
||
| markerPath := filepath.Join(AXDir, MarkerName(targetPath)) | ||
| markerPath := workspaceMarkerPath(targetPath) |
There was a problem hiding this comment.
Update the E2E assertion to the workspace marker path
For the root-clone fixture in TestE2E_WorkspaceSetup_FilesAndGit, this code writes the marker under /workspace/primary/.ax/initialized, but the test still checks /ax/initialized-workspace-primary and requires MARKERS_OK; that E2E test will fail. Update the assertion to match the new marker location.
AGENTS.md reference: AGENTS.md:L105-L106
Useful? React with 👍 / 👎.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 58919753ee
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if info, err := os.Lstat(filepath.Join(targetPath, ".git")); err == nil && info.IsDir() { | ||
| return filepath.Join(targetPath, ".git", markerDirName, InitializedMarkerFilename) | ||
| } | ||
| return filepath.Join(targetPath, markerDirName, InitializedMarkerFilename) |
There was a problem hiding this comment.
Avoid overwriting a declared workspace file
When a workspace has no root Git repository and declares a file at .ax/initialized, writeFiles writes the user's content before writeMarker replaces that path with marker data. Workspace validation permits this path, so setup silently corrupts the declared file; use a non-conflicting marker path or reject the collision.
Useful? React with 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
6a39594 to
c0fa710
Compare
c0fa710 to
c9a8642
Compare
…#518) The marker lived under /ax, which a volumes-only resume does not restore, so setup reran and could overwrite the agent's edits. Write it under the workspace instead: .git/.ax/initialized for a Git repo, otherwise .ax/initialized. Migrate a legacy marker only when it names this workspace. Refuse a marker path that is a symbolic link. Keep an existing inlined file on a rerun. Make MarkerName portable across path separators. Check the marker path in the E2E test and in the runner test.
c9a8642 to
ffb4b43
Compare
Fixes google#518. The maiden-run marker lived under /ax, which a volumes-only resume does not restore, so setup reran and could overwrite the agent's edits. The marker now lives on the workspace volume: .git/.ax/initialized for a Git repo, otherwise .ax/initialized. A marker left under /ax by an earlier version is migrated.
Tests: internal/workspace, runner, and test/e2e pass on Linux. On Windows, TestMarkerName fails; that is pre-existing and not changed here.
🤖 Generated with Claude Code