Repository navigation
feat(dialog): render whole-form ask requests natively - #474
andrebrait wants to merge 1 commit into
Conversation
# Conflicts: # CHANGELOG.md # components/ExtensionDialog.tsx # hooks/useAgentSession.ts # lib/i18n/locales/en.json # lib/i18n/locales/ja.json # lib/i18n/locales/zh-CN.json
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
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. |
Code Review Roast 🔥Verdict: No Issues Found | Recommendation: Merge Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything. 📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are. Files Reviewed (21 files)
Reviewed by free · Input: 113.5K · Output: 40.8K · Cached: 620K |
|
Superseded by #473: ompweb's own runner delivers omp's whole-form |
Summary
extension_ui_requestwithmethod: "form"unconditionally in the existing composer-attached or overlay dialog, with native controls, constraint validation, typed FormData submission, hidden values, and free-text Other answers for radio/checkbox groups.{cancelled:true,timedOut:true}on host timeout.set_form_dialog {enabled:true}alongside existing startup settings (including daemon-owned starts, legacy adoption and restarts). Unknown-command replies are harmless. Rendering does not depend on negotiation; existing select/input/editor behavior remains intact.Upstream contract
Prepared against can1357/oh-my-pi#18646 at
8ee5e89894(docs/rpc.mdandpackages/coding-agent/src/modes/rpc/wire/frames.ts). This is how omp'saskreaches omp-web starting with the omp release that includes that change, not a user-facing opt-in. If upstream makes forms unconditional and removesset_form_dialog, its absence remains harmless.Existing extension
ui.select/input/editor requests remain supported. This change does not add a per-field fallback or change the select branch from #451; #451 and can1357/oh-my-pi#18929 are already merged.Verification
rpc-manager, daemon-channels, hub-v7 and pending-requests (bun test --parallel --timeout 30000).npm run typecheck./root/.local/bin/bun scripts/build-client.ts(existing CSS highlight selector warnings).set_form_dialogwhile still handling legacy select.Not verified
omp.browser.headlessunavailable) nor an installed Chromium binary. A temporary component harness was prepared, but browser launch failed; harness files and service were removed.omp --mode rpc-uiagainst omp-web was not run:/root/git/oh-my-piis absent on this worker. No services were deployed or restarted.The feature becomes usable with an omp release containing can1357/oh-my-pi#18646; current runtimes retain their existing dialogs.
Summary by CodeRabbit
New Features
Bug Fixes
Moved from #457 (head branch now on this repository).