feat: require CopilotKit Intelligence in every mode - #38
Merged
Merged
Conversation
tylerslaton
force-pushed
the
tyler/require-intelligence
branch
from
September 23, 2026 05:48
8ca1b2a to
1276eed
Compare
jerelvelarde
approved these changes
Sep 23, 2026
jerelvelarde
pushed a commit
that referenced
this pull request
Sep 23, 2026
Resolve conflicts with #38 (Intelligence required in every mode): createIntelligence always returns a client, and the Learning container check builds on main's assertApiDeploymentConfig. Address review findings on #25: - Learning is opt-in: an unset or blank CPK_INTELLIGENCE_LEARNING_CONTAINER_ID leaves it disabled instead of blocking startup; a set ID is still validated. - /api/main-thread now passes learningContainerId when provisioning the main conversation. getOrCreateThread returns existing Threads unchanged, so the run handler's later assignment never applied. - Collection is scoped to AGENT_BACKEND=model, the same agent that receives published Skills, so external AG-UI Threads are not pooled as evidence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PeEDhyx68BNksnt2Dw3957
This was referenced Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Sample mode could previously start a runtime without Intelligence and use local conversation history. The normal OpenMuse startup path now requires Intelligence in every mode.
How
apps/server/src/config.ts; validate both startup and direct app construction.pnpm lint,pnpm typecheck,pnpm test(156 passing), andpnpm build:server. In a fresh checkout, API, worker, and demo startup reject a missing key. With a provisioned key, sample and live modes created real Intelligence threads; a live model reply was persisted in Intelligence.