MessageAttachment.URL is json:"-" so it never survives DB serialization, but stageSessionAttachments depended on it to read the source file, which silently dropped every attachment before it could be written into /workspace/input. Resolve the storage handle from the temporary_documents row keyed by attachment.ID (GetScoped) when the URL is missing, and pass the session tenant through staging so shared-agent sessions look up the right row. |
||
|---|---|---|
| .. | ||
| repository | ||
| service | ||