Skip to content

Bug: Executing a command while another command is running cancels the running commandΒ #4319

@KJ7LNW

Description

@KJ7LNW

Current Behavior

When executing a command through Roo while another command is already running in the terminal, the running command gets canceled.

Expected behavior

Open a new terminal instance for the new command

Steps to reproduce

  1. Run any simple command to open a new terminal echo test
  2. Manually execute a long-running command in the terminal (e.g., sleep 60)
  3. While that command is still running, try to execute another command through Roo
  4. Observe that the first command gets canceled (indicated by ^C) and the new command executes

Terminal transcript showing the issue

]$ echo test
test
]$ sleep 60
^C #<< interrupted
echo test2
]$ echo test2
test

Scoping

Set Terminal.busy when a command is running in the terminal.

Roo is capable of recognizing when a command has been run in a terminal and the terminal should be marked busy: [onDidStartTerminalShellExecution] {command: 'sleep 60', terminalId: 2}

When the command terminates it should be no longer busy: [TerminalRegistry] Shell execution end event received, but process is not running for terminal

Version

  • App version: 3.16.5
  • API Provider: Anthropic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions