{
  "case": "g02",
  "checks": {
    "缺少 Key 时未形成模型请求": true,
    "补齐后进入本地端点": true
  },
  "commands": [
    {
      "command": "'/Volumes/Mac Storage/Projects/tokenba-deliveries/cc-switch-topics-20261104/tools/node_modules/.bin/gemini' -p 'Reply with only QR-FIXTURE-OK.' --output-format json",
      "exit": 41,
      "stdout": "",
      "stderr": "{\n  \"session_id\": \"<ID>\",\n  \"error\": {\n    \"type\": \"Error\",\n    \"message\": \"When using Gemini API, you must specify the GEMINI_API_KEY environment variable.\\nUpdate your environment and try again (no reload needed if using .env)!\",\n    \"code\": 41\n  }\n}"
    },
    {
      "command": "'/Volumes/Mac Storage/Projects/tokenba-deliveries/cc-switch-topics-20261104/tools/node_modules/.bin/gemini' -p 'Reply with only QR-FIXTURE-OK.' --output-format json",
      "exit": 0,
      "stdout": "{\n  \"session_id\": \"<ID>\",\n  \"response\": \"QR-FIXTURE-OK\",\n  \"stats\": {\n    \"models\": {\n      \"gemini-3.8-flash\": {\n        \"api\": {\n          \"totalRequests\": 1,\n          \"totalErrors\": 0,\n          \"totalLatencyMs\": 22,\n          \"errorsByType\": {}\n        },\n        \"tokens\": {\n          \"input\": 9,\n          \"prompt\": 9,\n          \"candidates\": 4,\n          \"total\": 13,\n          \"cached\": 0,\n          \"thoughts\": 0,\n          \"tool\": 0\n        },\n        \"roles\": {\n          \"main\": {\n            \"totalRequests\": 1,\n            \"totalErrors\": 0,\n            \"totalLatencyMs\": 22,\n            \"tokens\": {\n              \"input\": 9,\n              \"prompt\": 9,\n              \"candidates\": 4,\n              \"total\": 13,\n              \"cached\": 0,\n              \"thoughts\": 0,\n              \"tool\": 0\n            }\n          }\n        }\n      }\n    },\n    \"tools\": {\n      \"totalCalls\": 0,\n      \"totalSuccess\": 0,\n      \"totalFail\": 0,\n      \"totalDurationMs\": 0,\n      \"totalDecisions\": {\n        \"accept\": 0,\n        \"reject\": 0,\n        \"modify\": 0,\n        \"auto_accept\": 0\n      },\n      \"byName\": {}\n    },\n    \"files\": {\n      \"totalLinesAdded\": 0,\n      \"totalLinesRemoved\": 0\n    }\n  }\n}",
      "stderr": "Warning: Basic terminal detected (TERM=dumb). Visual rendering will be limited. For the best experience, use a terminal emulator with truecolor support.\nWarning: 256-color support not detected. Using a terminal with at least 256-color support is recommended for a better visual experience.\nRipgrep is not available. Falling back to GrepTool."
    }
  ],
  "localRequests": [
    {
      "path": "/v1beta/models/gemini-3.8-flash:streamGenerateContent",
      "model": null,
      "stream": false,
      "fixtureKeyPresent": true,
      "projectMarkerInBody": false,
      "customCommandMarkerInBody": false
    }
  ],
  "passed": true,
  "mode": "isolated local fixture",
  "date": "2026-11-04"
}
