Skip to content

fix(webapp): keep the .jsonl filename when a transcript media type differs in case - #5038

Closed
sreecharan-desu wants to merge 1 commit into
triggerdotdev:mainfrom
sreecharan-desu:fix/transcript-content-type-case
Closed

sreecharan-desu wants to merge 1 commit into
triggerdotdev:mainfrom
sreecharan-desu:fix/transcript-content-type-case

Conversation

@sreecharan-desu

Copy link
Copy Markdown

Fixes #4982

✅ Checklist

  • I have followed every step in the contributing guide
  • The PR title follows the convention.
  • I ran and tested the code works

Testing

Ran pnpm run test ./app/services/realtime/transcriptDownload.server.test.ts --run in apps/webapp (8 passed). Webapp typecheck, oxlint, oxfmt, and knip passed.


Changelog

Chat transcript downloads keep the .jsonl filename when the stored media type differs only in letter case.


Screenshots

N/A

…ffers in case

Media types are case-insensitive, but the download compared the stored
Content-Type exactly. A different case saved the file as .json instead of .jsonl.
@changeset-bot

changeset-bot Bot commented Oct 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8bb3582

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Hi @sreecharan-desu, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions Bot closed this Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 517a388e-62d7-4348-ab3f-3f1bf4451912
📥 Commits

Reviewing files that changed from the base of the PR and between d5dc484 and 8bb3582.

📒 Files selected for processing: 3
  • .server-changes/transcript-download-media-type-case.md
  • apps/webapp/app/services/realtime/transcriptDownload.server.test.ts
  • apps/webapp/app/services/realtime/transcriptDownload.server.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

// Media type and subtype are case-insensitive (RFC 9110). Parameters after ";" are ignored.
const filename =
contentType.split(";")[0]?.trim() === TRANSCRIPT_BLOB_CONTENT_TYPE
contentType.split(";")[0]?.trim().toLowerCase() === TRANSCRIPT_BLOB_CONTENT_TYPE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Pagination still rejects mixed-case media types

For a mixed-case stored media type, readSuffix skips ranged reads. Dashboard pagination then fetches the whole transcript on every page, despite the download recognizing its format.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

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.

bug: transcript downloads get a .json filename when the stored media type differs in case

1 participant