{
  "scenario": "model-patch-mid-session",
  "expectFaults": false,
  "violations": [],
  "warnings": [],
  "stats": {
    "total": 16,
    "types": {
      "connected": 1,
      "session.created": 1,
      "chat.user_message": 2,
      "chat.event": 2,
      "session.stream": 6,
      "chat.message": 2,
      "chat.response": 2
    },
    "streamFrames": {
      "thinking.chunk": 2,
      "inference.chunk": 2,
      "done": 2
    },
    "sessions": 1
  },
  "events": [
    {
      "type": "connected",
      "timestamp": 1783816009772,
      "_rxAt": 1783816009773,
      "_seq": 0
    },
    {
      "type": "session.created",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "mode": "chat",
        "parentSessionId": null,
        "instanceName": null,
        "timestamp": 1783816010049
      },
      "_rxAt": 1783816010050,
      "_seq": 1
    },
    {
      "type": "chat.user_message",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "content": "Reply with exactly: FIRST-MODEL-OK",
        "timestamp": 1783816010052
      },
      "_rxAt": 1783816010052,
      "_seq": 2
    },
    {
      "type": "chat.event",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "type": "iteration.start",
        "iteration": 1,
        "tokensSoFar": 0,
        "timestamp": 1783816010058
      },
      "_rxAt": 1783816010059,
      "_seq": 3
    },
    {
      "type": "session.stream",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "eventType": "thinking.chunk",
      "data": {
        "content": "The user wants me to reply with exactly \"FIRST-MODEL-OK\"."
      },
      "_rxAt": 1783816010172,
      "_seq": 4
    },
    {
      "type": "session.stream",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "eventType": "thinking.chunk",
      "data": {
        "content": " This is a simple request."
      },
      "_rxAt": 1783816010173,
      "_seq": 5
    },
    {
      "type": "session.stream",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "eventType": "inference.chunk",
      "data": {
        "content": "FIRST-MODEL-OK"
      },
      "_rxAt": 1783816010174,
      "_seq": 6
    },
    {
      "type": "chat.message",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "id": 2,
        "session_id": "sess_24daff435709ae15",
        "role": "assistant",
        "content": "FIRST-MODEL-OK",
        "tool_calls": null,
        "tool_call_id": null,
        "thinking_content": "The user wants me to reply with exactly \"FIRST-MODEL-OK\". This is a simple request.",
        "thinking_tokens": 21,
        "created_at": "2026-07-12T00:26:50.179Z",
        "finishReason": "stop",
        "iteration": 1,
        "tokenUsage": {
          "input": 2935,
          "output": 29,
          "cache": 2560,
          "cost": 0.0007605675
        },
        "timestamp": 1783816010181
      },
      "_rxAt": 1783816010181,
      "_seq": 7
    },
    {
      "type": "chat.response",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "content": "FIRST-MODEL-OK",
        "toolCount": 0,
        "timestamp": 1783816010182
      },
      "_rxAt": 1783816010183,
      "_seq": 8
    },
    {
      "type": "session.stream",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "eventType": "done",
      "data": {
        "session": {
          "id": "sess_24daff435709ae15",
          "agent_name": "helper",
          "mode": "chat",
          "instance_folder": "/home/ixi/khacloud/drive/Plugins/VeilCli/test/advanced-test-projects/model-patch-mid-session",
          "status": "active",
          "model": "moonshotai/kimi-k2.5",
          "title": null,
          "message_count": 2,
          "total_input_tokens": 2935,
          "total_output_tokens": 29,
          "total_cache_tokens": 2560,
          "context_size": 2964,
          "context_size_limit": 262144,
          "cost": 0.0007605675,
          "compaction_count": 0,
          "created_at": "2026-07-12T00:26:50.046Z",
          "updated_at": "2026-07-12T00:26:50.180Z",
          "model_thinking": null,
          "compact_summary": null,
          "compact_size": 0,
          "compact_count": 50,
          "compact_auto_threshold": null,
          "compact_enabled": 1,
          "compact_model": "default",
          "compact_custom_instructions": null,
          "temperature": null,
          "max_tokens": null,
          "reasoning": "{\"effort\":\"low\"}",
          "parent_session_id": null,
          "instance_name": null,
          "objective": null,
          "success_criteria": null,
          "token_budget": null,
          "max_wall_seconds": null,
          "max_spawn_depth": null,
          "spawn_depth": 0,
          "trace_id": "trace_f2b2e704aa7603fa",
          "claude_session_id": null,
          "effort": null
        },
        "agentName": "helper",
        "model": "moonshotai/kimi-k2.5",
        "iterations": 1,
        "durationMs": 130,
        "tokenUsage": {
          "input": 2935,
          "output": 29,
          "cache": 2560,
          "cost": 0.0007605675
        },
        "toolCalls": [],
        "cancelled": false
      },
      "_rxAt": 1783816010183,
      "_seq": 9
    },
    {
      "type": "chat.user_message",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "content": "Reply with exactly: SECOND-MODEL-OK",
        "timestamp": 1783816010205
      },
      "_rxAt": 1783816010206,
      "_seq": 10
    },
    {
      "type": "chat.event",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "type": "iteration.start",
        "iteration": 1,
        "tokensSoFar": 0,
        "timestamp": 1783816010207
      },
      "_rxAt": 1783816010207,
      "_seq": 11
    },
    {
      "type": "session.stream",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "eventType": "inference.chunk",
      "data": {
        "content": "SECOND-MODEL-OK"
      },
      "_rxAt": 1783816010218,
      "_seq": 12
    },
    {
      "type": "chat.message",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "id": 4,
        "session_id": "sess_24daff435709ae15",
        "role": "assistant",
        "content": "SECOND-MODEL-OK",
        "tool_calls": null,
        "tool_call_id": null,
        "thinking_content": null,
        "thinking_tokens": null,
        "created_at": "2026-07-12T00:26:50.222Z",
        "finishReason": "stop",
        "iteration": 1,
        "tokenUsage": {
          "input": 4013,
          "output": 6,
          "cache": 0,
          "cost": 0.0022781979
        },
        "timestamp": 1783816010222
      },
      "_rxAt": 1783816010223,
      "_seq": 13
    },
    {
      "type": "chat.response",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "event": {
        "content": "SECOND-MODEL-OK",
        "toolCount": 0,
        "timestamp": 1783816010223
      },
      "_rxAt": 1783816010223,
      "_seq": 14
    },
    {
      "type": "session.stream",
      "sessionId": "sess_24daff435709ae15",
      "agentName": "helper",
      "eventType": "done",
      "data": {
        "session": {
          "id": "sess_24daff435709ae15",
          "agent_name": "helper",
          "mode": "chat",
          "instance_folder": "/home/ixi/khacloud/drive/Plugins/VeilCli/test/advanced-test-projects/model-patch-mid-session",
          "status": "active",
          "model": "moonshotai/kimi-k2",
          "title": null,
          "message_count": 4,
          "total_input_tokens": 4013,
          "total_output_tokens": 6,
          "total_cache_tokens": 0,
          "context_size": 4019,
          "context_size_limit": 131072,
          "cost": 0.0022781979,
          "compaction_count": 0,
          "created_at": "2026-07-12T00:26:50.046Z",
          "updated_at": "2026-07-12T00:26:50.222Z",
          "model_thinking": null,
          "compact_summary": null,
          "compact_size": 0,
          "compact_count": 50,
          "compact_auto_threshold": null,
          "compact_enabled": 1,
          "compact_model": "default",
          "compact_custom_instructions": null,
          "temperature": null,
          "max_tokens": null,
          "reasoning": "{\"effort\":\"low\"}",
          "parent_session_id": null,
          "instance_name": null,
          "objective": null,
          "success_criteria": null,
          "token_budget": null,
          "max_wall_seconds": null,
          "max_spawn_depth": null,
          "spawn_depth": 0,
          "trace_id": "trace_f2b2e704aa7603fa",
          "claude_session_id": null,
          "effort": null
        },
        "agentName": "helper",
        "model": "moonshotai/kimi-k2",
        "iterations": 1,
        "durationMs": 17,
        "tokenUsage": {
          "input": 4013,
          "output": 6,
          "cache": 0,
          "cost": 0.0022781979
        },
        "toolCalls": [],
        "cancelled": false
      },
      "_rxAt": 1783816010223,
      "_seq": 15
    }
  ]
}