fix(desktop): Agent Manager 設定ダイアログでマネージャが閉じる問題を修正 (#217)#221
Conversation
PresetsDialog を DialogContent の外側(Dialog の兄弟)に置いていたため、 Radix の DismissableLayer が兄弟同士のネストを認識できず、設定ダイアログ 内のクリックが「外側クリック」と判定されて Agent Manager が閉じていた。 正しく動作している ScheduleEditorDialog と同じく DialogContent 内部で 描画するよう修正した。 Closes #217
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 2 minutes and 8 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
概要
Issue #217 の修正。Agent Manager の「設定 / プリセット」ボタンで開く設定ダイアログが、
開くたびに Agent Manager 自体を閉じてしまう 問題を修正した。
原因
TodoManager.tsxではPresetsDialogを次のようにDialogContentの外側・Dialogの兄弟として配置していた:
```tsx
... // ← DialogContent の外 \`\`\`この配置だと Radix UI の DismissableLayer 側で 兄弟関係のネストを「ネスト」として
認識できない。結果、設定ダイアログ内のクリックが親
DialogContentから見て「外側クリック」と判定され、
onOpenChange(false)が発火して Agent Manager が閉じてしまっていた。
スケジュールタブの「新規」ボタンで開く
ScheduleEditorDialogはSchedulesSectionの中(=DialogContentの内側)で描画されているため、Radix が正しく入れ子と認識して親は閉じない。これが挙動差の原因だった。
修正
PresetsDialogをDialogContentの内側へ移動し、ScheduleEditorDialogと同じ配置パターンに揃えた。
テスト手順
閉じないことを確認
Closes #217