Repository navigation
fix(signal): preserve original filenames in outbound attachments - #115107
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 11:11 PM ET / August 1, 2026, 03:11 UTC. ClawSweeper reviewWhat this changesThe PR restores caller-facing filenames for Signal container attachments and replaces commas, semicolons, and hash characters that make its data-URI filename metadata unsafe. Merge readinessThis remains necessary: current main still serializes the staged path basename, so Signal recipients can see the internal UUID suffix. The branch changes the single container attachment serializer, uses the existing media-store filename owner, and adds both mocked-send and real-loopback HTTP coverage; no concrete patch defect was found. The Priority: P2 Review scores
Verification
How this fits togetherSignal’s container transport turns local outbound attachment paths into flowchart LR
A[Outbound attachment path] --> B[Media-store staged filename]
B --> C[Signal container serializer]
C --> D[Original filename recovery]
D --> E[Provider-safe data URI]
E --> F[Signal REST container]
F --> G[Recipient attachment]
Decision needed
Why: The code and focused proof support the repair, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +170. Total +174 across 3 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve this one-owner serializer repair, refresh the branch against current main if required by GitHub, and land it after the Signal owner confirms the intended provider filename normalization. Do we have a high-confidence way to reproduce the issue? Yes. Current main deterministically emits the staged basename at Is this the best way to solve the issue? Yes. Reusing the public media-store filename owner in the sole Signal container serializer fixes the producer boundary without adding a parallel send path or changing MIME, byte-budget, configuration, or SDK behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 02457657f012. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Co-authored-by: ZengWen-DT <[email protected]>
e150c81 to
9f5c762
Compare
|
Merged via squash.
|
* origin/main: fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110) refactor(i18n): remove unused Apple contradiction report (openclaw#117182) fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167) perf: count large histories before Gateway prewarm (openclaw#117118) fix(signal): restore provider-safe original attachment filenames (openclaw#115107) refactor(channels): unify setup ownership across bundled channels (openclaw#117188) fix: allow gateway service commands for named profiles (openclaw#116314) fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041) fix(ollama): honor model requests and pull completion contracts (openclaw#117171) fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168) fix(telegram): confirm polling before long poll (openclaw#116970) fix(tlon): wire autoDiscoverChannels through the settings-store round-trip (openclaw#114949) fix(gateway): yield before post-ready background work (openclaw#117083) test(google): cover live transcript overflow fix(google): bound live transcript accumulation
* commit '441d6ab254df14fb6939a8a261f474904ff9c500': (388 commits) fix(qqbot): ignore blank app id fallbacks (openclaw#109460) fix(feishu): consume implicit reply targets across media delivery (openclaw#117196) fix(exec): preserve approved command output when sessions resume (openclaw#117177) fix(qa): use public subagent fanout evidence (openclaw#116832) fix(googlechat): cancel unread auth response bodies before release (openclaw#115873) fix(queue): prevent cron saturation from starving hook dispatch (openclaw#116666) fix(gateway): sessions.steer retry no longer interrupts an active run when replaying a cached idempotency key (openclaw#116969) fix(irc): config validation rejects documented channels.irc.configWrites key (openclaw#112392) fix(mistral): keep terminal error branch lint-clean fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110) refactor(i18n): remove unused Apple contradiction report (openclaw#117182) fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167) perf: count large histories before Gateway prewarm (openclaw#117118) fix(signal): restore provider-safe original attachment filenames (openclaw#115107) refactor(channels): unify setup ownership across bundled channels (openclaw#117188) fix: allow gateway service commands for named profiles (openclaw#116314) fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041) fix(ollama): honor model requests and pull completion contracts (openclaw#117171) fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168) fix(telegram): confirm polling before long poll (openclaw#116970) ...
…nclaw#115107) Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: ZengWen-DT <[email protected]>
* origin/main: fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110) refactor(i18n): remove unused Apple contradiction report (openclaw#117182) fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167) perf: count large histories before Gateway prewarm (openclaw#117118) fix(signal): restore provider-safe original attachment filenames (openclaw#115107) refactor(channels): unify setup ownership across bundled channels (openclaw#117188) fix: allow gateway service commands for named profiles (openclaw#116314) fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041) fix(ollama): honor model requests and pull completion contracts (openclaw#117171) fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168) fix(telegram): confirm polling before long poll (openclaw#116970) fix(tlon): wire autoDiscoverChannels through the settings-store round-trip (openclaw#114949) fix(gateway): yield before post-ready background work (openclaw#117083) test(google): cover live transcript overflow fix(google): bound live transcript accumulation
* commit 'ae4e662145b6aa162777cdb1c011b3f04ddd230d': (388 commits) fix(qqbot): ignore blank app id fallbacks (openclaw#109460) fix(feishu): consume implicit reply targets across media delivery (openclaw#117196) fix(exec): preserve approved command output when sessions resume (openclaw#117177) fix(qa): use public subagent fanout evidence (openclaw#116832) fix(googlechat): cancel unread auth response bodies before release (openclaw#115873) fix(queue): prevent cron saturation from starving hook dispatch (openclaw#116666) fix(gateway): sessions.steer retry no longer interrupts an active run when replaying a cached idempotency key (openclaw#116969) fix(irc): config validation rejects documented channels.irc.configWrites key (openclaw#112392) fix(mistral): keep terminal error branch lint-clean fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110) refactor(i18n): remove unused Apple contradiction report (openclaw#117182) fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167) perf: count large histories before Gateway prewarm (openclaw#117118) fix(signal): restore provider-safe original attachment filenames (openclaw#115107) refactor(channels): unify setup ownership across bundled channels (openclaw#117188) fix: allow gateway service commands for named profiles (openclaw#116314) fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041) fix(ollama): honor model requests and pull completion contracts (openclaw#117171) fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168) fix(telegram): confirm polling before long poll (openclaw#116970) ...
What Problem This Solves
Salvages existing Signal PR #115107: attachments sent through the signal-cli REST container exposed OpenClaw's internal staged UUID suffix instead of their original filename. Three genuine filename delimiter failures also remained: semicolons truncate the provider's filename metadata, commas corrupt the decoded data-URI bytes, and hash characters turn the payload into a URL fragment.
Why This Change Was Made
Repair the single canonical Signal attachment serializer instead of adding transport wrappers or alternate send paths. Reuse the existing public media-runtime original-filename owner, then replace only the three characters independently proven unsafe by the pinned provider parser and real WHATWG data-URI decoding. Normal spaces, Unicode filenames, attachment MIME detection, byte budgets, and the existing provider contract remain intact. The production change is seven additions and three deletions, net four lines.
Preserves original contributor ZengWen-DT's existing PR work and co-author credit. The previous unrelated Signal installer blocker was fixed on the frozen baseline by #115270; this candidate includes no installer change.
User Impact
Signal recipients see the original user-facing attachment filename rather than an internal UUID-staging name. Filenames containing semicolons, commas, hash characters, or combinations of them still reach the Signal provider with intact original JPEG bytes instead of truncating, silently corrupting the attachment, or failing delivery.
Evidence
No auth, security policy, public SDK, configuration, protocol, persistence, SQLite schema, installer implementation, retry, or timeout changes.