feat(viewer): per-agent logos + surface count on the session title#72
Merged
Conversation
Replaces the "N surfaces" meta text with a quieter row: a small monochrome per-agent logo (Claude, OpenCode, Cursor, Copilot, Gemini — Simple Icons single paths, inlined with fill=currentColor so they're theme-aware and need no runtime fetch; unknown agents get a neutral terminal glyph), and the surface count moves onto the title as a muted "(N)" (omitted at 0). The meta line is now just "logo · agent · time" — no boxy count glyph that glowed in dark mode. Stacked on the recency-grouping change. Updates the grouping/keyboard e2e tests for the new title (the count rides .sess-title) and adds a logo/fallback test. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> # Conflicts: # CHANGELOG.md
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.
Reviving orphaned PR #45
Per-agent sidebar logos + surface-count-on-title. The original #45 was a stacked PR — its base was
feat/session-sidebar-grouping(#43), notmain. When #43 squash-merged, #45's "merge" attached to the orphaned pre-squash side, soviewer/src/agentMarks.tsxand the sidebar-entry tuning never actually reachedmain. This recovers that work, rebased clean onto currentmain.What it does
Session rows in the sidebar now show a small monochrome logo for the agent that authored the session, and the surface count moves onto the title as a quiet
(N). The meta line tightens tologo · agent · time.viewer/src/agentMarks.tsx): single-path Simple Icons glyphs for Claude, OpenCode, Cursor, Copilot, Gemini, … inlined as SVG withfill="currentColor"— theme-aware (light/dark) with no runtime network fetch.(N)on the title, omitted at 0 (no boxy count glyph that glowed in dark mode).Changes vs. the original
CHANGELOG.mdconflicted on recovery — resolved by dropping the hand-edited entry in favor of a proper changeset (.changeset/agent-session-logos.md), since the repo moved to changesets after feat(viewer): per-agent logos + surface count on the session title #45.App.tsx,styles.css, e2e spec) merged cleanly despite the intervening snippet→surface rename.Validation
npm run typecheck(node + workers + viewer) ✓npm run lint✓ ·npm run format:check✓npm test— 130 passed ✓npm run test:e2e— 52 passed on chromium + webkit ✓ (incl. the new logo/fallback test + updated grouping/keyboard specs)🤖 Generated with Claude Code