Repository navigation
Add opt-in prompts/get handler to AppBridge - #879
mangeshraut712 wants to merge 1 commit into
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Verified locally on commit Hosted CI remains with the maintainers for approval. OpenAI Codex ran the local verification and drafted this update. |
Fixes #876.
Adds an opt-in
AppBridge.ongetprompthandler for view-originatedprompts/getrequests. The callback receives the typed request parameters and request context, and returns aGetPromptResult. Hosts can apply their own policy before fetching a prompt. Without a handler, or after it is cleared, the bridge returns Method not found.Verification
-32601after handler assignment. With the change it verifies the prompt name and arguments, returned messages, and Method not found before setup and after removal.bun test src examples: 455 passed, 3 skipped, 0 failed.git diff --checkpassed.AI assistance disclosure: OpenAI Codex helped investigate issue #876, implement the handler and regression test, run verification, and draft this PR.