continue icon indicating copy to clipboard operation
continue copied to clipboard

fix: use Promise.allSettled for parallel config directory loading

Open ShauryaaSharma opened this issue 5 months ago • 0 comments

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

  • [x] I've read the contributing guide
  • [x] 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.

Written for commit 4d77af3948ee3ffd1d2e87a464aab4084859ffc5. Summary will update on new commits.

Review in cubic

ShauryaaSharma avatar Jun 17 '26 21:06 ShauryaaSharma