Skip to content

Opening a project no longer marks it unsaved; clips rendered while it was closed come in Rendered (#1345) - #1346

Open
ccoventry wants to merge 1 commit into
devfrom
fix/open-project-stays-saved-1345
Open

ccoventry wants to merge 1 commit into
devfrom
fix/open-project-stays-saved-1345

Conversation

@ccoventry

Copy link
Copy Markdown
Owner

Release note: Fixed: opening a project no longer marks it unsaved when nothing was changed; clips rendered while it was closed come in marked Rendered and saved.

Closes #1345

What happened

Every open of diceWSOD25main.dodstudio logged read the render history of 148 take folder(s): 35 video(s) new to the project and left the project unsaved: pickUpTakeFolderRenders recorded the renders and marked it dirty, and since the user never saved, it found the same 35 every time. Closing then asked to save changes nobody had made. The same pick-up recorded the renders but left those highlights Captured.

What changes

  • pickUpTakeFolderRenders resolves { added, takeKeys } instead of a count.
  • project_session.js's pickUpRendersOnOpen marks those takes' highlights Rendered (markTakesRendered in take_index.js, the rule a finishing render uses), redraws the tables, and, when the pick-up is the only change since the open, saves the project quietly and logs [project] saved ... with the N video(s) found in its take folders; M highlight(s) now Rendered.
  • If anything else made the project unsaved since the open (a relocated demo, an edit), it stays unsaved: those changes are the user's to save. A quiet open (Rescan Recent Sessions) saves itself already.
  • main_js_budget 525 → 526 for the onStatusChange wiring line.

Test done

  • project_session_open_renders.test.js (3): a project with a new render opens saved with both highlights Rendered; with another change before the pick-up it marks them but writes nothing and stays unsaved; with nothing new it writes nothing.
  • project_renders.test.js updated for the new result.
  • npm run test:unit (1,435 passed), eslint (no errors). e2e left to CI: written during a capture batch, kept off heavy runs.

Not tested in Studio yet.

Your test (1 min)

Open diceWSOD25main.dodstudio (its 35 renders aren't in the file yet): the header shows no "• unsaved", and the activity log has the saved ... found in its take folders line.

🤖 Generated with Claude Code

…th the open and mark their highlights Rendered (#1345)

pickUpTakeFolderRenders now resolves { added, takeKeys }. project_session's
pickUpRendersOnOpen marks those takes' highlights Rendered (markTakesRendered,
take_index.js) and, when the pick-up is the only change since the open, saves
quietly. Any other change since the open leaves the project unsaved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

Opening a project marks it unsaved before anything is changed

1 participant