BUG: Duplicate record_action() call in autonomous.py double-counts actions #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In bot/utils/autonomous.py, the autonomous_engine.record_action() function is called TWICE for every autonomous action:
This double-records every autonomous action, which:
Expected Behavior
record_action() should be called exactly once per action execution.
Proposed Fix
Remove the duplicate record_action() call. Keep only the one inside the action execution block (which has more specific context about what action was taken), or keep only the one at the end (as a catch-all). Do not call it in both places.
Impact
Files Affected