Add workflow rerun controls to RivetKit Inspector#4411
Add workflow rerun controls to RivetKit Inspector#4411NathanFlurry wants to merge 6 commits intomainfrom
Conversation
|
🚅 Deployed to the rivet-pr-4411 environment in rivet-frontend
|
|
Follow-up Inspector UI verification after the replay rename:
Screenshots captured in the workspace:
|
PR Review: Add workflow rerun controls to RivetKit InspectorOverall this is a well-structured feature addition. The protocol versioning, backward-compatibility converters, and test coverage are solid. A few issues are worth addressing before merge. Bugs / Correctness1.
2. In 3. In 4. HTTP endpoint returns 500 for in-flight workflow rejections The test expects status 500 and Design Concerns5. The fire-and-forget polling loop in 6.
7. The control driver in Minor Issues8. 9. 10. Terminology inconsistency in test title — One test says "reruns" while the endpoint path and all other references use "replay". Positives
|


Description
Add workflow rerun controls to RivetKit workflows through the inspector by introducing a v4 workflow rerun message, HTTP endpoint, and workflow-engine reset helper. Update the standalone Inspector UI with a current-step rerun button, previous-step right-click rerun, and helper text, and make the HTTP inspector route usable with actor inspector tokens so the standalone Inspector can trigger reruns without engine credentials. Also preserve workflow metadata in storage and document the new inspector API.
Type of change
How Has This Been Tested?
pnpm --dir rivetkit-typescript/packages/workflow-engine exec vitest run tests/rerun.test.tspnpm --dir rivetkit-typescript/packages/rivetkit test driver-memory -t "POST /inspector/workflow/rerun reruns a workflow from the beginning|inspector endpoints require auth in non-dev mode|failed workflow steps sleep instead of surfacing as run errors"serve-test-suiteserver, including the current-step rerun button and right-click rerun from a previous step.Checklist: