Skip to content

Canvas extension install fails: inspector-ui JS bundle exceeds 1 MB file-size limit #558

Description

@hellosnow

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

  1. Attempt to install the canvas extension from https://github.com/microsoft/foundry-toolkit/tree/main/foundry-agent-canvas (user scope).
  2. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions