fix(flows): pin the local kit to relayflows 2.0.22 - #103
Merged
Merged
Conversation
The downloadable local kit installed relayflows 2.0.15, so local users missed every fix since, including AgentWorkforce/flows#484: a Claude agent step now completes on Claude's result rather than on process exit, so a background task the agent started no longer holds the run open until the wall-clock limit. Hosted runs already use 2.0.21. 2.0.22 publishes the same shape (a flows bin, nothing to import), and `flows check` passes the generated local flow for every preset. It also lowers `declined` (flows#438/#439); the ticket guards deliberately stay on done("needs_human") until Agent Relay Cloud renders a declined run, and the pin rationale and tripwire now say so. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 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. Comment |
Contributor
|
Preview deployed!
This is a Cloudflare Workers preview version of this PR's build. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The downloadable local flow kit (
web/lib/flow-local.ts) installs relayflows 2.0.15, seven releases behind. Local users miss every fix since, most importantly AgentWorkforce/flows#484. Before that fix, a Claude agent that started a background task (for examplenpm ciin the background) keptclaude -palive after its final result, so the step, and the whole run, sat idle until the wall-clock limit. A 2-hour dev run was lost this way even though the agent had finished and committed after 10 minutes. Hosted runs already use 2.0.21, which includes the fix.Change
RELAYFLOWS_VERSIONgoes from2.0.15to2.0.22, the current release.LOCAL_INSTALLfollows, forrelayflowsand@relayflows/surface.declined(flows#438, merged as #439) has shipped since 2.0.16, and 2.0.22's executor lowers it (LOWERED_COMPLETIONS = ['success', 'needs_human', 'step_failed', 'declined']). The two ticket guards stay ondone("needs_human")on purpose: the same generated source runs on Agent Relay Cloud, which has to render adeclinedrun first. Switch them together with that Cloud change, not in a pin bump.Verification
relayflows@2.0.22and@relayflows/surface@2.0.22from npm. It has the same published shape (aflowsbin, nothing to import), so the preflight'sresolve("relayflows/package.json")still holds.npx flows checkwith the 2.0.22 CLI returns CHECK PASSED for the generated local flow of every preset: traditional, prototype and simple.vitest run lib/test: 208 passed.tsc --noEmitis clean.🤖 Generated with Claude Code
Note
Low Risk
Version pin and documentation-only comment updates; generated flow behavior is unchanged aside from what the newer CLI/runtime provides at install time.
Overview
Bumps the downloadable local flow kit from relayflows 2.0.15 to 2.0.22, so
LOCAL_INSTALLand the tripwire test match the current release. Local runs pick up fixes since 2.0.15, especially flows#484: Claude agent steps finish when Claude returns a result instead of waiting on process exit (background tasks no longer idle the run until the wall-clock limit).Comments and tests are refreshed to record that
declinedhas been lowerable since 2.0.16, while the two ticket-rejection guards still usedone("needs_human")until Agent Relay Cloud can renderdeclined—that switch is explicitly deferred to a Cloud change, not this pin bump. A few review-related comments now say “since 2.0.15” instead of tying wording only to the old pin. No generated flow logic changes.Reviewed by Cursor Bugbot for commit 6ba7cfd. Bugbot is set up for automated code reviews on this repo. Configure here.