Repository navigation
Load agent icons without asking the backend for the account - #22
Merged
Merged
Conversation
Each icon batch called GET /api/v1/users/me/ to compare the account, although sign-in already saved its name with the session. The loader now takes the saved name and asks the backend only when the session has none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Every agent-icon batch (four agents per worker, one batch after another) called
GET /api/v1/users/me/just to compare the account. Against the local backend that call takes 0.7–1.1 s per batch. Sign-in already saves the account name with the session.Change
claudeAgentIcons.tsusessession.status(backend)and falls back tostatus(backend, true)only when the session carries no saved name (for example explicit environment tokens).Related
status(backend)exists in the pinned devtools 0.3.1.include_icons=trueon the agent endpoints, so icons can come back with the list in one call.Tests
npm test: 97/97 pass (also run against the patched devtools from #16). Not yet checked in the Desktop app.No version bump or release in this PR.
🤖 Generated with Claude Code