Skip to content

Fix saving to opened files#5

Closed
AmityWilder wants to merge 4 commits into
anadon:masterfrom
AmityWilder:save-fix
Closed

Fix saving to opened files#5
AmityWilder wants to merge 4 commits into
anadon:masterfrom
AmityWilder:save-fix

Conversation

@AmityWilder

Copy link
Copy Markdown
Contributor

Files that have been opened cannot be saved; only new files. The reason for this appears to be that the dir field is not assigned when opening a circuit from a file, and thus no directory path is prepended to the filename at save, causing the path to be relative to the root, which is inaccessible (or at least not the location of the actual file).

@anadon

anadon commented Feb 11, 2026 via email

Copy link
Copy Markdown
Owner

anadon commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Thank you for this, @AmityWilder — your diagnosis of the save bug was exactly right: open() never assigned the circuit's directory, so saves resolved against the filesystem root and failed for every circuit opened from disk.

Closing this now that everything in it has landed on master, most of it independently before we could get this branch merged:

Sorry this sat as long as it did, and thanks again for the contribution.


Generated by Claude Code

@anadon anadon closed this Jul 17, 2026
anadon added a commit that referenced this pull request Jul 17, 2026
Land the remaining cleanup from PR #5: drop leftover duplicate input.close() calls
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.

2 participants