Skip to content

test(agent): compare the quiet-shell cwd against the canonical folder - #1398

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-tmpcanon-maple
Oct 31, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-tmpcanon-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the nightly failure in issue #1390.

What broke

quiet_shell_reports_effective_folder_deadline_and_idle_time_until_stop (added in #1378) fails on every agent-full-macos run since that PR merged. It's not flaky: it fails on every master push from 3c3bb67 through 95cb454, and in the 10-30 scheduled run.

left:  String("/private/tmp/nix-shell.xlym9H/.tmpMxPxHh")
right: String("/tmp/nix-shell.xlym9H/.tmpMxPxHh")

The session stores its project root canonicalized, so the shell-progress cwd is the real folder (/private/tmp/... on macOS). The test compared it against the raw tempdir path. The test next to it in the same file already canonicalizes both sides. This PR does the same; the product code doesn't change.

It slipped through because agent-full-macos doesn't run on PRs, only on master pushes and the nightly run.

Verification (local, macOS, agent nix shell)

  • Before the fix, TMPDIR=/tmp/...: cargo test -p maple-agent --lib quiet_shell_reports fails with the same /private/tmp vs /tmp diff.
  • After the fix: cargo test -p maple-agent --lib shell_tests passes 2/2 with both TMPDIR=/tmp/... and the default nix TMPDIR.
  • cargo fmt --all -- --check is clean, and the pre-commit hook passes.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

The session stores its project root canonicalized, so on macOS a tempdir
under /tmp reports /private/tmp. The assertion compared against the raw
tempdir path and failed on every agent-full-macos run since #1378.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AnthonyRonning
AnthonyRonning merged commit e3bfa79 into master Oct 31, 2026
22 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-tmpcanon-maple branch October 31, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant