You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: clean up stale asset symlinks to prevent hot reload crash loop (#6163)
* fix: clean up stale asset symlinks to prevent hot reload crash loop (#6159)
When a Python module directory using rx.asset(shared=True) is renamed,
stale symlinks in assets/external/ cause Granian to enter an infinite
reload loop. Clean up broken symlinks and empty directories in
assets/external/ in App.__call__ before compilation, so the cleanup
runs on every hot reload, not just initial startup.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* address PR review: guard rmdir against dir symlinks, fix fragile test
- Add `not dirpath.is_symlink()` check before `rmdir()` to avoid
NotADirectoryError on symlinks pointing to directories.
- Use tmp_path/monkeypatch in no-external-dir test to avoid depending
on prior test environment state.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* cr feedback: do not mutate dir while iterating over it
* do not use cwd for tests
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments