Repository navigation
feat(files): add HTML previews and account-aware file access - #578
Merged
Merged
Conversation
Render HTML and HTM documents with source switching and live updates. Keep preview scripts isolated from Clay and dispose of them on close. Preserve source navigation and the existing large-file fallback. Verify browser interactions and 38 focused file and watcher tests.
Use the server process filesystem authority when OS-user isolation is disabled, regardless of Clay account login mode. Keep mapped Linux operations bound to the authenticated OS identity without fallback. Preserve project and file-browser authorization on requests and watches. Cover external paths, symlinks, revocation, and real OS read denial.
Allow the sole authenticated account to use process file permissions. Restore project boundaries for shared accounts without Linux isolation, including existing file and directory subscriptions.
Contributor
|
This issue has been resolved in version 5.1.0-beta.1 (main). To update, run: -- Clay Deploy Bot Build anything, with anyone, in one place. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add sandboxed HTML/HTM previews with a source toggle, live refresh, and source-line navigation in the file viewer.
Allow the sole authenticated Clay account to open files outside the project using the server process's OS permissions, even with account login enabled. Multiple accounts without Linux isolation retain project boundaries; mapped Linux users retain their own OS permissions. Recheck the live account roster for requests and watch updates so adding a second account restores restrictions.
Validation
HTML previews support self-contained documents and absolute external resources; relative local assets are not yet supported. Linux identity routing is tested with mocks; actual UID switching was not tested on the macOS development host.