-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: iOS Share Extension silently truncates shares to 3 images and discards videos/files #103363
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.Can lose, corrupt, or silently drop user/session/config data.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.no-staleExclude from stale automationExclude from stale automation
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.Can lose, corrupt, or silently drop user/session/config data.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
Summary
The iOS Share Extension silently truncates a multi-image share to the first 3 images, and silently discards every shared video, file, and PDF. It counts them, then throws the counts away.
Bug type
Behavior bug (incorrect output/state without crash).
Evidence (source review)
extractSharedContenttallies each attachment class, caps images at 3, and then discards all four counters without ever using them:apps/ios/ShareExtension/ShareViewController.swift:393apps/ios/ShareExtension/ShareViewController.swift:414apps/ios/ShareExtension/ShareViewController.swift:431Those four
_ =discards are the tell: the counts were evidently meant to drive a user-visible summary (the surviving log line atShareViewController.swift:97still reportsimages=), but nothing consumes them. Onlyattachments— images, at most 3 — reachesAgentRequestPayloadatShareViewController.swift:266, and the extension then reports "Sent to OpenClaw." (ShareViewController.swift:147).Steps to reproduce
Expected behavior
Either all selected attachments are delivered, or the user is told what was omitted ("3 of 6 images sent; videos are not supported yet"). Silently succeeding with partial content is the worst of the three options.
Actual behavior
In both cases the UI shows the success status.
Impact and severity
Suggested direction
Consume the existing counters to render an explicit summary in the draft or status label, and decide deliberately whether the 3-image cap is product policy (if so, say so in the UI) or an artifact worth raising.
OpenClaw version
2026.6.11(source review againstmain@6db586a388)Operating system
iOS (share extension). Not reproduced on device — see below.
Additional information
Found by source review of
apps/ios/ShareExtension/ShareViewController.swift; not observed at runtime, so no device logs or screenshots are attached. The cap and the discards are unconditional in source. Related but distinct from the >5 MB single-image drop, which I filed separately.Reported with AI assistance (Claude Code); the analysis and line references were verified against the current source by the filer.