GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — fix(agiloft): identify attachments by their bytes, not the content type by waleedlatif1 · Pull Request #6573 · simstudioai/sim Conversation
Collaborator
SummaryFollow-up to #6562, from the same customer report. Agiloft serves most attachment downloads as
Type of Change
TestingThree unit tests: recovery from an octet-stream header, preserving a specific header, and the unknown-bytes fallback. 68 Agiloft tests, typecheck, lint, Not verified against a live instance — same caveat as #6562. Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
PR SummaryLow Risk Overview The retrieve route now runs the response through existing Reviewed by Cursor Bugbot for commit 585dedf. Configure here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Greptile SummaryThe Agiloft retrieval route now derives a useful attachment MIME type from the upstream content type and filename, avoiding ambiguous byte-signature classification.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/app/api/tools/agiloft/retrieve/route.ts | Replaces the raw upstream MIME value with the shared filename-aware resolution helper; no blocking issue remains from the prior thread. |
| apps/sim/app/api/tools/agiloft/retrieve/route.test.ts | Adds focused regression coverage for resolving an OOXML attachment served as application/octet-stream. |
Reviews (2): Last reviewed commit: "fix(agiloft): resolve attachment MIME ty..." | Re-trigger Greptile
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ader Agiloft labels most attachments application/octet-stream whatever they actually are, so a downstream consumer keyed on the header mis-handles them. Resolve the type through resolveEffectiveMimeType, the shared helper the other tool routes already use, which prefers a header that names a real format and otherwise falls back to the filename Agiloft sends in Content-Disposition.
c5d0e61 to
585dedf
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@cursor review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 585dedf. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
585dedf5
Deployed
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.