Summary
Installing the foundry-agent-canvas extension fails because a bundled front-end asset exceeds the 1 MB per-file size limit enforced by the Copilot canvas extension installer.
Error
File `foundry-agent-canvas/inspector-ui/assets/index-Doa6yk6F.js` is too large (7032911 bytes > 1000000 byte limit).
Steps to Reproduce
- Attempt to install the canvas extension from
https://github.com/microsoft/foundry-toolkit/tree/main/foundry-agent-canvas (user scope).
- Installation aborts with the file-size error above.
Expected
The extension installs successfully.
Impact
The extension cannot be installed at all via the standard installer, since the ~6.7 MB inspector-ui bundle is included in the package.
Suggested Fixes
- Code-split/minify the
inspector-ui bundle so each file stays under 1 MB, or
- Load the inspector UI from an external CDN/remote URL instead of bundling it, or
- Make the
inspector-ui assets optional so the core extension can be installed without them.
Summary
Installing the
foundry-agent-canvasextension fails because a bundled front-end asset exceeds the 1 MB per-file size limit enforced by the Copilot canvas extension installer.Error
Steps to Reproduce
https://github.com/microsoft/foundry-toolkit/tree/main/foundry-agent-canvas(user scope).Expected
The extension installs successfully.
Impact
The extension cannot be installed at all via the standard installer, since the ~6.7 MB
inspector-uibundle is included in the package.Suggested Fixes
inspector-uibundle so each file stays under 1 MB, orinspector-uiassets optional so the core extension can be installed without them.