{
  "slug": "sam-local-disables-hot-reload-with-no-watch-d9e96b7b0422",
  "title": "sam local disables hot reload with --no-watch",
  "tools": [
    "sam"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-10T21:37:16.000Z",
  "announced_at": "2026-06-10T21:37:16.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When file changes should not trigger hot reload during a local API workflow, run `sam local start-api --warm-containers eager --no-watch`. With `--no-watch`, code and template changes are not detected automatically; stop and rerun the command to pick them up.",
    "examples": [
      "sam local start-api --warm-containers eager --no-watch"
    ],
    "gotchas": [
      "Version: v1.162.0",
      "--warm-containers eager: Loads containers for all functions at startup and keeps them between invocations.",
      "--no-watch: Disables file watching; code and template changes are not detected automatically.",
      "Prerequisite: Install the AWS SAM CLI and complete AWS SAM prerequisites.",
      "Prerequisite: Run from the project root; local API execution uses Docker containers."
    ]
  },
  "why_it_matters": "Run a local SAM workflow without hot reload when file changes should not trigger reloads.",
  "before": "Without `--no-watch`, `sam local start-api` automatically detects changes and reflects them; when using warm containers, detected code changes shut down the function container and it is recreated on the next invocation.",
  "sources": [
    "https://github.com/aws/aws-sam-cli/releases/tag/v1.162.0",
    "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli-local-start-api.html"
  ],
  "rank": 0.97027,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3-rejudge+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-5fa309d9aff7fcc6-0:rescue",
    "evidence_hash": "8cb5e715d382960e44a9656159c3d51554a117bb9552e19300c16d0ee775ff68"
  },
  "review": {
    "draft_hash": "a93d265159ca3a651315cacb186e21226d355ef7dd4ea890995e0226b75863bf",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:rescue",
    "reason": "Rescue path: first rejected only because the extracted card lacked usage; judged again on the enriched card, 3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
