Skip to content

Remove the real-person filter from avatar generation - #49205

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/remove-avatar-person-ban-593
Nov 25, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/remove-avatar-person-ban-593

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Orca used to stop some avatar descriptions before asking the image agent. Now it sends those descriptions to the selected agent. If the agent declines, the picker says it didn’t make an image and suggests rewording the description.

What Changed

  • Remove the real-person checks from the picker and desktop handler, and drop the restriction from the shared generation prompt.
  • Use the existing localized no-image message for an agent refusal.

Why

A refusal tells the picker that no image was made. The old message gave a reason the picker could not verify.

Linked Issue

No separate public issue.

Visual Proof

Before and after in the seeded Generate picker

Before

Orca blocks the description

After

The picker shows neutral feedback when the agent declines

Testing

  • On macOS, submitted “me as a superhero” in the seeded picker and verified the refusal message and locale fallback.
  • Ran the desktop handler with a stub image agent to verify prompt normalization, image delivery, refusal, sign-in errors, quota, process failure, cancellation, and input limits.
  • Ran the existing avatar request and new bot picture tests. Checked desktop and mobile localization.

Performance

One existing generation run per accepted Generate action.

Risk

Level: Low. More descriptions can reach the selected agent and use its generation quota. A revert restores the old picker and prompt behavior.

AI Disclosure

Review

Desktop avatar generation is local. Mobile and paired clients continue to use their existing picture paths.

Agent skill upstream boundary

  • Not applicable

Notes

The selected image agent can still decline a request.

Checklist

  • Scoped change, risk and platform impact reviewed
  • Seeded visual proof and targeted tests complete
  • CI covers the wider checks and build

@brennanb2025
brennanb2025 marked this pull request as ready for review November 25, 2026 19:32
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes remove real-person description checks from avatar generation and remove the corresponding prompt instruction and failure type. Requests that pass the existing checks proceed to generation. Agent replies containing REFUSED now return no-image. The renderer fixture supports this result, and the real-person failure message and locale entries are removed.

Merge Risk: Minimal · up to 80390

Avatar descriptions are now sent to the image agent without a real-person pre-check. If the agent declines, the user sees the no-image message. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: removing the real-person filter from avatar generation. The raw summary confirms the filter checks, the real-person error, and the prompt restriction were removed acro…
Description check Passed The description follows the repository template. It fills ELI5, What Changed, Why, Linked Issue, Visual Proof with before and after images, Testing, Performance, Risk with level, Review, the agent ski…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: removing the real-person filter from avatar generation. The raw summary confirms the filter checks, the real-person error, and the prompt restriction were removed across the picker, desktop handler, shared prompt, and locale files. The title is specific and accurate, so it passes.

Full details: Description check

Explanation

The description follows the repository template. It fills ELI5, What Changed, Why, Linked Issue, Visual Proof with before and after images, Testing, Performance, Risk with level, Review, the agent skill boundary, Notes, and the checklist. It explains the behavior change and the revert path. The AI Disclosure section is empty, but the template marks it as applicable only to non-StablyAI contributors, so this is a minor gap. The Linked Issue section says there is no separate public issue, which is acceptable for a maintainer-authored change. Overall the description is mostly complete.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f89a29e9-6be0-4891-877e-e4612a3441c0
Commits

Reviewing files that changed from the base of the PR and between db4fdd1 and 803900c.

Files selected for processing: 11

  • src/main/avatar-generation/avatar-generation-ipc.ts
  • src/main/avatar-generation/avatar-image-agent-run.ts
  • src/renderer/src/component-fixtures/fixture-bot-picture.tsx
  • src/renderer/src/components/bots/AvatarGenerateFieldNote.tsx
  • src/renderer/src/components/bots/BotPicturePicker.fixture.tsx
  • src/renderer/src/components/bots/use-avatar-generation.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/avatar-generation/avatar-generation-contract.ts
  • src/shared/avatar-generation/avatar-generation-prompt.ts
Files with no reviewable changes: 7

  • src/renderer/src/components/bots/AvatarGenerateFieldNote.tsx
  • src/renderer/src/components/bots/use-avatar-generation.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/avatar-generation/avatar-generation-contract.ts
  • src/shared/avatar-generation/avatar-generation-prompt.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Verified the refusal message in the seeded Generate picker and checked description submission, image delivery, and agent failures on macOS.

@brennanb2025
brennanb2025 enabled auto-merge (squash) November 25, 2026 20:42
@brennanb2025
brennanb2025 merged commit c640972 into main Nov 25, 2026
89 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