Skip to content

Replace profile icon with GitHub avatar in Agent Sessions titlebar#308550

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/replace-profile-icon-with-github-avatar
Draft

Replace profile icon with GitHub avatar in Agent Sessions titlebar#308550
Copilot wants to merge 3 commits intomainfrom
copilot/replace-profile-icon-with-github-avatar

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 8, 2026

When signed in via GitHub, the account widget in the Agent Sessions titlebar now displays the user's GitHub avatar instead of the generic Codicon.account icon.

  • Adds an <img> element to TitleBarAccountWidget that loads https://github.com/{username}.png?size=64
  • Avatar shown only when auth provider is 'github', image loads successfully, and account state is default (not warning/quota/loading)
  • Falls back to codicon icon on image load error or non-default states
  • Handles initialization race between refreshAccount() (async, called from constructor) and render() by setting avatar src in both paths
  • CSS: 18×18px circular avatar (border-radius: 50%, object-fit: cover)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • redirector.gvt1.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --crashpad-handler-pid=6941 --enable-crash-reporter=12c45e71-c6bc-4655-a419-69d1a5d3d010,no_channel --user-data-dir=/tmp/vscode-tests-1775667411228 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,5765768697424805331,14432574568895420925,262144 --enable-features=PdfUseShowSaveFilePicker --disable-features=LocalNetworkAccessChecks,ScreenAIOCREnabled,SpareRendererForSitePerProcess,TraceSiteInstanceGetProcessCreation --variations-seed-version --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: .build/electron/code-oss .build/electron/code-oss test/unit/electron/index.js --crash-reporter-directory=/home/REDACTED/work/vscode/vscode/.build/crashes --run src/vs/sessions/contrib/accountMenu/test/browser/accountTitleBarState.test.ts (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --crashpad-handler-pid=8630 --enable-crash-reporter=12c45e71-c6bc-4655-a419-69d1a5d3d010,no_channel --user-data-dir=/tmp/vscode-tests-1775667598418 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14158819743281034148,584211055635270982,262144 --enable-features=PdfUseShowSaveFilePicker --disable-features=LocalNetworkAccessChecks,ScreenAIOCREnabled,SpareRendererForSitePerProcess,TraceSiteInstanceGetProcessCreation --variations-seed-version --trace-process-track-uuid=3190708989122997041 n/node urces false --sourceMap sh (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Use the prompt file located at find-issue. issue for replacing the profile icon in the Agent sessions app with the avatar from the users github account

Created from VS Code.

Copilot AI requested review from Copilot and removed request for Copilot April 8, 2026 16:49
Copilot AI requested review from Copilot and removed request for Copilot April 8, 2026 17:00
…is already available

Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/2774606e-52b1-410d-827c-df9efdda85ca

Co-authored-by: jo-oikawa <14115185+jo-oikawa@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot April 8, 2026 17:06
Copilot AI changed the title [WIP] Replace profile icon in Agent sessions app with GitHub avatar Replace profile icon with GitHub avatar in Agent Sessions titlebar Apr 8, 2026
Copilot AI requested a review from jo-oikawa April 8, 2026 17:07
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.

2 participants