Skip to content

github-authentication: skip education.github.com check for EMU accounts#327379

Open
brignano wants to merge 1 commit into
microsoft:mainfrom
brignano:claude/emu-education-check-skip-f9e43c
Open

github-authentication: skip education.github.com check for EMU accounts#327379
brignano wants to merge 1 commit into
microsoft:mainfrom
brignano:claude/emu-education-check-skip-f9e43c

Conversation

@brignano

@brignano brignano commented Jul 24, 2026

Copy link
Copy Markdown

Fixes #327377

Skips the optional education.github.com EDU lookup for managed (EMU) accounts, which can't reach that endpoint anyway.

Before: every session load — including EMU accounts — fires a network request to education.github.com/api/user.

After: EMU-style accounts short-circuit before the fetch, set edu = 'none', and log that the check was skipped. Non-EMU accounts are unaffected. Telemetry schema is unchanged (isEdu, isManaged — same names, same __GDPR__ block).

Testing: type-checks cleanly against the extension's tsconfig (TypeScript 6, --noEmit, 0 errors); hygiene clean (tabs, no trailing whitespace); non-EMU sign-in path unchanged; an EMU login short-circuits before the fetch.

Copilot AI review requested due to automatic review settings July 24, 2026 20:25
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@TylerLeonhardt

Matched files:

  • extensions/github-authentication/src/githubServer.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Skips unnecessary GitHub Education requests for Enterprise Managed User accounts while preserving existing telemetry.

Changes:

  • Detects managed accounts before the EDU lookup.
  • Reports isEdu: 'none' without fetching for managed accounts.
  • Reuses the detection result for telemetry.

@brignano

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@brignano
brignano force-pushed the claude/emu-education-check-skip-f9e43c branch 2 times, most recently from 3bd5c8a to 2426026 Compare July 24, 2026 20:54
Managed (EMU) accounts can't access the education.github.com endpoint, so
evaluate the EMU heuristic up front and skip the fetch entirely for them,
setting edu to 'none'. Telemetry schema is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@brignano
brignano force-pushed the claude/emu-education-check-skip-f9e43c branch from 2426026 to 6c5ccc8 Compare July 24, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

github-authentication: education.github.com telemetry call fires on every window launch and is unnecessary for EMU accounts

3 participants