You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bce9b21
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(ca): describe idle sleep and SSH wake in help and messages
Since backboard #41923 (2026-10-07), new cloud agents power off after 5
minutes with no SSH session, outbound traffic or agent turn, and wake on
SSH, HTTP or API. Since #39843 the SSH relay wakes a sleeping agent on
any SSH connection. Help, the create and disconnect messages, and the
cloud-agents guide still said agents have no idle timeout and that a
desktop app can't wake one.
- Help for `ca`, `ca start`, `ca ssh`, `ca desktop` and `code`, the create
message, and the disconnect/session-ended notes now describe idle sleep.
- The desktop setup note says connecting over SSH wakes the agent, and to
run `railway ca wake` and retry if the app times out.
- The hidden `--keep-awake` help says it is ignored and doesn't prevent
idle sleep.
- The guide notes agents created before 2026-10-07 don't sleep on their own.
- The access.rs comment now says the CLOUD_AGENTS flag is enforced by the
CLI and dashboard, not the API.
Wording only; no lifecycle behavior changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(sandbox): remove --base-image-digest, which the API no longer accepts
Backboard #36421 removed baseImageDigest from SandboxTemplateInput, so
`railway sandbox template build --base-image-digest` fails, and so does
`railway sandbox create --template` for a stored template that recorded
a digest. The server pins the default base image itself.
- Drop the flag and the field from the CLI's copy of SandboxTemplateInput
in schema.json (a one-field edit; the rest of the file is byte-identical).
- Drop baseImageDigest from StoredSandboxTemplate. Existing records that
carry it still parse (serde ignores the unknown field) and lose it on
the next config write; a test covers this.
- Drop baseImageDigest from `sandbox template list --json`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ca): stop `--keep-awake` from turning bare `railway ca` into a launch
`--keep-awake` is a hidden no-op kept for old scripts, but `is_bare()`
still read it, so `railway ca --keep-awake` skipped the TUI and opened
the launcher. A flag that does nothing should not change what runs, so
`is_bare()` now ignores it. That is less surprising than documenting the
side effect: the flag stays fully inert, `railway ca --keep-awake`
behaves exactly like `railway ca`, and `railway code --keep-awake` (which
never reads `is_bare()`) is unchanged.
- Its hidden help now says it is ignored and has no effect on sleep.
- The controllers/cloud_agent.rs module comment no longer says
`--keep-awake` declines to sleep.
- A test pins that `--keep-awake` alone is still a bare invocation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ca): say agents sleep, and only promise it for agents that do
Follow-up to the idle-sleep copy. "Powers off" becomes "sleeps", which
matches task.rs, agent.rs and railwayapp/docs#1454, and the text says
plainly that sleeping ends processes.
- Disconnect and session-ended notes (`ca ssh`, `code`, the TUI) no
longer say "still running and powers off after 5 idle minutes", which
invited leaving a job running. They now say the agent sleeps after 5
minutes with no SSH client, network traffic or agent turn, which ends
its processes.
- Agents created before the idle-sleep deploy (monorepo #41923,
2026-10-08 00:37 UTC) keep a spec without idle sleep, so for those the
notes keep the previous text: still running until `railway ca sleep`.
`ca::sleeps_when_idle` compares `created_at` to that cutoff; it is a
heuristic and says so. The TUI agent now carries `created_at` for this.
- `ca desktop`: help and the guide scope the rerun advice to OpenCode
(agents created since Oct 8 restart its server on wake; rerun
`railway ca desktop --opencode` if it can't connect). OpenCode's
completion line mentions idle sleep. The wake note drops the yellow
`!`, and the final line no longer says "stops the compute bill" for
agents that sleep on their own.
- docs/cloud-agents.md: what counts as idle (no SSH client attached,
almost no network traffic, no coding agent working or waiting), and the
cutoff date corrected from Oct 7 to Oct 8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(sandbox): keep --base-image-digest as a retired flag and refuse legacy templates
Follow-up to removing `--base-image-digest`.
- The flag is back, hidden, and stops with "Base images are no longer
configurable; templates build on the default sandbox image." This
matches how retired flags are handled elsewhere (`--keep-awake`, #1351,
#854) instead of failing with clap's "unexpected argument".
- `StoredSandboxTemplate.base_image_digest` is back as a legacy optional
field: read and written so old records round-trip, never sent to the
API. `sandbox template list --json` reports it again.
- A stored template that has one used to fail at the API with "Sandbox
checkpoint not found" (without the digest, its recipe names a
checkpoint that was never built). `sandbox create --template` now
stops first and says to rebuild it with `railway sandbox template
build`.
- The serde test now parses a whole `RailwayConfig` containing the
legacy field, since a config parse failure regenerates the file and
drops the user's token.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
desktop.context("OpenCode is running, but Desktop configuration failed. Rerun this command to finish setup.")?;
353
356
println!(
354
-
"You can close this terminal. Rerun this command after sleeping or restarting the agent."
357
+
"{}",
358
+
if ca::sleeps_when_idle(prepared.agent_created_at){
359
+
"You can close this terminal. The agent sleeps after 5 idle minutes and restarts OpenCode when it wakes. If Desktop can't connect, rerun this command."
360
+
} else {
361
+
"You can close this terminal. Rerun this command after sleeping or restarting the agent."
"\n{} The agent must be awake when the app connects — the relay refuses a\nsleeping one, and a desktop app can't wake it. {} does.",
1075
-
"!".yellow().bold(),
1082
+
"\nConnecting over SSH wakes a sleeping agent, so the app wakes it when it\nconnects. If the app times out before the agent is ready, run {} and retry.",
1076
1083
format!("railway ca wake {}", prepared.agent_name).cyan()
1077
1084
);
1078
1085
}
1079
-
println!(
1080
-
"{} stops the compute bill when you're done.",
1081
-
format!("railway ca sleep {}", prepared.agent_name).cyan()
1082
-
);
1086
+
let sleep = format!("railway ca sleep {}", prepared.agent_name).cyan();
1087
+
if ca::sleeps_when_idle(prepared.agent_created_at){
1088
+
println!(
1089
+
"The agent sleeps after 5 idle minutes, which ends its processes; {sleep} sleeps it now."
1090
+
);
1091
+
}else{
1092
+
println!("{sleep} stops the compute bill when you're done.");
"Agents have no idle timeout: `railway ca sleep {}` stops the compute bill, `railway ca delete {}` takes the disk with it.",
478
+
"An idle agent sleeps after 5 minutes, which ends its processes, and wakes when you connect. `railway ca sleep {}` sleeps it now, `railway ca delete {}` takes the disk with it.",
0 commit comments