Repository navigation
Add bounded native file-panel v2 transport - #291
Merged
Merged
Conversation
wieslawsoltes
force-pushed
the
feature/file-panel-v2-abi
branch
from
September 17, 2026 16:27
5c85bbb to
0f901d7
Compare
This was referenced Sep 17, 2026
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.
WebScene's existing v1 file service moves whole file bytes and cannot represent native open-directory/save-panel options or durable host-owned access grants. Code OSS needs a bounded transport between browser-facing picker APIs and AppScene native panels without exposing filesystem paths or platform bookmark objects to JavaScript.
This adds an independent v2 file-panel request/result ABI and broker for open-file, open-directory, and save-file operations. Requests carry bounded UTF-8 presentation metadata, filters, options, selection limits, and an opaque initial-location token. Results distinguish success, cancellation, denial, and error and return only bounded display metadata plus opaque grant identifiers. The broker enforces exact request IDs, exactly-once completion, reentrant callbacks, a 16-request bound, strict capability and shape validation, and retirement on navigation, startup replacement, shutdown, and terminal runtime failure. The v1 service and its bytes remain unchanged.
This is the bottom PR in the #248 stack. Dependent PR #294 adds the browser picker producers and opaque handles. Native panels, security-scoped grants/bookmarks, and filesystem authority remain in SceneTech/AppScene#123.
Validation on exact merged main
1bd8596e:nmverify all three v2 exportsCumulative validation and #292 replay evidence are recorded in dependent PR #294. Advances #248.