8000 fix: clear cached workspace directory metadata by eddiethedean · Pull Request #78 · dmux/minilake · GitHub
[go: up one dir, main page]

Skip to content

fix: clear cached workspace directory metadata - #78

Merged
dmux merged 4 commits into
dmux:mainfrom
eddiethedean:codex/fix-issue-47-workspace-import
Oct 29, 2026
Merged

dmux merged 4 commits into
dmux:mainfrom
eddiethedean:codex/fix-issue-47-workspace-import

Conversation

@eddiethedean
Copy link
Copy Markdown
Collaborator

Deleting a workspace directory left its cached metadata behind, so reusing that path as a notebook or file wrote bytes and then failed while reading missing metadata. Directory deletion now clears the exact entry and descendants; both import handlers reject existing directories before writing and prepare complete metadata before committing file contents.

Regression coverage checks notebook and raw file imports after deletion, plus safe rejection when the target is still a directory.

Validation: Ruff format and lint passed; workspace tests passed (15).

Fixes #47

@eddiethedean
Copy link
Copy Markdown
Collaborator Author

All checks have passed. This PR is ready to merge.

@dmux dmux self-assigned this Oct 29, 2026
@dmux dmux added the bug Something isn't working label Oct 29, 2026
@dmux
dmux merged commit 309fb22 into dmux:main Oct 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Reusing a deleted workspace directory as a file returns 500 after writing bytes

2 participants

0