Improve connector reload authentication UX (#2370)

Keep Azure tokens in memory and preserve linked namespace context across extension reloads.

Co-authored-by: Alex Yang (DevDiv) <yangalex@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Alex Yang [MSFT]
2026-07-23 10:51:00 -07:00
committed by GitHub
parent 26a363779a
commit c0869f6231
10 changed files with 110 additions and 171 deletions
@@ -164,7 +164,9 @@ test("saved namespace prompts for sign-in after the extension credential is rese
const response = await fetch(entry.url);
const html = await response.text();
assert.match(html, /id="signin-btn"/);
assert.match(html, /Sign in to Azure/);
assert.match(html, /Sign in to see your connectors/);
assert.match(html, /Connector namespace <code>yeah-github-cli<\/code> is already linked\./);
assert.match(html, /Sign in to Azure to view and manage its connectors\./);
assert.doesNotMatch(html, /Couldn't load the saved namespace|couldn't open namespace/i);
});