Skip to content

A Bot's command card and Activity say what really happened to the command - #2055

Merged
davidmckayv merged 1 commit into
mainfrom
fix/command-result-lost
Nov 23, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/command-result-lost

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

Found on OpenBot Cloud 1.2.0-rc.3. A Bot's command was refused at the approval gate with "That unanswered tool call is not saved in this conversation". The command's card said Didn't run, the Bot answered without the output, and Activity beside it said "Ran ... Exit 0" over the same sentence. That read as a command that ran and whose output the Bot lost. The command never ran.

What changes

  • Activity tells a command that didn't run from one that exited 0. A command answer with no exit code that did not work (refused at the gate, computer unreachable) now reads Didn't run with the reason, as the conversation's card does. It used to fall through to Exit 0.
  • A step through the gate waits for a computer that is still starting. Every change a Bot makes (a command, a click, typing) goes through the gate. On a cold computer the gate answers "still starting" after its 45 s, and the card then said the computer was starting while the Bot was told to try again. The step is now asked again, up to COMPUTER_START_WAIT_MS, as callComputer already does for direct calls. Each ask has its own Idempotency-Key, and Stop ends the wait.

Tests

  • app/tests/command-not-run-activity.test.tsx: a refused command in Activity reads Didn't run, never Exit 0; a command that ran keeps its exit code and output. Before: Ran 05:16:10 AM Exit 0 $ ls -la ~/reports That unanswered tool call is not saved in this conversation. After: passes.
  • app/tests/approval-tools.test.tsx: a step answered "still starting" is asked again and the Bot gets what the second ask did. Before: one ask. After: passes.
  • app/tests/command-card-layout.test.tsx: the command card and Activity in a real browser, Chromium and WebKit, light and dark, at 1440 and 390 px. The card holds the command, its output and Exit 0, a refused command reads Didn't run, and nothing scrolls sideways. OPENBOT_APP_BROWSER=1 OPENBOT_APP_ENGINES=chromium,webkit bun test app/tests/command-card-layout.test.tsx

…mand

Found on OpenBot Cloud 1.2.0-rc.3. A Bot's command was refused at the
approval gate with "That unanswered tool call is not saved in this
conversation". The command's card said Didn't run, the Bot answered
without the output, and Activity beside it said "Ran ... Exit 0" over
the same sentence, which read as a command that ran and whose output
the Bot lost. The command never ran.

- Activity reads a command with no exit code whose answer did not work
  as one that didn't run, and says Didn't run with why, as the card in
  the conversation does. It used to fall through to "Exit 0".
- A change a Bot makes through the gate (a command, a click, typing) on
  a computer that is still starting is asked again until it has
  started, up to COMPUTER_START_WAIT_MS, as callComputer already does
  for the direct calls. Each ask has its own Idempotency-Key, and a
  Stop ends the wait. The gate answered such a step "still starting"
  after its 45 s, the card said the computer was starting, and the Bot
  was told to try again.

Tests:
- app/tests/command-not-run-activity.test.tsx: the gate's refusal in
  Activity reads Didn't run, never Exit 0; a command that ran still
  says its exit code and output. Fails before (Activity read
  "Ran ... Exit 0 ... That unanswered tool call is not saved in this
  conversation.") and passes after.
- app/tests/approval-tools.test.tsx: a step answered "still starting"
  is asked again, and the Bot gets what the second ask did. Fails
  before (one ask) and passes after.
- app/tests/command-card-layout.test.tsx: the command card and Activity
  in a real browser, Chromium and WebKit, light and dark, at 1440 and
  390 px: the card holds what ran, its output and Exit 0, a refused
  command reads Didn't run, and nothing scrolls sideways.
@davidmckayv
davidmckayv merged commit 182b624 into main Nov 23, 2026
22 checks passed
@davidmckayv
davidmckayv deleted the fix/command-result-lost branch November 23, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant