Skip to content

fix(config): accept the Intelligence runtime key written by the CLI - #810

Open
samjulien wants to merge 3 commits into
mainfrom
codex/openbot-cli-key
Open

samjulien wants to merge 3 commits into
mainfrom
codex/openbot-cli-key

Conversation

@samjulien

Copy link
Copy Markdown

OpenBot rejects a normal copilotkit local connect setup because the CLI writes CPK_INTELLIGENCE_API_KEY while OpenBot only reads INTELLIGENCE_API_KEY. Users have to copy a credential manually, and reconnecting can leave the old project key in use.

Read the CLI key directly in server configuration and Learning setup, retaining the legacy variable as a fallback. A non-empty CLI key takes precedence when both exist. The startup helper recognizes either name, and setup documentation no longer asks users to copy keys.

Validation: 185 focused tests passed across config, Learning setup, and startup guards; workspace typechecks passed; changed TypeScript files pass Biome format/lint; shell syntax and diff checks passed. Regression cases cover CLI-only keys, blank legacy values, stale legacy keys, and legacy-only deployments. No live services were started for this change.

Comment thread shared/intelligence-key.ts
@samjulien
samjulien marked this pull request as ready for review October 20, 2026 00:16
@dustywusty
dustywusty self-requested a review October 20, 2026 00:17
dustywusty
dustywusty previously approved these changes Oct 20, 2026
guidovizoso
guidovizoso previously approved these changes Oct 20, 2026

@guidovizoso guidovizoso left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Removes the manual key copy after local connect and fixes the stale key on reconnect. Two small follow-ups inline, fine to land here or right after.

Comment thread scripts/setup-learning.ts
Comment thread server/src/config.ts
@samjulien
samjulien dismissed stale reviews from guidovizoso and dustywusty via a7d6d70 October 20, 2026 18:15

@guidovizoso guidovizoso left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Both points addressed, thanks.

@samjulien
samjulien force-pushed the codex/openbot-cli-key branch from a7d6d70 to 86485c9 Compare October 21, 2026 18:34
@samjulien
samjulien force-pushed the codex/openbot-cli-key branch from 86485c9 to cc90024 Compare October 21, 2026 20:46

This branch has not been deployed

No deployments
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.

3 participants