Repository navigation
fix(agentcore): collapse the duplicate @copilotkit/shared in the lambda lock (refs OSS-1029) - #6813
Merged
maxkorp merged 1 commit intoSep 1, 2026
Conversation
…da lock (refs OSS-1029) The 1.70.0 repin left two copies of @copilotkit/shared in the AgentCore lambda: 1.70.0 nested under runtime, and 1.68.1 still hoisted at the top level, alongside a stale @copilotkit/core 1.68.1. [email protected] pins shared to exactly 1.70.0, but the transitive @copilotkit/channels-* 0.9.0 packages ask for ^1.68.0, which the existing 1.68.1 resolution already satisfies. A --package-lock-only bump has no reason to move a range that is already satisfied, so npm hoists 1.68.1 for the channels packages and nests 1.70.0 under runtime. npm dedupe does not collapse it; npm update on shared and core does. Regenerating the lock from scratch also yields one clean copy, but sweeps 89 unrelated packages with it -- @graphql-tools/executor 1.5.1 -> 2.0.0, @graphql-tools/utils 10 -> 11, debug 2 -> 4, and a @types/express 5 -> 4 downgrade -- so it was rejected. Verified: one copy of every @CopilotKit and @Ag-ui package in the lock afterwards, none left on a 1.6x line, and npm install + tsc -p tsconfig.json exits 0. Refs OSS-1029.
BenTaylorDev
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
August 31, 2026 22:31
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
maxkorp
merged commit Sep 1, 2026
1ecd280
into
agent/intelligence-starter-templates
22 checks passed
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.
Stacked on #6188 — base is
agent/intelligence-starter-templates, one commit on top of56c2378ff5. Fold it in or merge it; it is not meaningful againstmain.Follow-up to my comment on #6188. One file, 10 insertions / 48 deletions.
The problem
064c5ed910 chore(examples): update CLI starters to CopilotKit 1.70.0leaves the AgentCore lambda lock with two copies of@copilotkit/shared, plus a stale@copilotkit/core:The frontend lock is clean; this is only the lambda.
Why it happens
[email protected]pins@copilotkit/sharedto exactly1.70.0. The transitive@copilotkit/channels-*@0.9.0packages ask for^1.68.0, which the pre-existing1.68.1resolution already satisfies. A--package-lock-onlybump has no reason to move a range that is already satisfied, so npm hoists1.68.1for the channels packages and nests1.70.0underruntime.npm dedupe --package-lock-onlydoes not collapse it. What does:That is the entire change.
The alternative worth not taking
Deleting the lock and regenerating also produces one clean copy — and sweeps 89 unrelated packages along with it, including
@graphql-tools/executor1.5.1 → 2.0.0,@graphql-tools/utils10 → 11,debug2 → 4, and a@types/express5 → 4 downgrade, on a Lambda that ships to AWS. Recording it here so the next person doesn't reach for it.Validation
On top of
56c2378ff5:@copilotkit/*and@ag-ui/*package in the lock afterwards, none left on a 1.6x linenpm install+tsc -p tsconfig.json→ exit 0,dist/emitted@copilotkitentries and the hoisting that followsUnrelated, still flagging
[email protected]declares@ag-ui/*at0.0.59; the lambda'soverridesblock holds them at0.0.58. Left alone — it was already overriding the declared version before this bump, and it builds — but it may have a shelf life.Refs OSS-1029.
🤖 Generated with Claude Code