fix(rivetkit): keep internal error exposure behavior consistent#4661
fix(rivetkit): keep internal error exposure behavior consistent#4661NathanFlurry wants to merge 1 commit intobreak-up/stabilize-driver-lifecycle-testsfrom
Conversation
PR Review: fix(rivetkit): keep internal error exposure behavior consistentOverviewThis PR makes two related changes to internal error exposure behavior:
Issues FoundBug: Missed File — Inconsistency RemainsThe PR title says "keep internal error exposure behavior consistent", but // rivetkit-typescript/packages/rivetkit/src/actor/protocol/old.ts:303-304
getEnvUniversal("RIVET_EXPOSE_ERRORS") === "1" ||
getEnvUniversal("NODE_ENV") === "development",This file was not updated, leaving the behavior inconsistent across the three implementations of this check. Security: Hardcoded Sandbox Error Exposure (Good Fix, Worth Calling Out)The old code unconditionally set Developer Experience ImpactDevelopers who previously relied on Minor Issues
SummaryThe core intent is correct and the sandbox hardcoding fix is a real security improvement. The main blocker is the missed |

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: