Repository navigation
fix(messaging): deliver single ~/.scion/inbox attachment for artifact-backed messages - #5772
Conversation
…essages Stop copying artifact-backed web chat attachments into the project scratchpad in project-topic and native project-group threads so that delivered messages list each attachment once at ~/.scion/inbox/<msg-id>/<name>, with no duplicate scratchpad path, no attachment_mounts entry, and no 'also visible to sibling agents' body note (#9694). - Skip ref.artifact entries in stageChatAttachments (also fixing the ON->OFF experiment toggle double-listing edge case) and drop its unused messageID parameter. - Remove stageArtifactAttachment, errNoAttachmentStaging, OpenBoundAttachment, applyProjection, AttachmentProjectedLine, and ProjectedPath/ProjectedMount fields from AttachmentRef, AttachmentDelivery, and AttachmentPlanEntry. - Drop the scratchpad fallback for old brokers lacking Capabilities.AttachmentDelivery (they still emit the 'Attachment not delivered' line; sibling agents can fetch via scion conversation get-message --save-attachments). - Keep legacy (!ref.artifact) scratchpad staging and attachment_mounts intact until #4602 retires AttachmentStore. - Update affected tests, experiment description, and docs.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Code Review
This pull request removes the scratchpad projection feature for artifact-backed attachments, delivering them exclusively to the recipient's inbox with no copy placed in the project's scratchpad shared directory. Sibling agents can instead fetch these attachments using the CLI. This change simplifies the attachment delivery pipeline by removing projection-related fields and the OpenBoundAttachment method. Feedback on the PR points out a style guide violation regarding the terminology used for 'Agent home' in a code comment.
| // Artifact-backed attachments are delivered into the agent's home | ||
| // (~/.scion/inbox/<msg-id>/<name>, ptone/scion#4596). |
There was a problem hiding this comment.
According to the Repository Style Guide (line 45), the canonical term 'Agent home' should be used instead of 'agent's home'.
| // Artifact-backed attachments are delivered into the agent's home | |
| // (~/.scion/inbox/<msg-id>/<name>, ptone/scion#4596). | |
| \t// Artifact-backed attachments are delivered into the Agent home\n\t// (~/.scion/inbox/<msg-id>/<name>, ptone/scion#4596). |
References
- Use the canonical term 'Agent home' instead of 'agent's home' as per Repository Style Guide line 45. (link)
Closes ptone#9694.
ref.artifact) web chat attachments to scratchpad instageChatAttachments(pkg/hub/handlers_chat_v2.go), fixing the ON->OFF experiment toggle double-listing edge case.stageArtifactAttachment,errNoAttachmentStaging,artifacts.Service.OpenBoundAttachment,applyProjection,AttachmentProjectedLine, andProjectedPath/ProjectedMountfromAttachmentRef,messages.AttachmentDelivery, andmessages.AttachmentPlanEntry.!ref.artifact) scratchpad staging andattachment_mountsintact forptone/scion#4602; drop the scratchpad fallback for old brokers lackingCapabilities.AttachmentDelivery.