fix(runtime): correlate ProcessIO responses by top-level id#195
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (3)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🧰 Additional context used🧠 Learnings (12)📓 Common learnings📚 Learning: 2026-01-20T16:01:14.323ZApplied to files:
📚 Learning: 2026-01-19T21:00:52.689ZApplied to files:
📚 Learning: 2026-01-19T21:00:30.825ZApplied to files:
📚 Learning: 2026-01-19T21:48:45.693ZApplied to files:
📚 Learning: 2026-01-19T21:48:27.823ZApplied to files:
📚 Learning: 2026-01-20T01:34:07.064ZApplied to files:
📚 Learning: 2026-01-20T18:37:05.670ZApplied to files:
📚 Learning: 2026-01-20T16:00:49.829ZApplied to files:
📚 Learning: 2026-01-19T21:14:40.872ZApplied to files:
📚 Learning: 2026-01-19T21:14:29.869ZApplied to files:
📚 Learning: 2026-01-19T21:14:35.390ZApplied to files:
🧬 Code graph analysis (1)test/transport.test.ts (1)
🔇 Additional comments (5)
📝 WalkthroughWalkthroughThe pull request modifies the message ID extraction logic in the runtime process-io module, replacing regex-based parsing with JSON.parse-based validation that ensures the id field is a numeric integer. Call sites are updated to use explicit null checks instead of truthiness checks, with corresponding test cases validating the new behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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. Comment |
Summary\n- replace regex ID extraction with strict top-level JSON id parsing in ProcessIO\n- treat id=0 as a valid request/response correlation key\n- add regressions for nested payload
idvalues and id=0\n\n## Validation\n- npx vitest --run test/transport.test.ts test/runtime_node.test.ts