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

thoughtspot / mcp-server / 32284020175
90%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2026 05:52PM UTC
Jobs 1
Files 38
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

19 Aug 2026 05:51PM UTC coverage: 89.167% (-0.2%) from 89.343%
32284020175

push

github

web-flow
[SCAL-327336] Fix org tools disappearing after token expiry: reconcile token before getSessionInfo (#199)

* [SCAL-327336] Fix org tools disappearing after token expiry: reconcile token before getSessionInfo

sessionInfo is fetched once at init via getSessionInfo(). Previously that ran
before the keep-warm global token was reconciled from the token-store DO, so on
a cold-start reconnect after the frozen props access token expired (~24h),
getSessionInfo authenticated with the dead token, failed, and left sessionInfo
null for the DO's lifetime — silently hiding list_orgs/switch_org and mis-gating
feature flags, even though the DO still held a valid kept-warm token.

- Reorder: a preInit() hook reconciles the global token from the token-store DO
  before initializeService()/getSessionInfo, so the init fetch authenticates with
  the kept-warm token and sessionInfo is populated correctly at connect.
- ensureSessionInfo(): fallback in listTools that refetches session info if it's
  still null (e.g. a transient init failure), guarded by an in-flight promise so
  concurrent list calls share one fetch (no duplicate getSessionInfo / tracker).
- isOrgsEnabled() defaults to true when sessionInfo is absent so org tools stay
  visible in the brief window before the refetch completes.
- callTool reconciles the global token per call keyed on the absence of an active
  org token, so a data call always gets a fresh global token when no org token
  drives it.
- Extract postInit's active-org bootstrap into ensureActiveOrg().

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Address review: clarify session-info/token-expiry logs+comments, drop dead param, harden test

Review follow-ups on the session-info repair PR:

- Logs/comments: make the session-info-failure and token-expiry paths
  self-explaining. initializeService, preInit keep-warm load, and the active-org
  bootstrap failures now log WHY they're non-fatal and WHAT the fallback is
  (org to... (continued)

1047 of 1216 branches covered (86.1%)

Branch coverage included in aggregate %.

42 of 45 new or added lines in 3 files covered. (93.33%)

1 existing line in 1 file now uncovered.

1834 of 2015 relevant lines covered (91.02%)

1135.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
82.32
-1.44% src/servers/user-token-store-server.ts
1
86.83
0.46% src/servers/mcp-server-base.ts

Coverage Regressions

Lines Coverage ∆ File
1
82.32
-1.44% src/servers/user-token-store-server.ts
Jobs
ID Job ID Ran Files Coverage
1 32284020175.1 19 Aug 2026 05:52PM UTC 38
89.17
GitHub Action Run
Source Files on build 32284020175
  • Tree
  • List 38
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32284020175
  • 4f8728e7 on github
  • Prev Build on main (#32062590589)
  • Next Build on main (#32285294883)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc