fix(pegboard): refresh runner config after envoy connect#4778
Conversation
PR Review: fix(pegboard): refresh runner config after envoy connectThis is a focused, two-file fix that addresses a stale-cache bug where a serverful envoy reconnection updates the runner-config protocol version in UDB (inside the Summary of Changes
Correctness
The purge is placed after the The purge is applied unconditionally regardless of
The change from Two minor concerns:
Code QualityComments are clear and follow conventions. Both comment blocks are complete sentences that explain the "why," consistent with the CLAUDE.md guideline. No fragments or em dashes.
No logging added. A Style / Conventions
VerdictThe fix is logically sound and closes the race condition. The two concerns worth discussing before merge:
Neither is a blocker, but the second point in particular could be a latency regression under load. If the team has measured this or considers the UDB round-trip cost acceptable, the PR is good to go. |
Preview packages published to npmInstall with: npm install rivetkit@pr-4778All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-331136c
docker pull rivetdev/engine:full-331136cIndividual packagesnpm install rivetkit@pr-4778
npm install @rivetkit/react@pr-4778
npm install @rivetkit/rivetkit-napi@pr-4778
npm install @rivetkit/workflow-engine@pr-4778 |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: