You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve count_records reliability for tmux console
The previous implementation used execute_query which relies on
_send_command_to_tmux without waiting for command completion. This
caused race conditions where the count value wasn't captured.
Changes:
- Use unique markers with token_hex for reliable output extraction
- Wait for end marker to appear in tmux output (up to 30 seconds)
- Parse output with exact marker matching to avoid matching echoed commands
- Add fallback scanning in case of buffer noise
This fix was essential for running cleanup_openproject.py which needs
accurate count values to track deletion progress.
0 commit comments