mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-30 03:24:59 +00:00
* test(node-sdk): drop v1-only subagentNames from the resume parity projection Custom agent files made v1's resumed agent config carry the bound profile's delegatable subagent roster; v2's resumed agent state has no equivalent field, so the resume parity cases fail on main. Project the engine-owned field away instead of pinning it as a resume-data gap. * fix(node-sdk): wire applyPersistedSecondaryModel to agent-core-v2 On the v2 engine route the /secondary_model command persisted the recipe but failed to apply it to the current session: the SDK method fell through to the base class's not_implemented getRpc(). v1 pushes a reloaded config snapshot into the session because its spawn binding, tool descriptions, and cached startup warning all read that snapshot. agent-core-v2 resolves the secondary model live against IConfigService at spawn time and rebuilds the tool description per read, so the setConfig write already takes effect session-wide. The override keeps the rest of v1's contract: config reload, the same loud validations (session lookup, persist-first recipe check, pointed-model resolution wrapped at [secondary_model].model), and a warning-cache refresh via a new recheckSecondaryModelWarning on the session warning service. getSessionWarnings also surfaces the v2 secondary-model warning next to the AGENTS.md one, matching v1's aggregate. * fix(agent-core-v2): surface the subagent's bound model on status events The v2 model slice rides only the bind-time agent.status.updated, which precedes subagent.spawned and is dropped by clients that key child events off the spawn, so subagent cards never learned the model — and a single-step run emits no usage/context slice until it ends, so the model only appeared at completion. Re-affirm the binding right after the spawn announcement via a new IAgentProfileService.republishStatus, and fold a consistent usage/context/model snapshot into every status event at both v1 edges (kap-server's broadcaster and the in-process SDK session wiring, resolving the secondary-model derived id to a readable display name. EOF ) * Delete .changeset/subagent-card-model.md Signed-off-by: 7Sageer <sag77r@hotmail.com> * style(agent-core-v2): remove inline implementation comments --------- Signed-off-by: 7Sageer <sag77r@hotmail.com> |
||
|---|---|---|
| .. | ||
| auth-facade.test.ts | ||
| catalog.test.ts | ||
| config.test.ts | ||
| create-session-transport.test.ts | ||
| export-session.test.ts | ||
| kimi-code-model-provider.test.ts | ||
| kimi-harness.test.ts | ||
| list-sessions.test.ts | ||
| local-logging.test.ts | ||
| mcp-config.test.ts | ||
| rename-session.test.ts | ||
| runtime-provider-identity.test.ts | ||
| runtime-provider-oauth.test.ts | ||
| sdk-rpc-client-v2.test.ts | ||
| session-approval-handler.test.ts | ||
| session-background-tasks.test.ts | ||
| session-cancel.test.ts | ||
| session-context.test.ts | ||
| session-event-types.test.ts | ||
| session-event-wiring.test.ts | ||
| session-goal.test.ts | ||
| session-plan-compact-usage-resume.test.ts | ||
| session-prompt-events.test.ts | ||
| session-prompt-input.test.ts | ||
| session-question-handler.test.ts | ||
| session-runtime-helpers.ts | ||
| session-set-model.test.ts | ||
| session-set-permission.test.ts | ||
| session-set-thinking.test.ts | ||
| session-skills.test.ts | ||
| session-steer.test.ts | ||
| telemetry.ts | ||
| test-identity.ts | ||
| v1-v2-parity.test.ts | ||