Skip to content

Add hot-reload support to PreviewSession with cold-start fallback#31

Merged
k-kohey merged 1 commit intomainfrom
session-hot-reload
Mar 2, 2026
Merged

Add hot-reload support to PreviewSession with cold-start fallback#31
k-kohey merged 1 commit intomainfrom
session-hot-reload

Conversation

@k-kohey
Copy link
Copy Markdown
Owner

@k-kohey k-kohey commented Mar 2, 2026

No description provided.

- Updated the `CapturePreview` method to support a reload counter, allowing for better management of hot-reload operations.
- Introduced a fallback mechanism to cold start if hot-reload fails, improving reliability during preview captures.
- Modified the `compileMainOnlyPipeline` function to accept a reload counter, ensuring unique paths for dynamic libraries on retries.
- Enhanced tests to verify the correct behavior of hot-reload and cold start scenarios, ensuring robust preview management.

These changes significantly improve the efficiency and reliability of the preview workflow by optimizing the hot-reload process and handling failures gracefully.
@k-kohey k-kohey merged commit 450b048 into main Mar 2, 2026
2 checks passed
@k-kohey k-kohey deleted the session-hot-reload branch March 24, 2026 05:46
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