Skip to content

refactor(desktop): drop dead goose-set avatar refs#1228

Merged
tellaho merged 1 commit into
kennylopez-agent-avatar-plumbingfrom
tho/1202-drop-goose-set-refs
Jun 24, 2026
Merged

refactor(desktop): drop dead goose-set avatar refs#1228
tellaho merged 1 commit into
kennylopez-agent-avatar-plumbingfrom
tho/1202-drop-goose-set-refs

Conversation

@tellaho

@tellaho tellaho commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Removes the dead goose-set avatar references from gooseAppAvatarRefs, stacked on top of #1202 (agent avatar plumbing).

The goose avatar sets (fuzzies / gloopies / pollies) were already pulled from the project as a separate effort around #1132, so #1202's support for them is dead intent. This strips the goose-set vocabulary and the now-orphaned code that only existed to serve it.

What changed

  • desktop/src/shared/avatars/gooseAppAvatarRefs.ts — removed GOOSE_COLLECTION_ID_PATTERN, the allowFilenameFallback option/type, the filename-fallback branch in parseGooseAppAvatarId, and the now-orphaned avatarRefFileFallback in resolveImportedPersonaAvatarUrl. Collapsing the pattern made the whole fallback path dead, so it's removed rather than left as a vestigial option.
  • gooseAppAvatarRefs.test.mjs — trimmed the fallback-only test; swapped goose-set sample ids for neutral persona-* ones.
  • Rust test fixtures (commands/personas.rs, managed_agents/persona_card_tests.rs) — swapped goose-set sample ids for neutral persona-* ids (used only as opaque ref strings).

Untouched / confirmed independent: the app-avatar: prefix parsing, isGooseAppAvatarRef (used by profile/hooks.ts), and the runtime-avatar whitelist. resolveImportedPersonaAvatarUrl still serves personaDialogState.ts.

Net: 4 files, +19/−60.

Stacking

Verification

  • gooseAppAvatarRefs JS tests 6/6, pnpm typecheck, pnpm lint all clean.
  • Pre-push hooks ran full suites: desktop-test, rust-tests, desktop-tauri-test all passed (validates the Rust fixture edits).

The goose avatar sets (fuzzies/gloopies/pollies) were removed from the
project, so the filename-fallback support for them in gooseAppAvatarRefs
is dead intent. Remove GOOSE_COLLECTION_ID_PATTERN, the
allowFilenameFallback option, and the now-orphaned avatarRefFileFallback
in resolveImportedPersonaAvatarUrl. The app-avatar: prefix parsing and
runtime-avatar whitelist are untouched. Trim the fallback-dependent test
and swap goose-set sample ids for neutral ones in remaining fixtures.

Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
@tellaho tellaho marked this pull request as ready for review June 24, 2026 00:39
@tellaho tellaho merged commit 0807f6e into kennylopez-agent-avatar-plumbing Jun 24, 2026
20 checks passed
@tellaho tellaho deleted the tho/1202-drop-goose-set-refs branch June 24, 2026 00:40
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