• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nicklaw5 / helix / 24290219257 / 1
93%
main: 93%

Build:
DEFAULT BRANCH: main
Ran 11 Apr 2026 07:49PM UTC
Files 42
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Apr 2026 07:48PM UTC coverage: 93.051% (-0.04%) from 93.088%
24290219257.1

push

github

web-flow
fix: Resolve infinite token refresh loop on missing scope 401s (#257)

* Initial plan

* Fix infinite token refresh loop when scope is missing

When a 401 response is due to missing scopes (e.g., "Missing scope:
moderator:read:followers"), the token refresh would not resolve the
issue since refreshing preserves the same scopes. Previously, this
caused an infinite loop of refresh-retry cycles.

Changes:
- Parse the 401 error response body before attempting token refresh
- Skip token refresh when error message indicates missing scopes
- Limit token refresh to one attempt per request to prevent infinite
  loops for any persistent 401 error
- Add tests for both missing scope and persistent 401 scenarios

Agent-Logs-Url: https://github.com/nicklaw5/helix/sessions/acc538d2-8063-4c51-a449-a200add24a75

Co-authored-by: nicklaw5 <7908386+nicklaw5@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nicklaw5 <7908386+nicklaw5@users.noreply.github.com>

1821 of 1957 relevant lines covered (93.05%)

5601.46 hits per line

Source Files on job 24290219257.1
  • Tree
  • List 42
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24290219257
  • 54f22df0 on github
  • Prev Job for on main (#24289995059.1)
  • Next Job for on main (#24290359163.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc