{
  "slug": "railway-sandbox-offers-to-link-the-selected-directory-27d831b2f286",
  "title": "railway sandbox offers to link the selected directory",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-05T23:52:46.000Z",
  "announced_at": "2026-06-05T23:52:46.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When `railway sandbox create` in an unlinked directory reaches the interactive project and environment picker, accept the link prompt to save that selection for later Railway commands. Choose No or press Esc to continue without linking.",
    "examples": [
      "railway sandbox create"
    ],
    "gotchas": [
      "Version: v5.4.2",
      "--project: The release note says omitting this flag allows the sandbox command to reach the picker if there is no existing link; the sandbox command’s flag definition was not found in the official docs.",
      "--environment: The release note says omitting this flag allows the sandbox command to reach the picker if there is no existing link; the sandbox command’s flag definition was not found in the official docs.",
      "Link prompt (Yes/No/Esc): Yes saves the selected project and environment as the directory link; No or Esc continues without linking.",
      "Prerequisite: Install the Railway CLI and authenticate with a Railway account; the sandbox quickstart says an existing project and environment are needed.",
      "The offer appears when a `railway sandbox` command falls through to the interactive workspace → project → environment picker because there are no `--project` or `--environment` flags and no existing link.",
      "Choosing No or pressing Esc continues the sandbox operation without linking."
    ]
  },
  "why_it_matters": "Run a `railway sandbox` command from an unlinked directory without `--project` or `--environment`, then reuse the selected project and environment in later commands.",
  "before": "The project and environment picker re-ran for each sandbox create, list, or template invocation in an unlinked directory.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.4.2",
    "https://github.com/railwayapp/cli/pull/951",
    "https://docs.railway.com/sandboxes/quickstart"
  ],
  "rank": 0.95023,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-a09fe500a9619e4c-0:gate",
    "evidence_hash": "f302b8c085f58a3df64589ebc30dbd460bab3f167ac818189fcb42cecc5e68b2"
  },
  "review": {
    "draft_hash": "df22b913c0097b658c9bbe37f3fa796a20398e3e0355dc26991362bf62ef888d",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
