Dashboard › craft › Craft resolveWorkspaceConfig: targets a…
019f8992-f061-730d-93e5-923814cd9166| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 15h ago |
Confirmed via test: when a workspace overrides targets, resolved.targets === workspace.targets (same array reference, not deep-copied) — unlike github, which IS freshly copied via object spread. Not currently a bug since no code mutates config.targets in place, but any future logic that mutates the targets array in-place (push/splice/sort) would corrupt the workspace's stored config and could leak across workspace switches. If adding target-list mutation logic in src/config.ts's resolver, copy the array first (e.g. [...targets]).