fix: use Promise.allSettled for parallel config directory loading

SH
6mo ago
+59-6

Description

Follows up on #11935.

Replaces Promise.all with Promise.allSettled when loading local profile directories (assistants, agents, configs) in getLocalProfiles. With Promise.all, a failure reading any single directory causes all profiles to fail loading. This fix preserves partial results — if one directory fails, profiles from the other two are still returned. Rejected promises are explicitly logged as warnings so errors are visible rather than silently swallowed.

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

N/A — error handling change with no UI impact.

Tests

No new tests added. The fix only affects the failure path — the happy path behaviour is unchanged. Manual test plan: place an invalid/unreadable directory at .continue/configs/ and verify that .continue/agents/ profiles still load correctly.


Summary by cubic

Use Promise.allSettled in getLocalProfiles to load local profile directories (assistants, agents, configs) in parallel without failing everything on a single read error; rejected results are logged as warnings and partial profiles are returned. Also updates Inception provider docs to use mercury-2 examples, add an Available Models table, and document tool-calling support and agent/chat role configuration.