-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(ui): revert app-driven iframe width and send containerDimensions per ext-apps spec #7300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,19 @@ export type SandboxPermissions = string; | |
|
|
||
| export type GooseDisplayMode = McpUiDisplayMode | 'standalone'; | ||
|
|
||
| /** | ||
| * Per the ext-apps spec, each axis is independently: | ||
| * fixed – sends width/height (host controls, view fills it) | ||
| * flexible – sends maxWidth/maxHeight (view controls, up to max; host resizes via size-changed) | ||
| * unbounded – field omitted (view controls with no limit; host resizes via size-changed) | ||
| */ | ||
| export type DimensionMode = 'fixed' | 'flexible' | 'unbounded'; | ||
|
|
||
| export interface DimensionLayout { | ||
| width: DimensionMode; | ||
| height: DimensionMode; | ||
| } | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't we get these from the server spec?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The spec exports the |
||
| /** | ||
| * Tool input from the message stream. | ||
| * McpAppRenderer extracts `.arguments` when passing to the SDK's AppRenderer. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.