fix(rivetkit): inspector reports actual config state + real queue messages#4726
Conversation
Code Review: fix(rivetkit): inspector reports actual config state + real queue messagesOverviewThis PR fixes two inspector bugs: hardcoded Positive Changes
Issues and Suggestions1. Silent clamping in The comment claims IDs "fit comfortably in i64", but 2.
3. Comment style nit ( Per CLAUDE.md, comments should avoid parenthetical constructions. The 4. Client-side pagination on Fetching all messages then slicing is acceptable given the bounded 5. Missing test coverage No tests accompany these changes. At minimum before merging:
SummaryThe core fixes are correct and well-reasoned. |
Preview packages published to npmInstall with: npm install rivetkit@pr-4726All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-71415c6
docker pull rivetdev/engine:full-71415c6Individual packagesnpm install rivetkit@pr-4726
npm install @rivetkit/react@pr-4726
npm install @rivetkit/rivetkit-napi@pr-4726
npm install @rivetkit/workflow-engine@pr-4726 |
1dfe1ec to
51a0ff9
Compare
108b7a0 to
20251b0
Compare
PR Review: fix(rivetkit): inspector reports actual config state + real queue messagesOverviewThis PR fixes two inspector correctness bugs and adds real queue message inspection:
The fix is targeted and surgical — good scope discipline. IssuesMemory: all messages are fetched before JS-level slicing// native.ts
const allMessages = await queue.inspectMessages(); // fetches entire queue
const truncated = allMessages.length > limit;
const messages = allMessages.slice(0, limit); // limit applied here
Side effects of
|
51a0ff9 to
e0c30f6
Compare
20251b0 to
30e8ba6
Compare
30e8ba6 to
ad4d92a
Compare
e0c30f6 to
94270d3
Compare
ad4d92a to
be354a6
Compare
94270d3 to
9009f05
Compare
PR Review: fix(rivetkit): inspector reports actual config state + real queue messagesOverviewThis PR fixes two inspector correctness bugs and one RAII leak:
All three are solid, targeted bug fixes. A few notes below. Issues / Suggestions1. The word "reinterpreted" implies a bitcast/transmute; the actual behavior is a narrowing conversion with 2. All messages are fetched from core then sliced in TypeScript. For the default max queue size (1000) this is fine for an inspector endpoint, but the limit could be pushed down into the Rust API as a follow-up to avoid the fetch-all cost. 3. Before this PR, 4. Visibility widening on Both were 5. The explicit abort call was removed and the Positives
StatusDRAFT - no tests yet (expected for a draft). Once tests covering the queue inspector endpoint and the |
9009f05 to
0e8d52d
Compare
be354a6 to
5b61e8e
Compare
5b61e8e to
d1095c3
Compare
32b9abd to
8e8783c
Compare
d1095c3 to
8a4bc0d
Compare
8a4bc0d to
a96fbd9
Compare
8e8783c to
81178fa
Compare
|
Landed in main via stack-merge fast-forward push. Commits are in main; closing to match. |

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: