🧩 feat: Enable Model Spec Subagents (#13598)
Some checks failed
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Waiting to run
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Waiting to run
GitNexus Index / index (push) Waiting to run
GitNexus Index / post-index (push) Blocked by required conditions
Docker Dev Images Build / build (Dockerfile, librechat-dev, node) (push) Waiting to run
Docker Dev Images Build / build (Dockerfile.multi, librechat-dev-api, api-build) (push) Waiting to run
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions
Sync Helm Chart Tags / Ignore non-main push (push) Waiting to run
Sync Helm Chart Tags / Sync chart tags (push) Waiting to run
Publish `@librechat/client` to NPM / pack (push) Has been cancelled
Publish `librechat-data-provider` to NPM / pack (push) Has been cancelled
Publish `@librechat/client` to NPM / publish-npm (push) Has been cancelled
Publish `librechat-data-provider` to NPM / publish-npm (push) Has been cancelled

This commit is contained in:
Danny Avila 2026-06-08 11:43:08 -04:00 committed by GitHub
parent cb6dbc8f60
commit fb87abe773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 303 additions and 19 deletions

View file

@ -118,6 +118,16 @@ describe('applyModelSpecEphemeralAgent', () => {
const agent = updateEphemeralAgent.mock.calls[0][1] as TEphemeralAgent;
expect(agent.artifacts).toBe('custom-renderer');
});
it('should not copy model spec subagents into client ephemeral agent state', () => {
const subagents = { enabled: true, allowSelf: true, agent_ids: ['agent_private'] };
const modelSpec = createModelSpec({ subagents });
applyModelSpecEphemeralAgent({ convoId: null, modelSpec, updateEphemeralAgent });
const agent = updateEphemeralAgent.mock.calls[0][1] as TEphemeralAgent;
expect(agent.subagents).toBeUndefined();
});
});
// ─── Existing Conversations: Per-Conversation Persistence ──────────