Skip to content

fix(desktop): use augmented PATH for readiness probes#1613

Merged
wpfleger96 merged 1 commit into
block:mainfrom
Areson:Areson/fix-codex-readiness-path
Jul 9, 2026
Merged

fix(desktop): use augmented PATH for readiness probes#1613
wpfleger96 merged 1 commit into
block:mainfrom
Areson:Areson/fix-codex-readiness-path

Conversation

@Areson

@Areson Areson commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Why

Packaged desktop launches can have a sparse GUI PATH. Readiness probes resolved the Codex/Claude binary but then ran it without the augmented PATH used for agent startup, so npm shims with /usr/bin/env node could fail before checking login state.

What

  • Run CLI login probes with the same augmented PATH used for managed agent launches
  • Split CLI probe execution into a small readiness submodule and add a Unix regression test for /usr/bin/env node shims
  • Update Codex setup copy to codex login and remove an unused runtime re-export that blocked targeted clippy

Risk Assessment

Low — scoped to desktop managed-agent readiness probes and setup nudge copy. Probe execution still uses the resolved absolute binary path and only augments PATH for child process interpreter lookup.

References

  • ./bin/just desktop-tauri-fmt-check
  • pnpm --dir desktop check:file-sizes
  • ./bin/just desktop-tauri-test
  • Pre-push hooks on fork: check-push-org, rust-tests, desktop-test, desktop-tauri-test, mobile-test
  • ./bin/just desktop-tauri-clippy currently fails on broader existing Tauri warnings outside this PR; not expanded here.

Generated with Codex

@Areson Areson force-pushed the Areson/fix-codex-readiness-path branch 2 times, most recently from 517e9f9 to a2a90be Compare July 8, 2026 00:40
@Areson Areson marked this pull request as ready for review July 8, 2026 01:34
Co-authored-by: Ian Oberst <ioberst@squareup.com>
Signed-off-by: Ian Oberst <ioberst@squareup.com>
Co-authored-by: Codex <noreply@openai.com>
Ai-assisted: true
@Areson Areson force-pushed the Areson/fix-codex-readiness-path branch from a2a90be to ac9b17d Compare July 9, 2026 21:29
@Areson Areson requested a review from a team as a code owner July 9, 2026 21:29

@wpfleger96 wpfleger96 left a comment

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.

thank you!

@wpfleger96 wpfleger96 merged commit 94ec2c2 into block:main Jul 9, 2026
25 checks passed
@Areson Areson deleted the Areson/fix-codex-readiness-path branch July 9, 2026 22:02
wpfleger96 added a commit that referenced this pull request Jul 9, 2026
…o main (#1568 + #1613)

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
matt2e added a commit that referenced this pull request Jul 10, 2026
Desktop Core CI fails with "readiness.rs: 1549 lines (limit 1546)" — a
breakage inherited from main, not from this branch (which only touched
the Justfile). Two PRs raced: #1686 grew readiness.rs and bumped its
override to exactly 1546 with zero headroom, then #1613 landed +3 net
lines (mod cli_probe + the multi-line augmented-PATH probe call)
without touching the override. Each PR was green against its own base;
their merge on main exceeds the limit, so main has been red since
94ec2c2.

Bump the override to the merged total (1549) with a comment in the
file's established style. Verified with the full `pnpm check` gate that
failed in CI.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
wpfleger96 added a commit that referenced this pull request Jul 10, 2026
…o main (#1568 + #1613)

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
wpfleger96 added a commit that referenced this pull request Jul 10, 2026
…o main (#1568 + #1613)

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
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.

2 participants