Skip to content

fix(flows): pin the local kit to relayflows 2.0.22 - #103

Merged
kjgbot merged 1 commit into
mainfrom
fix/local-kit-relayflows-2.0.22
Sep 19, 2026
Merged

kjgbot merged 1 commit into
mainfrom
fix/local-kit-relayflows-2.0.22

Conversation

@kjgbot

@kjgbot kjgbot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

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 example npm ci in the background) kept claude -p alive 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_VERSION goes from 2.0.15 to 2.0.22, the current release. LOCAL_INSTALL follows, for relayflows and @relayflows/surface.
  • The pin's rationale comment and the tripwire test are updated. 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 on done("needs_human") on purpose: the same generated source runs on Agent Relay Cloud, which has to render a declined run first. Switch them together with that Cloud change, not in a pin bump.
  • Four comments that said "the 2.0.15 pin" now say "since 2.0.15". No logic change.

Verification

  • Installed relayflows@2.0.22 and @relayflows/surface@2.0.22 from npm. It has the same published shape (a flows bin, nothing to import), so the preflight's resolve("relayflows/package.json") still holds.
  • npx flows check with 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 --noEmit is 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_INSTALL and 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 declined has been lowerable since 2.0.16, while the two ticket-rejection guards still use done("needs_human") until Agent Relay Cloud can render declined—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.

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>
@coderabbitai

coderabbitai Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: f29c0e4c-16b1-4f5f-8299-5a4fd02685d6


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.

@github-actions

Copy link
Copy Markdown
Contributor

Preview deployed!

Environment URL
Web https://749c443b-agentrelay-web.agent-workforce.workers.dev

This is a Cloudflare Workers preview version of this PR's build.

@kjgbot
kjgbot merged commit 259c711 into main Sep 19, 2026
5 checks passed
@kjgbot
kjgbot deleted the fix/local-kit-relayflows-2.0.22 branch September 19, 2026 21:01
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