8000 fix(export): honor custom filename on download by johannboehme · Pull Request #56 · johannboehme/tk-1 · GitHub
[go: up one dir, main page]

Skip to content

fix(export): honor custom filename on download - #56

< 8000 div class="prc-PageHeader-Actions-wawWm flex-items-center gap-2 position-relative d-none" data-component="PH_Actions">
Merged
johannboehme merged 1 commit into
mainfrom
claude/recursing-babbage-812582
Jun 14, 2026
Merged

johannboehme merged 1 commit into
mainfrom
claude/recursing-babbage-812582

Conversation

@johannboehme
Copy link
Copy Markdown
Owner

What

The custom filename typed in the export panel's Advanced section is now used as the download filename.

Why

The filename was being saved correctly — it lands in exportSpec.filename and gets persisted onto the rendered job as editSpec.outputFilename — but nothing ever read it back. The Download button on the job page hardcoded the name:

download={`${job.title || job.id}.mp4`}

So the reported flow (export → back to editor → change values + set a custom filename under Advanced → re-render) always downloaded a file named after the project instead of the custom name.

Change

JobPage now derives the download name from the persisted editSpec.outputFilename, falling back to the project title/id:

const downloadName = useMemo(() => {
  const custom = (job?.editSpec as EditSpecLocal | undefined)?.outputFilename?.trim();
  const base = custom || job?.title || job?.id || "export";
  return `${base}.mp4`;
}, [job?.editSpec, job?.title, job?.id]);

Since editSpec is rewritten on every successful render, the re-render case is covered.

Notes for reviewer

  • Extension stays .mp4 — ExportSpec.format is currently mp4-only.
  • outputFilename is stored without extension (the panel shows .mp4 as a fixed suffix), so no double-extension risk.

🤖 Generated with Claude Code

The export panel's custom filename was persisted to editSpec.outputFilename
on every render but never read back. The Download button on JobPage hardcoded
the name to `${job.title || job.id}.mp4`, so re-rendering with a custom name
under Advanced still downloaded a file named after the project.

Read outputFilename back from the persisted editSpec, falling back to the
project title.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@johannboehme
johannboehme merged commit 058fc3c into main Jun 14, 2026
1 check passed
@johannboehme
johannboehme deleted the claude/recursing-babbage-812582 branch June 14, 2026 20:48
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.

1 participant

0