Bug: cli.py references non-existent run_loop_sync method #97

Closed
opened 2026-02-26 12:28:45 +00:00 by Zeus · 1 comment
Collaborator

Description

cobot run (non-stdin mode) calls bot.run_loop_sync() in cli.py:180, but the Cobot class in agent.py only has run_sync(). This causes an AttributeError on startup.

Impact

Alpha was completely down from Feb 19 to Feb 26.

Fix

-            bot.run_loop_sync()
+            bot.run_sync()

Hotfixed on Alpha instance. Needs commit to repo.

Filed by

Zeus

## Description `cobot run` (non-stdin mode) calls `bot.run_loop_sync()` in `cli.py:180`, but the `Cobot` class in `agent.py` only has `run_sync()`. This causes an `AttributeError` on startup. ## Impact Alpha was completely down from Feb 19 to Feb 26. ## Fix ```diff - bot.run_loop_sync() + bot.run_sync() ``` Hotfixed on Alpha instance. Needs commit to repo. ## Filed by Zeus
Collaborator

Triage Assessment

Classification: VALID-BUG
Severity: High — this broke Alpha for a week (Feb 19–26).

Analysis:
Clear, well-documented bug with a one-line fix already identified and hotfixed on Alpha. The diff in the issue body shows exactly what needs to change.

Suggested next steps:

  1. This is a trivial fix — someone should open a PR with the one-liner.
  2. Consider adding a smoke test that imports and calls cobot run in dry mode to catch method name mismatches.

Label added: Kind/Bug
Priority: Flagged for human — suggest Priority/High given the week-long outage.


Triaged by Doxios 🦊

## Triage Assessment **Classification:** VALID-BUG **Severity:** High — this broke Alpha for a week (Feb 19–26). **Analysis:** Clear, well-documented bug with a one-line fix already identified and hotfixed on Alpha. The diff in the issue body shows exactly what needs to change. **Suggested next steps:** 1. This is a trivial fix — someone should open a PR with the one-liner. 2. Consider adding a smoke test that imports and calls `cobot run` in dry mode to catch method name mismatches. **Label added:** Kind/Bug **Priority:** Flagged for human — suggest Priority/High given the week-long outage. --- *Triaged by Doxios 🦊*
k9ert closed this issue 2026-02-26 16:32:16 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ultanio/cobot#97
No description provided.