fix(cli): preserve extension file when import selections are cleared (#2379)

## Summary
- always include the extension file in interactive import selection when
it exists
- add a regression test for the all-deselected case

## Why
In the interactive company import flow, clearing every entity selection
also drops `.paperclip.yaml`, which makes configuration-only imports
impossible even when the extension file is present.

## Testing
- pnpm test:run cli/src/__tests__/company.test.ts
This commit is contained in:
Kevin Manase authored and GitHub committed 2026-07-21 10:58:28 -07:00
1 parent 0d2bfee972
commit f4b65c122a
2 files changed
+75 -1

No files matched your search

+1 -1
View File
@@ -371,7 +371,7 @@ export function buildSelectedFilesFromImportSelection(
}
}
if (selected.size > 0 && catalog.extensionPath) {
if (catalog.extensionPath) {
selected.add(normalizePortablePath(catalog.extensionPath));
}