Skip to content

Persist project provider selection after API-key connect - #472

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-5900-api-key-connect-should-persist-the-projects-selected
Aug 10, 2026
Merged

Persist project provider selection after API-key connect#472
TheGreatAxios merged 1 commit into
mainfrom
cl-5900-api-key-connect-should-persist-the-projects-selected

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • API-key and Custom connects persist the project-local provider/model selection after a successful connect.
  • Secrets remain only in global credential storage.
  • OAuth and API-key share one post-connect selection-persistence contract; regression covers restart resolution.

Closes CL-5900.

Verification

  • bun run typecheck
  • bun run build
  • bun run test (4541 pass, 0 fail)

@linear-code

linear-code Bot commented Aug 10, 2026

Copy link
Copy Markdown

CL-5900

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critique

Lens: selection-persistence contract across auth kinds
Verdict: approve
Summary: API-key and Custom connects write project-local provider/model selection via the same submit helper as OAuth; secrets stay in global settings.

Findings: none.

Greybeard

Lens: architecture and dead-plumbing cleanup
Verdict: approve
Summary: cwd is removed from connect input; callers pass an explicit localSettingsPath, removing the accepted-but-ignored drift.

Findings: none.

gaasbot

Lens: public OSS / release readiness
Verdict: approve
Summary: Regression tests cover restart resolution and secret isolation; docs/changelog match the behavior.

Findings: none.

@TheGreatAxios
TheGreatAxios force-pushed the cl-5900-api-key-connect-should-persist-the-projects-selected branch from e948010 to ce06634 Compare August 10, 2026 18:37
API-key and Custom connects now write the project-local provider/model
selection the same way OAuth does, so a restart keeps the connected model
without storing secrets in the per-repo file.
@TheGreatAxios
TheGreatAxios force-pushed the cl-5900-api-key-connect-should-persist-the-projects-selected branch from ce06634 to 471f69e Compare August 10, 2026 18:42
@TheGreatAxios
TheGreatAxios merged commit ddc2bf1 into main Aug 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant