Skip to content

Commit bce9b21

Browse files
codydeclaude
andauthored
fix(ca,sandbox): idle-sleep copy, retire --base-image-digest (#1369)
* 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>
1 parent b1f25a1 commit bce9b21

13 files changed

Lines changed: 252 additions & 69 deletions

File tree

‎docs/cloud-agents.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,12 @@ Preferences live in `~/.railway/agent-prefs.json`.
7878
Agent selectors accept names or IDs. Lifecycle commands without a selector use
7979
this directory's agent or your only agent, otherwise show candidates.
8080

81-
Disconnecting leaves the VM running and compute billing continues.
82-
`railway ca sleep <agent>` stops compute and ends running processes while keeping
83-
the disk. `railway ca delete <agent>` deletes the VM and its disk.
81+
An agent sleeps after 5 idle minutes: no SSH client attached, almost no
82+
network traffic, and no coding agent working or waiting. Sleeping ends its
83+
processes, including commands left running in a detached session, and keeps the
84+
disk; connecting wakes it. Agents created before October 8, 2026 don't sleep on
85+
their own. `railway ca sleep <agent>` sleeps one now.
86+
`railway ca delete <agent>` deletes the VM and its disk.
8487
The older `railway code --rm` deletes this environment's agent and disk.
8588

8689
Use `railway ca ssh <agent>` for a shell, `--session [name]` to attach to or start
@@ -146,7 +149,10 @@ Desktop setup uses an existing VM when available, creating one if needed.
146149
`--new` requests a fresh VM; `--agent` selects an existing one.
147150
`railway ca desktop --codex` alone is an alias for Codex `desktop-only` setup.
148151
Setup writes configuration without opening the desktop app. Restart the app to
149-
load the connection. The VM remains awake; rerun setup after sleep or restart.
152+
load the connection. An idle VM sleeps after 5 minutes and connecting wakes it;
153+
Claude and Codex just reconnect. Agents created since October 8, 2026 restart
154+
the OpenCode server on wake, so reconnecting usually works; if it can't connect,
155+
rerun `railway ca desktop --opencode`.
150156

151157
Normal `railway code` Codex setup and connect also configure Desktop in the
152158
background. OpenCode setup and connect configure the matching Desktop edition

‎src/commands/cloud_agent/access.rs‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
//! The `CLOUD_AGENTS` preflight.
22
//!
3-
//! Cloud agents are behind a Priority Boarding flag. Without it the API refuses
4-
//! the create — but only once the launch has already resolved a credential, a
5-
//! target and an agent, so what someone without the flag saw was a one-line
6-
//! rejection at the end of a pipeline that looked like it was working. This
7-
//! asks first, and answers with the two things that line didn't have: that the
8-
//! flag is what is missing, and where to turn it on.
3+
//! Cloud agents are behind a Priority Boarding flag. The CLI and the dashboard
4+
//! enforce it; the API does not check it on create. This asks before a launch
5+
//! resolves a credential, a target and an agent, and answers with what is
6+
//! missing (the flag) and where to turn it on.
97
//!
10-
//! Advisory, not a gate. Only a query that succeeds and comes back without the
11-
//! flag stops a launch; anything else (a project token, which cannot read `me`,
12-
//! or a transient failure) proceeds and lets the real call decide. A preflight
13-
//! that blocks work the API would have allowed is worse than the error it
14-
//! replaces.
8+
//! Best-effort. Only a query that succeeds and comes back without the flag
9+
//! stops a launch; anything else (a project token, which cannot read `me`, or a
10+
//! transient failure) proceeds and lets the API's own access checks decide.
1511
1612
use anyhow::{Result, bail};
1713
use colored::Colorize;
@@ -46,7 +42,7 @@ fn has_cloud_agents(flags: &[queries::cloud_agent_access::ActiveFeatureFlag]) ->
4642
.any(|flag| matches!(flag, ActiveFeatureFlag::CLOUD_AGENTS))
4743
}
4844

49-
/// What to say instead of the API's rejection. Names the flag, says where it
45+
/// What to say when the flag is off. Names the flag, says where it
5046
/// lives, and gives the URL — a flag nobody can find is the same as no flag.
5147
fn not_enabled_message(host: &str) -> String {
5248
format!(

‎src/commands/cloud_agent/desktop.rs‎

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ pub(crate) use opencode_config::configure_installed as configure_installed_openc
5050
5151
Sets up the selected app's connection and credentials without opening the app.
5252
Uses an existing VM when available; --new creates one, --agent selects one.
53-
Restart the app after setup to load its connection. The VM stays running;
54-
railway ca sleep <agent> stops compute. Rerun setup after sleep or restart.
53+
Restart the app after setup to load its connection. An idle VM sleeps
54+
after 5 minutes and connecting wakes it; Claude and Codex just reconnect.
55+
Agents created since Oct 8, 2026 restart the OpenCode server on wake, so
56+
reconnecting usually works. If it can't connect, rerun
57+
railway ca desktop --opencode.
5558
5659
--dry-run previews changes without modifying the VM or local configuration.
5760
--remove removes local configuration and stops the managed OpenCode server.
@@ -351,7 +354,12 @@ pub async fn command(args: Args) -> Result<()> {
351354
opencode::show_connection(&connection, &prepared.agent_name, desktop.is_ok())?;
352355
desktop.context("OpenCode is running, but Desktop configuration failed. Rerun this command to finish setup.")?;
353356
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."
362+
}
355363
);
356364
} else {
357365
code::save_desktop_configuration(&prepared, None, &Ok(true));
@@ -1071,15 +1079,18 @@ fn summarize(
10711079
}
10721080
if !apps.iter().any(|app| app.is_opencode()) {
10731081
println!(
1074-
"\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.",
10761083
format!("railway ca wake {}", prepared.agent_name).cyan()
10771084
);
10781085
}
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.");
1093+
}
10831094
}
10841095

10851096
#[cfg(test)]

‎src/commands/cloud_agent/lifecycle.rs‎

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ pub struct SleepArgs {
172172
railway ca ssh my-box --resume # resume the latest Claude conversation
173173
railway ca ssh my-box -- ls -la /app # run a command
174174
175-
Disconnecting leaves the VM running. Sleep ends its processes and keeps its disk."#)]
175+
An idle VM sleeps after 5 minutes and wakes when you connect.
176+
Sleeping ends its processes and keeps its disk."#)]
176177
pub struct SshArgs {
177178
/// Agent name or ID (defaults to this directory's, or your only one)
178179
#[clap(value_name = "AGENT")]
@@ -186,8 +187,7 @@ pub struct SshArgs {
186187
#[clap(long, conflicts_with_all = ["session", "command"])]
187188
resume: bool,
188189

189-
/// Accepted for compatibility; agents now always stay running on
190-
/// disconnect. `railway ca sleep` stops the compute bill
190+
/// Accepted for compatibility and ignored; it has no effect on sleep
191191
#[clap(long, hide = true)]
192192
keep_awake: bool,
193193

@@ -475,7 +475,7 @@ pub async fn create(args: CreateArgs) -> Result<()> {
475475
println!(
476476
"{}",
477477
format!(
478-
"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.",
479479
agent.name, agent.name
480480
)
481481
.dimmed()
@@ -799,8 +799,9 @@ async fn ssh_connect(args: SshArgs) -> Result<i32> {
799799
// process exits (bounded — see drain_detached).
800800
crate::commands::ssh::tel::drain_detached(Duration::from_secs(2)).await;
801801

802-
// A connection that never happened still woke a machine with no idle
803-
// timeout, so put back what this run changed — but only that. An agent
802+
// A connection that never happened still woke the machine, which then bills
803+
// until it idles out (or indefinitely, for an agent created before idle
804+
// sleep), so put back what this run changed — but only that. An agent
804805
// found already running was someone's deliberate state (possibly a session
805806
// open in another terminal), and a failed connect here is no reason to
806807
// suspend it.
@@ -819,9 +820,12 @@ async fn ssh_connect(args: SshArgs) -> Result<i32> {
819820
// platform keeps listing those sessions as running, so the next reattach
820821
// landed on a dead name and a blank screen. Sleeping is deliberate now.
821822
println!(
822-
"\nDisconnected — agent {} is still running. `railway ca sleep {}` stops the compute bill.",
823-
agent.name.cyan(),
824-
agent.name
823+
"\nDisconnected — {}",
824+
ca::leave_note(
825+
&agent.name.cyan().to_string(),
826+
&agent.name,
827+
Some(agent.created_at)
828+
)
825829
);
826830

827831
Ok(exit_code)

‎src/commands/cloud_agent/mod.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ pub(crate) fn harness_label(slug: &str) -> &str {
6363
Use railway code for a local Codex/OpenCode client connected to a VM.
6464
Agent flags here launch on the VM. Use --new to create a fresh VM.
6565
Flags override preferences; the linked project overrides the saved project.
66-
Disconnecting leaves the VM running. Sleep stops processes and keeps the disk.
66+
An idle VM sleeps after 5 minutes and wakes when you connect.
67+
Sleeping ends its processes and keeps the disk.
6768
Requires Cloud Agents access.
6869
Guide: https://github.com/railwayapp/cli/blob/master/docs/cloud-agents.md"#
6970
)]
@@ -99,7 +100,7 @@ enum Command {
99100
Launches on the VM directly, without the management interface.
100101
Uses your configured agent and project defaults; --new creates a fresh VM.
101102
Available local credentials are copied to the VM; Claude can mint a setup token.
102-
Disconnecting leaves the VM running. Use railway ca sleep <agent> to stop compute.
103+
An idle VM sleeps after 5 minutes; railway ca sleep <agent> sleeps it now.
103104
Requires Cloud Agents access.
104105
Guide: https://github.com/railwayapp/cli/blob/master/docs/cloud-agents.md"#)]
105106
Start(LaunchArgs),

‎src/commands/cloud_agent/tui/app.rs‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ pub struct Agent {
120120
/// with every agents fetch; the VM is never asked.
121121
pub threads: Vec<ThreadSnapshot>,
122122
pub archived: bool,
123+
/// When the agent was created, which decides whether it sleeps when idle
124+
/// (see `ca::sleeps_when_idle`). `None` when the read didn't say.
125+
pub created_at: Option<chrono::DateTime<chrono::Utc>>,
123126
}
124127

125128
/// One reattachable session on an agent's VM.
@@ -6220,17 +6223,19 @@ impl App {
62206223
{
62216224
respawn = Some((session.agent_id.clone(), session.harness.clone()));
62226225
}
6223-
closed = Some(session.agent_name.clone());
6226+
closed = Some((session.agent_name.clone(), session.agent_id.clone()));
62246227
}
62256228
} else {
62266229
i += 1;
62276230
}
62286231
}
62296232
self.notice_dropped_panes();
6230-
let agent_name = closed?;
6233+
let (agent_name, closed_id) = closed?;
62316234
if self.quit_when_done && self.sessions.is_empty() {
6235+
let created_at = self.agent_by_id(&closed_id).and_then(|a| a.created_at);
62326236
self.exit_note = Some(format!(
6233-
"Session ended — agent {agent_name} is still running. `railway ca sleep {agent_name}` stops the compute bill."
6237+
"Session ended — {}",
6238+
crate::controllers::cloud_agent::leave_note(&agent_name, &agent_name, created_at)
62346239
));
62356240
return Some(Effect::Quit);
62366241
}
@@ -11283,7 +11288,10 @@ pub(crate) mod tests {
1128311288
a.sessions[0].end_for_test();
1128411289
assert_eq!(a.reap_ended_sessions(), Some(Effect::Quit));
1128511290
assert!(a.sessions.is_empty());
11286-
let note = a.exit_note.as_deref().expect("says the agent still runs");
11291+
let note = a
11292+
.exit_note
11293+
.as_deref()
11294+
.expect("says what happens to the agent");
1128711295
assert!(note.contains("nimble-otter"), "{note}");
1128811296
}
1128911297

‎src/commands/cloud_agent/tui/mod.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ async fn fetch_agents(
942942
work_status: Some(work_status::work_status_from!(a.work_status)),
943943
threads: agent_threads!(a.sessions),
944944
archived: a.archived_at.is_some(),
945+
created_at: Some(a.created_at),
945946
})
946947
.collect())
947948
}
@@ -977,6 +978,7 @@ async fn fetch_my_agents(
977978
work_status: Some(work_status::work_status_from!(a.work_status)),
978979
threads: agent_threads!(a.sessions),
979980
archived: a.archived_at.is_some(),
981+
created_at: Some(a.created_at),
980982
},
981983
)
982984
})

‎src/commands/code.rs‎

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ use crate::util::shell::shell_join;
7373
// survives sleep. `--refresh-auth` forces a re-mint; `railway logout` drops the
7474
// cache.
7575
//
76-
// Lifecycle: agents are durable and have no idle timeout, so unlike a sandbox
77-
// nothing eventually reaps one. Disconnecting leaves the agent RUNNING —
76+
// Lifecycle: agents are durable; unlike a sandbox, nothing eventually deletes
77+
// one. An idle agent (no SSH client attached, almost no network traffic, and no
78+
// coding agent working or waiting) sleeps after 5 minutes, which ends its
79+
// processes, and wakes on SSH, HTTP or API; agents created before the
80+
// 2026-10-08 deploy never do (see `ca::sleeps_when_idle`). Disconnecting leaves
81+
// the agent RUNNING — the CLI never sleeps it as a side effect, because
7882
// sleeping kills every process on the VM (including durable sessions the
7983
// platform keeps listing as reattachable), so it is a deliberate act:
8084
// `railway ca sleep`, or `s` on the TUI tree.
@@ -136,7 +140,7 @@ arguments to the agent. Available local credentials are copied to the VM;
136140
Claude can mint a setup token. Codex saves Desktop setup; OpenCode configures
137141
detected Desktop installs.
138142
139-
Disconnecting leaves the VM running. Use railway ca sleep <agent> to stop compute.
143+
An idle VM sleeps after 5 minutes; railway ca sleep <agent> sleeps it now.
140144
Requires Cloud Agents access.
141145
Guide: https://github.com/railwayapp/cli/blob/master/docs/cloud-agents.md"#
142146
)]
@@ -288,8 +292,7 @@ pub struct LaunchArgs {
288292
#[clap(long, conflicts_with_all = ["remote_agent", "rm"], help_heading = "VM creation")]
289293
no_bootstrap: bool,
290294

291-
/// Accepted for compatibility; agents now always stay running on
292-
/// disconnect. `railway ca sleep` stops the compute bill
295+
/// Accepted for compatibility and ignored; it has no effect on sleep
293296
#[clap(long, hide = true)]
294297
keep_awake: bool,
295298

@@ -544,7 +547,9 @@ impl LaunchArgs {
544547
}
545548

546549
/// No flags, no arguments — the invocation that means "just open the
547-
/// front door" rather than "launch this exact thing".
550+
/// front door" rather than "launch this exact thing". `--keep-awake` is
551+
/// ignored here as everywhere: a flag that does nothing must not change
552+
/// what runs.
548553
pub fn is_bare(&self) -> bool {
549554
!self.codex
550555
&& !self.opencode
@@ -555,7 +560,6 @@ impl LaunchArgs {
555560
&& !self.new
556561
&& self.bootstrap.is_none()
557562
&& !self.no_bootstrap
558-
&& !self.keep_awake
559563
&& !self.rm
560564
&& !self.refresh_auth
561565
&& self.name.is_none()
@@ -2984,6 +2988,9 @@ pub struct Prepared {
29842988
pub relay_opts: Vec<String>,
29852989
pub agent_id: String,
29862990
pub agent_name: String,
2991+
/// When the agent was created, which decides whether it sleeps when idle
2992+
/// (see [`ca::sleeps_when_idle`]).
2993+
pub agent_created_at: chrono::DateTime<chrono::Utc>,
29872994
pub environment_id: String,
29882995
pub harness: &'static str,
29892996
/// True when this run created the agent, which only affects messaging.
@@ -3103,9 +3110,12 @@ pub async fn launch(args: LaunchArgs) -> Result<()> {
31033110
// platform keeps listing those sessions as running, so the next reattach
31043111
// landed on a dead name and a blank screen. Sleeping is deliberate now.
31053112
println!(
3106-
"\nDisconnected — agent {} is still running. `railway ca sleep {}` stops the compute bill.",
3107-
prepared.agent_name.cyan(),
3108-
prepared.agent_name
3113+
"\nDisconnected — {}",
3114+
ca::leave_note(
3115+
&prepared.agent_name.cyan().to_string(),
3116+
&prepared.agent_name,
3117+
Some(prepared.agent_created_at)
3118+
)
31093119
);
31103120

31113121
if prepared.created {
@@ -3673,6 +3683,7 @@ async fn prepare_inner(
36733683
},
36743684
agent_id: cloud_agent.id,
36753685
agent_name: cloud_agent.name,
3686+
agent_created_at: cloud_agent.created_at,
36763687
environment_id,
36773688
harness: agent.slug(),
36783689
created,
@@ -3722,8 +3733,9 @@ const FLUSH_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(5);
37223733
/// session was writing without reaching into it.
37233734
///
37243735
/// Best-effort by design. Failing to reach the agent must not stop us sleeping
3725-
/// it — agents have no idle timeout, so the alternative to an imperfect sleep is
3726-
/// a machine that bills until someone remembers it.
3736+
/// it — the alternative to an imperfect sleep is a machine that bills until it
3737+
/// idles out, or, for an agent created before idle sleep, until someone
3738+
/// remembers it.
37273739
pub async fn flush_disk(environment_id: &str, agent_id: &str) {
37283740
// Deliberately not `ssh_plumbing`: its ~20s retry budget exists to cross the
37293741
// gap while a woken agent becomes attachable. Spending it here would make
@@ -5654,6 +5666,15 @@ cat
56545666
fn launch_args_bareness_and_targeting() {
56555667
assert!(LaunchArgs::default().is_bare());
56565668

5669+
let keep_awake = LaunchArgs {
5670+
keep_awake: true,
5671+
..Default::default()
5672+
};
5673+
assert!(
5674+
keep_awake.is_bare(),
5675+
"--keep-awake is ignored, so it must not turn the TUI into a launch"
5676+
);
5677+
56575678
let mut flagged = LaunchArgs::default();
56585679
flagged.set_harness("codex");
56595680
assert!(

0 commit comments

Comments
 (0)