fix(images): retain canonical interception for alias choices - #2417
fix(images): retain canonical interception for alias choices#2417luvs01 wants to merge 1 commit into
Conversation
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthrough
ChangesImage bridge alias handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change preserves canonical image interception for authorized aliases while keeping unrelated choices inactive; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 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 |
리뷰 · 우선순위 54 / 80설명: 이 PR 은 그림 별명만 고른 요청에서, 브리지가 나중에 쓰는 표준 이름 image_gen 을 가로채기 집합에 남겨 둔다. 지금 CURRENT src/images/plan.ts 라인 51 - 지금 HEAD 는 표준 이름도 tool_choice 필터에 넣는다. 별명만 고르면 image_gen 이 집합에서 빠진다 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Summary
image_genname in the image-bridge interception set after an authorized alias-only tool choice arms the bridge.noneand non-image choices still cannot activate the sidecar.allowed_toolsaliases plus the handler boundary where the alias is rewritten toimage_genbefore the bridge loop runs.Verification
bun test --isolate tests/images/plan.test.ts tests/images/z-handler-activation.test.ts— 25 passed, 0 failed, 59 assertions.image_genwhile both the authorized alias and canonical name remain interceptable.bun run typecheck— passed.oxlint src/images/plan.ts tests/images/plan.test.ts tests/images/z-handler-activation.test.ts— passed.bun run privacy:scan— passed.git diff --check— passed.f73f3d220868fa3ca1a5d376243e9f157b2865dc, based directly ondevat4f41a8e936141af7ee828e335da314b9dc1ef761.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit