* Migrated from private repo PR #592
Transplanted onto the open-source root. 4 test files conflicted with the
open-source snapshot curation; both sides had made identical Windows
compat fixes, resolved by keeping the snapshot version (comments included).
* fix(content-moderation): clean up abort listener on sleep resolve
Remove the AbortSignal listener when the timer fires normally to prevent
listener accumulation during repeated polling iterations.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: resolve merge conflicts and address review feedback
- Widen screenUserMessage callback to pass full item alongside text,
so content moderation can inspect origin/files for image review.
- Fix applyDesktopDevEnvOverrides to use `key in env` instead of
falsy check, respecting explicit empty-string env values.
- Add test for empty-string env override precedence.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(content-moderation): strip blobs for device-link, guard preload API
- broadcastModerationInputBlocked: send compact payload (without base64/
textContent) to device-link to avoid oversized frame drops, while
keeping full payload for local renderer windows.
- UserPromptSection: guard contentModeration preload API with optional
chaining to avoid TypeError during HMR/partial restarts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(mobile): filter clipboard:// attachments in moderation input restore
Desktop-only clipboard:// paths are unusable on mobile. Skip them in
normalizeModerationInputFiles so they aren't placed back into the
mobile composer after an input moderation block.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: DavidShen <david@xd.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>