Skip to content

fix(aistudio): ignore 404 on temporary Drive cleanup and deduplicate inline media bindings - #90

Merged
Mag1cFall merged 1 commit into
Mag1cFall:mainfrom
paralax034:fix/inline-media-cleanup
Oct 29, 2026
Merged

Mag1cFall merged 1 commit into
Mag1cFall:mainfrom
paralax034:fix/inline-media-cleanup

Conversation

@paralax034

Copy link
Copy Markdown
Contributor

改动 / Changes

  • Ignore HTTP 404 (DriveDelete not found) in TemporaryFileCopies.Cleanup (internal/aistudio/upload.go) so already-deleted expired inline-media files are not re-bound back into runtime-state.json and temporary bound resources still unbind cleanly.
  • Deduplicate existing inline-media entries sharing the same (MIME, SHA256, DisplayName) key in AccountLease.bindInlineMedia to prevent stale Drive file IDs from colliding with newly uploaded inline attachments across turns.

验证 / Verification

  • go vet ./...
  • go test -mod=readonly ./cmd/... ./internal/...

@Mag1cFall
Mag1cFall merged commit f8d4997 into Mag1cFall:main Oct 29, 2026
6 checks passed
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.

2 participants