Skip to content

fix(attachments): strip MIME parameters#13

Merged
upsetbit merged 1 commit into
masterfrom
codex/fix-attachment-mime-parameters
Jun 24, 2026
Merged

fix(attachments): strip MIME parameters#13
upsetbit merged 1 commit into
masterfrom
codex/fix-attachment-mime-parameters

Conversation

@upsetbit

Copy link
Copy Markdown
Contributor

Summary

  • normalize attachment MIME guesses to the media type before initializing high-level uploads
  • keep unknown extensions on application/octet-stream
  • add MCP server coverage for .txt MIME normalization

Root Cause

Go reports .txt as text/plain; charset=utf-8, while Plane accepts text/plain for attachment initialization.

Validation

  • go test ./internal/mcpserver ./internal/plane ./...
  • subagent: go test ./... -count=1
  • subagent: go test ./internal/mcpserver -run TestAttachmentMimeTypeStripsParameters -count=1

Closes #5

@upsetbit upsetbit force-pushed the codex/fix-attachment-mime-parameters branch 2 times, most recently from 67ea25d to b1a2492 Compare June 24, 2026 18:02
@upsetbit upsetbit force-pushed the codex/fix-attachment-mime-parameters branch from b1a2492 to 714ef42 Compare June 24, 2026 18:08
@upsetbit upsetbit merged commit 5f0b65b into master Jun 24, 2026
6 checks passed
@upsetbit upsetbit deleted the codex/fix-attachment-mime-parameters branch June 24, 2026 18: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.

fix(attachments): strip MIME parameters before initializing uploads

1 participant