Skip to content

Release v2.5.1

Choose a tag to compare

@newfpv newfpv released this 19 Oct 23:38

Immediate API Test Cancellation Update ⏹️

This update makes Stop test cancel the active API request and return directly to API key settings, while preserving only completed checks.

⚡ Immediate Stop

  • Active Request Cancellation: Stop interrupts the current HTTP request or request-slot wait instead of waiting for the next model.
  • Immediate Menu Return: API checks run in a managed background job; stopping returns to the API keys panel without waiting for SDK cleanup. Old Stop buttons also work after a restart.

📊 Accurate Results

  • Answered Checks Only: Cancelled pending requests do not enter the report or checked count. Timeouts and network failures are shown separately from answered API failures.
  • Partial Results Preserved: Completed checks remain available with a stopped status. Actual HTTP quota responses still count as answered checks.

🔒 Concurrent Job Safety

  • Late Responses Ignored: A stopped request cannot add a late result or overwrite the menu.
  • New Test Protection: Older workers cannot clear a newer job's state or replace its saved report.

✅ Verification & Changed Files

  • 144 Automated Tests Passed: Includes cancellation during an HTTP request, cancellation while waiting for a request slot, delayed SDK cleanup, partial-report accuracy, and saved-report ordering.
  • core/api_key_tests.py: Added cancellable test jobs and answered-only accounting.
  • core/auth.py: Starts and stops managed jobs and immediately restores the API keys menu.
  • modules/api_keys_info.py: Separates unanswered checks and displays stopped status.
  • tests/test_immediate_stop.py: Added cancellation and menu-return regressions.

Full Changelog: v2.5.0...v2.5.1