Commit f012bc9
committed
fix(copilot): import the block registry statically in context resolution
processBlockMetadata loaded @/blocks/registry with a dynamic import even though
the module already reaches it statically through permission-groups/block-access.
Concurrent dynamic imports of the mocked registry intermittently resolved the real
registry under vitest, costing seconds and timing out the block-context test on
CI. A static import is equivalent at runtime and removes the race.1 parent e9d17ba commit f012bc9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
582 | 583 | | |
583 | 584 | | |
584 | 585 | | |
585 | | - | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| |||
0 commit comments