Conversation
…ript The result row rendered only "✓ Custom response", so after submitting a free-text answer the user could no longer read what they typed. The model-facing content already carried the text; only renderResult hid it. Closes Gentleman-Programming#1692
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthrough
ChangesCustom response transcript
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to The submitted answer now appears in the transcript, with a focused test for the expected display. No concrete merge-blocking risk is evident. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change displays an answer that was already included in the tool result. It does not change permissions or tool availability. No exploitable security issue was established, but safe handling of terminal control characters could not be fully verified. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
Closes #1692
Problem
When
ask_user_choiceruns withallowCustomResponse: trueand the user picks Other… and types a free-text answer, the transcript row renders only✓ Custom response. The typed text is never shown, so after submitting it the user can no longer read what they answered. The model-facingcontentalready carried the text (User responded: <text>); onlyrenderResulthid it.ask_user_questionalready renders custom answers with their text.Change
extensions/ask-user-choice.ts:renderResultnow renders✓ Custom response — <text>.tests/ask-user-choice.test.ts: new test asserting the rendered row includes the typed text.contentanddetailsare unchanged.Verification
renderResultand passes after the change.node --test tests/ask-user-choice.test.ts, 22/22 pass.npm run typecheck: no regressions.npm test): provider-contract and runtime-harness PASS; unit-tests 4602/4606. The 4 failures are unrelated to this change:tests/yolo-mode.test.ts("structured primary prompt gains and loses directive…", "active YOLO waives only ordinary push…") fail onorigin/mainwithout this change too.tests/yolo-mode-runtime.test.ts("SDK loads both extensions on one bus and drives real customize view", both variants) fail only in the full run; the file passes 4/4 in isolation on bothorigin/mainand this branch.fix/ask-user-choice-custom-response, based onorigin/mainac67159.Out of scope
Summary by CodeRabbit