feat: Use instance default adapter for imported agents#1902
feat: Use instance default adapter for imported agents#1902davetist wants to merge 5 commits intopaperclipai:masterfrom
Conversation
Greptile SummaryThis PR introduces an instance-level default adapter setting and wires it through the full stack — shared types/validators, server-side import resolution, first-agent seeding, the import UI, and a new Key changes:
The PR description includes a detailed thinking path, summary, why/details/verification/risks sections — all requirements are met. However, there are visible UI changes in Confidence Score: 5/5Safe to merge; all remaining findings are P2 style/UX nits with no runtime impact. No P0 or P1 issues found. The seeding logic, import resolution priority, and backwards-compatibility defaults are all correctly implemented and backed by new tests. The two P2 findings (missing useCallback/deps for resolveImportAdapterSelection; "process" appearing as Coming Soon in the instance-default dropdown) do not affect correctness or data integrity. ui/src/components/AdapterTypeDropdown.tsx — consider filtering out "process" from the list when used as an instance-default selector; ui/src/pages/CompanyImport.tsx — resolveImportAdapterSelection should be wrapped in useCallback and added to the useEffect deps array. Important Files Changed
|
|
Addressed the P2 findings and added a screenshot into the PR description. |
Imported codex_local agents now receive the same default adapter config as manually created agents, including sandbox bypass when omitted, so imported companies can run Paperclip skills without manual toggles. Add a shared adapter-defaults helper, cover the import regression with tests, and update the codex adapter docs/spec to match the runtime behavior. Co-Authored-By: Paperclip <noreply@paperclip.ing>
Thinking Path
Summary
processagents into a new companyclaude_localfallback and prefill the import UI from the instance default insteadWhy
Vendor-neutral company imports were still landing on Claude because the import flow relied on a temporary CLI fallback instead of instance configuration.
This also addresses the TODO in
cli/src/commands/client/company.tsabout replacing the temporaryclaude_localfallback with adapter selection in the import TUI.Details
processagents to the instance default fornew_companyimportsdefaultAdapterType, so a fresh instance inherits the connector the operator actually started with without requiring a visit to settings firstManual Verification
codex_localin Instance Settings > Generalhttps://github.com/paperclipai/companies/tree/main/product-compass-consultingand confirmed the package imports as vendor-neutralprocessagentsadapterType: "codex_local"Automated Verification
pnpm test:runpnpm -r typecheckpnpm buildRisks
claude_localwhen unset, so existing instances keep their current behavior until an operator picks another adapter or the first created agent seeds oneScreenshot