Refactor cloud agent (#2097)

* refactor cloud session class

* pass correct context

* throw errors and fix parameter typo

* remove stale test

* remove debug markdown

* reset confirmations commadn

* some loose ends

* tweaks while rate limited

* update test

* more accurate

* nevermind

* add back cli handleConfirmationData

* nullptr

* restore test

* polish

* this is the pr uri

* polish
This commit is contained in:
Josh Spicer
2025-11-20 06:47:04 +00:00
committed by GitHub
parent f94a95ede5
commit 057fa609f6
9 changed files with 510 additions and 580 deletions
@@ -232,9 +232,13 @@ export async function makeSearchGraphQLRequest(
first
};
// TODO: Handle rate limiting
// result.errors[0]
// {type: 'RATE_LIMIT', code: 'graphql_rate_limit', message: 'API rate limit already exceeded for user ID xxxxxxx.'}
const result = await makeGitHubGraphQLRequest(fetcherService, logService, telemetry, host, query, token, variables);
return result ? result.data.search.nodes : [];
return result.data?.search?.nodes ?? [];
}
export async function getPullRequestFromGlobalId(