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

nicklaw5 / helix / 24290095189
93%
main: 93%

Build:
Build:
LAST BUILD BRANCH: copilot/bugfix-helixclient-eventsub-error
DEFAULT BRANCH: main
Ran 11 Apr 2026 07:45PM UTC
Jobs 1
Files 42
Run time 1min
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:41PM UTC coverage: 93.051% (-0.04%) from 93.088%
24290095189

Pull #257

github

web-flow
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>
Pull Request #257: Fix infinite token refresh loop on missing scope 401s

7 of 10 new or added lines in 1 file covered. (70.0%)

1821 of 1957 relevant lines covered (93.05%)

5750.19 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
89.2
-0.15% helix.go
Jobs
ID Job ID Ran Files Coverage
1 24290095189.1 11 Apr 2026 07:45PM UTC 42
93.05
GitHub Action Run
Source Files on build 24290095189
  • Tree
  • List 42
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #257
  • PR Base - main (#24289995059)
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