Skip to content

[BUG] rerunning an SSH'ed terminal block doesn't rerun the commandsΒ #373

@eythian

Description

@eythian

Bug Description

If you run a terminal block in an SSH context, the commands defined in that terminal block will only execute the first time. The second time it stops at the command prompt

Steps to Reproduce

  1. create a runbook
  2. make an SSH block that connects to host.example.com
  3. below that, make a terminal block that contains a command, for example ls
  4. run the terminal block, note that it works as expected
  5. close the terminal block (^D or pressing the red stop button)
  6. run the terminal block again

Expected Behavior

The command in the block will be executed again

Actual Behavior

The command prompt on the remote host is displayed, but the command is not executed. There is a new entry on the terminal from which atuin-desktop is launched:

[2026-01-28T13:21:23.523591988Z][INFO][atuin_desktop_runtime::pty::pty_store] Killing pty: 5ef47a89-aa54-4907-86c9-84cff6c4bb34

Environment

  • OS: Ubuntu 25.10
  • Atuin Desktop Version: 0.2.18
  • Atuin CLI Version: 18.10.0 (but only installed on localhost, not the remote host)
  • Shell: bash
  • Terminal: ghostty

Screenshots/Logs

Image
[2026-01-28T13:20:03.386408713Z][INFO][atuin_desktop_runtime::ssh::session] Starting SSH authentication for robin@host.example.com
[2026-01-28T13:20:03.386560681Z][INFO][atuin_desktop_runtime::ssh::session] Starting SSH authentication for robin@host.example.com
[2026-01-28T13:20:03.386636077Z][INFO][atuin_desktop_runtime::ssh::session] Step 1/4: Trying SSH agent authentication
[2026-01-28T13:20:03.386685131Z][INFO][atuin_desktop_runtime::ssh::session] Attempting SSH agent authentication for robin
[2026-01-28T13:20:03.386735611Z][INFO][atuin_desktop_runtime::ssh::session] Using default SSH agent from environment
[2026-01-28T13:20:03.387396631Z][INFO][atuin_desktop_runtime::ssh::session] SSH agent has 4 keys available
[2026-01-28T13:20:03.632344914Z][INFO][atuin_desktop_runtime::ssh::session] βœ“ Successfully authenticated with SSH agent key #1
[2026-01-28T13:20:03.632455365Z][INFO][atuin_desktop_runtime::ssh::session] βœ“ SSH authentication successful with agent
[2026-01-28T13:20:08.240119694Z][INFO][atuin_desktop_runtime::pty::pty_store] Killing pty: 5ef47a89-aa54-4907-86c9-84cff6c4bb34
[2026-01-28T13:21:23.523591988Z][INFO][atuin_desktop_runtime::pty::pty_store] Killing pty: 5ef47a89-aa54-4907-86c9-84cff6c4bb34

(the killing pty messages seem to appear when a terminal is closed, which makes sense. The second one there was the attempt that just results in being on the command prompt with no execution having happened.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions