Skip to content

examples: pin cli in pr-review-pipeline and stale-issues so the Deploy Flow button works on Cloud - #477

Merged
khaliqgant merged 1 commit into
mainfrom
fix/examples-pin-cli
Sep 18, 2026
Merged

khaliqgant merged 1 commit into
mainfrom
fix/examples-pin-cli

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Live finding, production, 2026-09-18: with cloud #3795 deployed, the pr-review-pipeline listener deployed from the README button fired on a pull request (run 2634a289, 25s after the push) and the run was refused:

REFUSED [invalid_spec] agent_cli_unresolved: Step "agent-4" has no CLI at step, flow, or project level. No flows.json was found from "/home/daytona/.relayflow-v2-supervisor/…"

A Cloud sandbox has no flows.json, so an authored flow whose agents don't pin cli: can never run there. software-factory already pins it; pr-review-pipeline and stale-issues (f.llm) did not. This pins cli: "claude" in both and adjusts the pr-review-pipeline README (no flows.json needed). The README buttons read the source from main, so this fixes them on merge with no runtime pin move.

Companion (cloud): the executor should write a flows.json from the deployment's declared harness so flows without a pin also work — tracked separately.

🤖 Generated with Claude Code


Summary by cubic

Pins the agent CLI in the pr-review-pipeline and stale-issues examples so their Deploy Flow buttons work on Cloud. Cloud sandboxes have no flows.json, so these flows previously failed on Cloud with agent_cli_unresolved; each agent now pins cli: "claude" directly. Also updates the pr-review-pipeline README so a local flows.json is no longer required.

Written for commit 5d37718. Summary will update on new commits.

Review in cubic

… the deploy button works on Cloud

Proven on production 2026-09-18: the deployed pr-review-pipeline listener
fired on a pull request (run 2634a289, after cloud #3795) and the run
was refused with agent_cli_unresolved — a Cloud sandbox has no flows.json
to resolve the harness from, and the example declared none. software-
factory already pins it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: d5a32849-2d52-42d5-866d-e92b1350e737

📥 Commits

Reviewing files that changed from the base of the PR and between 557d3a4 and 5d37718.

📒 Files selected for processing (3)
  • examples/pr-review-pipeline/README.md
  • examples/pr-review-pipeline/pr-review-pipeline.flow.ts
  • examples/stale-issues/stale-issues.flow.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@khaliqgant
khaliqgant merged commit e7eff24 into main Sep 18, 2026
2 of 3 checks passed
khaliqgant pushed a commit that referenced this pull request Sep 18, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

Comment on lines +76 to +77
// Pinned: a Cloud sandbox has no flows.json to resolve the CLI from.
cli: "claude",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Project CLI configuration ignored

With Codex configured, cli pins every review agent and the stale-issue triage to Claude. resolveCli gives step declarations precedence over project configuration. Local runs fail without Claude and ignore the configured harness when Claude is available.

Learn more

A step-level CLI declaration overrides named-agent, flow-level, and project-level settings in resolveCli. These pins fix Cloud because its sandbox lacks flows.json, but they also affect local execution. The same override was added to the stale-issues triage. The README still documents {"cli":"codex"} as a supported local selection, but that value can no longer select Codex.

Example: A developer has Codex installed and flows.json contains {"cli":"codex"}. Before this change, the review agents use Codex. After this change, preflight resolves Claude from each step and the run fails if Claude is unavailable.

Recommended fix: Preserve project-level selection for local runs while supplying Claude through Cloud's deployment environment. The Cloud executor can materialize the deployment's declared harness as flows.json, or the runtime can expose a Cloud-only default below explicit project configuration. Apply the same resolution strategy to both examples.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

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