Skip to content

Keep traces delivering when an attachment already exists - #326

Merged
Stephen Belanger (Qard) merged 5 commits into
mainfrom
fix/reuse-uploaded-trace-attachments
Nov 25, 2026
Merged

Stephen Belanger (Qard) merged 5 commits into
mainfrom
fix/reuse-uploaded-trace-attachments

Conversation

@Qard

@Qard Stephen Belanger (Qard) commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Reusing an image after a daemon restart can stop the rest of the trace from reaching Braintrust. This lets delivery continue when the image was already uploaded successfully.

Uses the attachment lookup from Rust SDK PR #181.

Fixes #317.

The attachment suite passes locally, including a fresh sink that encounters a duplicate key and a reserved key whose upload is incomplete.

@Qard
Stephen Belanger (Qard) marked this pull request as draft November 25, 2026 14:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T17:09:43.589555Z 2274e88 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Stephen Belanger (Qard) added a commit to braintrustdata/braintrust-sdk-rust that referenced this pull request Nov 25, 2026
When an attachment key already exists, callers need to tell whether the
stored upload is complete and the byte count matches before reusing it.
Add a typed lookup so the tracing daemon can make that check through the
same SDK client it uses to upload attachments.

Builds on #168 and supports [the daemon’s attachment retry
fix](braintrustdata/braintrust-coding-agent-plugins#326).
@Qard
Stephen Belanger (Qard) merged commit 7e41029 into main Nov 25, 2026
29 checks passed
@Qard
Stephen Belanger (Qard) deleted the fix/reuse-uploaded-trace-attachments branch November 25, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An image that another session already uploaded blocks the rest of a trace (409 Attachment key already exists)

2 participants