fix: correct run_loop_sync() to run_sync() in cli.py #98

Closed
doxios wants to merge 2 commits from fix/97-run-sync-typo into main
Collaborator

run_loop_sync() does not exist on CobotAgent; the correct method is run_sync(). This typo caused cobot to crash on startup.

Fixes #97

`run_loop_sync()` does not exist on `CobotAgent`; the correct method is `run_sync()`. This typo caused cobot to crash on startup. Fixes #97
fix: correct run_loop_sync() to run_sync() in cli.py
All checks were successful
CI / lint (pull_request) Successful in 9s
CI / test (3.11) (pull_request) Successful in 22s
CI / test (3.12) (pull_request) Successful in 24s
CI / test (3.13) (pull_request) Successful in 24s
E2E Tests / e2e (pull_request) Successful in 15s
CI / build (pull_request) Successful in 7s
58638f26d5
run_loop_sync() doesn't exist on CobotAgent; the correct method is
run_sync(). This typo caused cobot to crash on startup.

Fixes #97
test: add regression tests for cobot run startup paths (#97)
Some checks failed
CI / lint (pull_request) Successful in 9s
CI / test (3.11) (pull_request) Failing after 17s
CI / test (3.12) (pull_request) Failing after 18s
CI / test (3.13) (pull_request) Failing after 18s
CI / build (pull_request) Has been skipped
E2E Tests / e2e (pull_request) Successful in 13s
3b7c78054e
Tests that 'cobot run' calls run_sync() (not run_loop_sync()) and
that 'cobot run --stdin' calls run_stdin_sync(). These would have
caught the #97 bug immediately.
doxios closed this pull request 2026-02-26 16:53:23 +00:00
Some checks failed
CI / lint (pull_request) Successful in 9s
CI / test (3.11) (pull_request) Failing after 17s
CI / test (3.12) (pull_request) Failing after 18s
CI / test (3.13) (pull_request) Failing after 18s
CI / build (pull_request) Has been skipped
E2E Tests / e2e (pull_request) Successful in 13s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!98
No description provided.