Skip to content

Files: Results only in files the user saves; .rbds can hold results; per-file save setting - #401

Open
danyill wants to merge 4 commits into
fix/versions-across-formatsfrom
feat/results-in-file
Open

danyill wants to merge 4 commits into
fix/versions-across-formatsfrom
feat/results-in-file

Conversation

@danyill

@danyill danyill commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Stacked on #398.

Results are now stored only in model files the user saves.

  • Version history: copies kept in the state folder are now model-only, and existing copies that held results are slimmed down once.
  • .rbds can hold results: it uses the same entries as .rbdz. A file without results saves byte for byte as before.
  • Per-file setting: "Save Results in File" defaults to off, and is on for a file that already holds results. It appears in four places that stay in sync: the Results ribbon, the File view, Save As, and a status-bar indicator showing whether the file holds results and their size.
  • Size warning: saving results that would make an .rbds over 5 MB offers Save as .rbdz, Save without results, Cancel, or Save anyway.
  • New command: File ▸ Remove Results from File…, which removes the results without changing the model.

Docs: RBDS_FORMAT.md, RBDZ_FORMAT.md and the manual.

Results are stored only in the model files the user saves. Recording an
.rbdz version stores its model and manifest without results/, and versions
an older release stored with results are slimmed the first time their
history is read, keeping ids, labels, times and descriptions. The History
dialog says so once, and no longer labels archive versions with results.
An optional top-level results object holds the same entries as an .rbdz's
results/ folder (.json entries as JSON values, the rest as text), written
and read through one shared module, result_entries. save_results is stored
only when on and not implied by results; the .rbdz manifest gains the same
flag. A file without results is written byte for byte as before.
One setting, "Save results in this file", decides whether Save writes the
results on screen into an .rbds or .rbdz. It is off for a new model and a
file without results, on for a file that holds results, and stored in the
file only when on. One checkable command, results.save_in_file, shows and
changes it from the Results tab, the File view and a new status-bar
indicator (Results: saved in file / not yet saved / not saved in file);
Save As starts from it for .rbds and .rbdz. An .rbds that holds results
reopens with them on screen, like an .rbdz.

Saving more than 5 MB of results into an .rbds asks first and offers
Save as .rbdz, Save without results or Save anyway. File > Remove Results
from File removes the saved results (now, or at the next Save when there
are other unsaved changes) and leaves the results on screen.

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.

1 participant