feat(react-ui): ambient loading state for AgentInterface + export DotMatrixLoader - #835
Merged
Merged
Conversation
…MatrixLoader Adds AmbientLoader, an AgentInterface-internal loading state: two blurred glow blobs drift and breathe behind the dot-matrix loader with a required contextual label (no surface can render a bare "Loading…"). Neutral themes render the glow as soft luminance depth; branded themes tint it through the accent token automatically. Freezes under prefers-reduced-motion. Wired into the one full-screen gap: opening a thread previously blanked the whole panel (visibility: hidden with nothing shown) while messages loaded — that state now shows the loader with "Loading conversation…". All existing DotMatrixLoader sites are untouched. DotMatrixLoader itself joins the package index so artifact renderers (composed by consumers) can build matching loading states instead of carrying ports of it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XECS4NLhz6BNd1TUYbWjfu
ankit-thesys
commented
Jul 24, 2026
abhithesys
approved these changes
Jul 24, 2026
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.
Part of the "loaders are just Loading…" cleanup across AgentInterface surfaces (the artifact-renderer side ships separately in the SDK repo).
What
AmbientLoader— an AgentInterface-internal loading state: two blurred glow blobs (blur(64px)) drift and breathe on opposing 7s/9.5s cycles behind the shared dot-matrix loader, with a required contextual label so no call site can render a bare "Loading…" again.prefers-reduced-motionfreezes the drift; the label is the singlerole="status"announcement (the inner matrix is aria-hidden).Wired into the one full-screen gap: opening a thread previously hid the entire panel (
visibility: hidden) with nothing shown while messages loaded. That state now renders the loader with "Loading conversation…" — sameisLoadingMessagesflag as the old hiding, so behavior parity is exact. The overlay covers only the thread panel; the sidebar stays interactive.DotMatrixLoaderjoins the package index — artifact renderers are composed by consumers, and their loading states should reuse this loader instead of carrying ports of it.Untouched: every existing DotMatrixLoader site (artifact view page, artifact browser, message loading) — they already do the right thing.
Test Plan
pnpm build+pnpm test(27/27) green; both new classes present indist/components/index.css;DotMatrixLoaderverified importable from the built index🤖 Generated with Claude Code
https://claude.ai/code/session_01XECS4NLhz6BNd1TUYbWjfu