Skip to content

Video editor saves: name after the source, later saves are versions (round 5, S1–S4) - #2

Merged
zickmatthias merged 2 commits into
mainfrom
utransfer/saves
Dec 1, 2026
Merged

zickmatthias merged 2 commits into
mainfrom
utransfer/saves

Conversation

@zickmatthias

Copy link
Copy Markdown
Owner

Round 5, S1–S4 of the plan in utransfer (docs/plans/ustorage-round5.md).

What changed

  • Exports of a file the host opened are named after it ("video (edit).mp4").
  • The editor reports unsaved changes (opencut:dirty) and clears them when the host confirms a save.
  • The first export is a Save As; later exports send the stored name with no prompt, so the host saves a new version.
  • The naming and save-request rules are pure and tested (lib/utransfer-names.ts).

Deviations

  • S3 relies on the host echoing its stored name in opencut:saved. The current host does not echo it yet; the fork falls back to the name it sent (PR 3 adds the echo).
  • The host's autosave for this editor needs a host-to-editor request to export (opencut:save-request). The plan does not describe it, so it is not added here; see the round-5 notes.

Not verified

  • The headless bridge check for this change (export twice, second save has saveAs false). It runs before the v0.2.0 release.
  • The bridge behaviour in a real Chrome against Drive (N7-style); Matti's check after the app deploy.

🤖 Generated with Claude Code

zickmatthias and others added 2 commits December 1, 2026 19:04
- S1: exports of a file the host opened are named after it: video.mp4 gives "video (edit).mp4".
  Without a source, the project's name as before.
- S2: the editor reports unsaved changes to the host (opencut:dirty true after an edit, false after
  the host confirms a save); only changes of state are sent; stopped with the editor.
- S3: the first export is a Save As, so the host asks for the name once. Later exports send the name
  the host stored, with no prompt, so the host saves a new version of that file. The host's saved
  message may echo its stored name; without it, the name that was sent is used.
- S4: the naming and save-request rules are pure (lib/utransfer-names.ts, no imports) and tested
  (8 tests). The rest of the bridge needs a browser and is checked by the headless run of the release.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Two exports: the first is a Save As (named after the source, saveAs true); the second is a version of the
same file (saveAs false, the stored name). The parent confirms saves with the name stored, and the check
asserts dirty true before and false after the save.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@zickmatthias
zickmatthias merged commit 01e7e96 into main Dec 1, 2026
2 of 3 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.

1 participant