Skip to content

Ask for API keys before sending the first message - #95

Merged
jerelvelarde merged 1 commit into
mainfrom
jerel/api-key-onboarding
Oct 9, 2026
Merged

jerelvelarde merged 1 commit into
mainfrom
jerel/api-key-onboarding

Conversation

@jerelvelarde

Copy link
Copy Markdown
Collaborator

The chat now explains that OpenAI and Jev API keys are required before the first message. Sending text or selecting an example without keys opens the setup dialog before CopilotKit adds a message or starts an agent request.

The draft survives canceling setup and saving keys, including the chat remount. After setup, the user can send the preserved message; it is not sent automatically. New chat and Clear keys clear the draft. Updated onboarding copy and documentation explain the requirement; shared server credentials remain supported for direct API clients.

Validation:

  • Regression tests cover submission gating, example prompts, cancel, saving keys across remount, and New chat.
  • Browser verified the upfront notice, Enter-to-setup, preserved draft after cancel, and example-to-setup flow.
  • All 159 JavaScript tests, explicit TypeScript checks, lint, and production build passed. The 111 Python tests remain unchanged from the passing parent revision.
  • Independent review found no actionable issues.

@jerelvelarde
jerelvelarde merged commit f6e4388 into main Oct 9, 2026
7 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