Skip to content

Load agent icons without asking the backend for the account - #22

Merged
MainSequenceDev merged 1 commit into
mainfrom
claude/agent-search-latency
Oct 23, 2026
Merged

MainSequenceDev merged 1 commit into
mainfrom
claude/agent-search-latency

Conversation

@MainSequenceDev

Copy link
Copy Markdown
Contributor

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.ts uses session.status(backend) and falls back to status(backend, true) only when the session carries no saved name (for example explicit environment tokens).

Related

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

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>
@MainSequenceDev
MainSequenceDev merged commit 5cc63f4 into main Oct 23, 2026
4 checks passed
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.

1 participant