mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-12-05 05:38:22 +00:00
* refactor(agent-core-v2): rebuild telemetry context as a scope-bound layered registry * fix(agent-core-v2): prefer ambient model in telemetry envelope and repair print-runner stub * fix(agent-core-v2): delete only the fragment registered by this telemetry binding * fix(agent-core-v2): bind telemetry context writes to the binding's own fragment * fix(agent-core-v2): keep stale telemetry emissions on the binding-owned fragment * refactor(agent-core-v2): mirror turn-request trace_id into ambient telemetry context * refactor(agent-core-v2): telemetry key-resolution cleanups Drop the dead defineAgentTelemetryEvent branch in declaredKeysFor: agent_id is already copied unconditionally as identity plumbing before the declared-key loop, and the loop itself skips agent_id, so the branch had no runtime effect. Name the wire session id property key (WIRE_SESSION_ID_PROPERTY) so the session_id-to-sessionId mapping is explicit. * refactor(agent-core-v2): flow ambient telemetry context to every event unconditionally Remove the registry-key filtering and the FILTERED_CONTEXT_KEYS hard filter from composeTelemetryProperties: the merged ambient now reaches every event's properties, with session_id still remapped to the camelCase sessionId key and explicit defined values winning on collision. Explicit undefined values no longer clobber ambient fields. With filtering gone, correctness for time-varying fields rests on lifecycle discipline, so the loop now clears the ambient trace_id when a step starts (mirroring the activeRequestTrace reset) instead of relying on an explicit undefined payload value to mask the stale mirror. * refactor(agent-core-v2): move thinking_effort into the turn telemetry context * refactor(agent-core-v2): replace the telemetry fragment registry with parent references |
||
|---|---|---|
| .. | ||
| kimi-code | ||
| kimi-inspect | ||
| vis | ||
| vscode | ||