MCPcopy Create free account
hub / github.com/Noumena-Network/code / hasCurrentManagedOauthErrorSession

Function hasCurrentManagedOauthErrorSession

src/services/api/errors.ts:261–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259}
260
261function hasCurrentManagedOauthErrorSession(): boolean {
262 const session = getCurrentErrorSession()
263 return (
264 session?.principalSource === 'managed_oauth' &&
265 session.sessionState === 'usable' &&
266 session.scopes.includes('user:inference')
267 )
268}
269
270// Temp helper to log tool_use/tool_result mismatch errors
271function logToolUseToolResultMismatch(

Callers 1

Calls 1

getCurrentErrorSessionFunction · 0.85

Tested by

no test coverage detected