Start Coder after CLI installation

b77305e68d32 · AtlantisPleb · · parent e4f827837b5f

Start Coder after CLI installation

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 461 · 2026-08-26T19:21:58.936125Z
built
7 modules in 24.0 s
deployed
live · 7 modules on 3 nodes · push→live —
deployed
needs_rolling_replace · 7 modules on 0 nodes · push→live —

Changed files

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

Diff

2 files changed, +16 -4

priv/static/install.sh modified +10 -1

@@ -382,4 +382,13 @@ export PATH="$HOME/.openagents/bin:$PATH"

382 382
fi
383 383
384 384
echo "" >&2
385
echo "OpenAgents v$version installed. Run 'coder' to start Coder or 'openagents' to see CLI commands." >&2
385
echo "OpenAgents v$version installed." >&2
386
echo "Loading Coder..." >&2
387
388
coder_path="$BIN_DIR/coder"
389
[ "$os" = "windows" ] && coder_path="${coder_path}.exe"
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
test/openagents_web/install_script_test.exs modified +6 -3

@@ -217,11 +217,14 @@ defmodule OpenAgentsWeb.InstallScriptTest do

217 217
             "the installer does not create the oa alias"
218 218
    end
219 219
220
    test "says one line about what it installed, and names openagents" do
220
    test "starts Coder from the installed path after it finishes" do
221 221
      script = File.read!(@script)
222 222
223
      assert script =~
224
               ~s(OpenAgents v$version installed. Run 'coder' to start Coder or 'openagents' to see CLI commands.)
223
      assert script =~ ~s(OpenAgents v$version installed.)
224
      assert script =~ ~s(Loading Coder...)
225
226
      assert script =~ ~s(exec "$coder_path" </dev/tty),
227
             "the installer does not start Coder with terminal input"
225 228
226 229
      # The closing block used to carry a shadow warning, a PATH comparison and
227 230
      # a note about a different CLI. It was noise on a successful install.

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