Add request display mode functionality to AppRenderer and McpClientApp #38
+284
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduce functionality for requesting and handling display mode changes in the AppRenderer and McpClientApp components.
Motivation and Context
This change allows the guest UI to request different display modes (inline, fullscreen, pip, carousel) from the host, enhancing user experience and flexibility in UI presentation.
This feature is part of OpenAI Apps SDK.
How Has This Been Tested?
Tested in a development environment by simulating display mode requests and verifying the responses and state updates in the UI.
Breaking Changes
No breaking changes are introduced.
Types of changes
Checklist
Additional context
The implementation includes a new request handler in the AppBridge for display mode changes and updates to the UI components to reflect the current display mode. Documentation for the new JSON-RPC method has also been added.