Repository navigation
fix(land): cli-launch failures end needs_human; codex login preflight - #692
Conversation
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. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
| Layer / File(s) | Summary |
|---|---|
Authentication and review failure handling examples/land/land.flow.ts, examples/land/tests/flow.test.ts |
The flow throws NeedsHuman when the Codex login check fails. After certain unsuccessful reviews, it also throws NeedsHuman if the log tail indicates an unresolved CLI or login error. Test mocks simulate these conditions, and tests verify the resulting status and that no fix round starts for the adversarial review failure. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
- AgentWorkforce/flows#690: Passes the configured harness to review flows; this PR handles CLI-launch failures from those flows and adds a Codex login preflight.
- AgentWorkforce/flows#687: Adds the land flow that this PR updates.
Merge Risk: 
Moderate · previous review 508d3
-
The new needs_human handling for CLI and login failures has two gaps. A stale review report can still push an old finding into a fix round after a failed CLI launch. A failed Codex login check on a later stage may not mark the run as needing a human, so a retry can repeat the same step. Fix both before merging.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 2 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the login light,
Then reads the review log at night.
If launch errors linger in the trail,
It asks a human, not a tale.
The fix round waits; the checks are done.
There was a problem hiding this comment.
Devin Review found 3 potential issues.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 508d3363c4
ℹ️ 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".
[Medium impact] The changes affect agent startup and model choices in two example workflows. The model-check exemption must be removed before merging.
|
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
6bd7692 to
f7dc31a
Compare
|
Local model-pin gate on f7dc31a ( Also pushed: preflight moved after runner.setup (post- |
f7dc31a to
62e326b
Compare
There was a problem hiding this comment.
All reported issues were addressed across 6 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
First production shadow run (lr_dd097d26c48c4685b4361a95b622c50b) died at C-1:
agent_cli_unresolved— codex is not authenticated in stage sandboxes (connected cliCredentials are interactive-only). Two changes:codex login statuspreflight at stage entry (shared HOME across the run's steps) — a missing credential ends needs_human immediately, not inside a review or fix step.agent_cli_unresolved,login status) ends needs_human instead of inventing arun-failedblocker for the fix rounds.The credential side lands separately in cloud (executor runs
codex login --with-api-keyfrom the deliveredOPENAI_API_KEYwhen noCLI_CREDENTIALSmount exists). 83/83 tests, tsc clean.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Fixes flow handling so CLI launch failures end
needs_humaninstead of unrepairable fix rounds or cryptic mid-run failures, and pins broker sessions to supported CLI/model pairs.codex login statuspreflight at stage entry for codex harnesses; a missing credential endsneeds_humanbefore any review or fix step runs.agent_cli_unresolved,cli_unresolved,login status) endneeds_humaninstead of inventing a run-failed blocker for the fix rounds.cliandmodelare literal keys the Cloud model-pin gate can prove statically.claude,codex, orcursor-agent, each mapped to a fixed model (claude-sonnet-5,gpt-5.6-sol,gpt-5.6-sol-high); unsupported selections endneeds_humanbefore commands or sessions start.The credential delivery itself lands separately in cloud, which runs
codex login --with-api-keyfrom the deliveredOPENAI_API_KEYwhen noCLI_CREDENTIALSmount exists.Written for commit 62e326b. Summary will update on new commits.
Agent Relay sessions
devinsessiongorgeous· opened viagh pr create· last active 2026-11-02