Fix Coder startup from the installer

d6564655e939 · AtlantisPleb · · parent b77305e68d32

Fix Coder startup from the installer

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

pushed
by user · WAL seq 462 · 2026-08-26T19:48:59.442109Z

Changed files

  • modified priv/static/install.sh
  • modified test/openagents_web/install_script_test.exs

Diff

2 files changed, +9 -6

priv/static/install.sh modified +4 -4

@@ -388,7 +388,7 @@ echo "Loading Coder..." >&2

388 388
coder_path="$BIN_DIR/coder"
389 389
[ "$os" = "windows" ] && coder_path="${coder_path}.exe"
390 390
391
# The installer usually runs from a pipe, so its standard input is exhausted
392
# when this point runs. Give Coder the terminal so the newly installed session
393
# can receive the reader's input.
394
exec "$coder_path" </dev/tty
391
# The installer usually runs from a pipe. Coder detects the controlling
392
# terminal and opens it for input itself; redirecting stdin here makes
393
# Crossterm fail to initialize its macOS input reader.
394
exec "$coder_path"
test/openagents_web/install_script_test.exs modified +5 -2

@@ -223,8 +223,11 @@ defmodule OpenAgentsWeb.InstallScriptTest do

223 223
      assert script =~ ~s(OpenAgents v$version installed.)
224 224
      assert script =~ ~s(Loading Coder...)
225 225
226
      assert script =~ ~s(exec "$coder_path" </dev/tty),
227
             "the installer does not start Coder with terminal input"
226
      assert script =~ ~s(exec "$coder_path"),
227
             "the installer does not start Coder after installation"
228
229
      refute script =~ ~s(exec "$coder_path" </dev/tty),
230
             "redirecting stdin breaks Coder's macOS input reader"
228 231
229 232
      # The closing block used to carry a shadow warning, a PATH comparison and
230 233
      # a note about a different CLI. It was noise on a successful install.

This page updates live while a promote is in flight · changelog