fix: pass OAuth scopes to DCR and extract granted_scopes from token response (#7571)

Signed-off-by: Peter Siska <63866+peschee@users.noreply.github.com>
Co-authored-by: Jack Amadeo <jackamadeo@squareup.com>
This commit is contained in:
Peter Siska
2026-03-09 16:38:46 +01:00
committed by GitHub
parent 7030645957
commit f740bb7447
6 changed files with 24 additions and 7 deletions
+2 -3
View File
@@ -66,7 +66,7 @@ describe('session reuse scoping (fix for #7601)', () => {
const allSessions = [emptySessionA, emptySessionB, usedSession];
it('window A only reuses its own active empty session, not window B\'s', () => {
it("window A only reuses its own active empty session, not window B's", () => {
// Window A has emptySessionA active, Window B has emptySessionB active.
// Under the old logic, both would grab emptySessionA (the first in the list).
const windowAResult = findReusableSession(allSessions, 'empty-a');
@@ -95,8 +95,7 @@ describe('session reuse scoping (fix for #7601)', () => {
it('demonstrates the old bug: global find would give same session to both windows', () => {
// Old logic (before fix) - both windows get the same session.
const oldLogicFind = (sessions: Session[]) =>
sessions.find((s) => shouldShowNewChatTitle(s));
const oldLogicFind = (sessions: Session[]) => sessions.find((s) => shouldShowNewChatTitle(s));
const windowAOld = oldLogicFind(allSessions);
const windowBOld = oldLogicFind(allSessions);
-1
View File
@@ -7,7 +7,6 @@ import { Buffer } from 'node:buffer';
import { status } from './api';
import { Client, createClient, createConfig } from './api/client';
export interface Logger {
info: (...args: unknown[]) => void;
error: (...args: unknown[]) => void;