fix: map WASI preopened dirs to clean guest paths on Windows - #78
Open
seahound wants to merge 1 commit into
Open
fix: map WASI preopened dirs to clean guest paths on Windows#78seahound wants to merge 1 commit into
seahound wants to merge 1 commit into
Conversation
Windows paths like C:\Users\... are not valid WASI guest paths. Map each preopened directory to /preopened/N and use those paths in ASTERAI_ALLOWED_DIRS and ASTERBOT_HOST_DIR so components can read and write files correctly on all platforms.
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.
Summary
C:\Users\...were being used as WASI guest paths, which are invalid — WASI expects Unix-style paths rooted at//preopened/Ninstead, and use those guest paths inASTERAI_ALLOWED_DIRSandASTERBOT_HOST_DIRconversation.jsonpersistence and all WASI filesystem access on WindowsTest plan
cargo +stable-x86_64-pc-windows-msvc build -p asteraiasterai agents, send a message, verifyconversation.jsonis written to~/.asterai/agents/<env>//preopened/Nuniformly)