[Security] Isolate browser pages, storage, fallback, and input by agent session#255
Open
fettpl wants to merge 5 commits into
Open
[Security] Isolate browser pages, storage, fallback, and input by agent session#255fettpl wants to merge 5 commits into
fettpl wants to merge 5 commits into
Conversation
Author
|
@0xSero CI and Security for the independently approved exact head |
fettpl
force-pushed
the
p1/issue-237-browser-session-isolation
branch
from
July 20, 2026 09:29
b5ac8d6 to
0937de1
Compare
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
x-local-studio-browser-sessionkey on every stateful browser verb, frame, state, input, and viewport request, while keeping/fetchand/localhostsstateless.instanceof Response, ensuring the compiled standalone and packaged app return 400 for missing, empty, or malformed keys before body parsing or host side effects.Closes #237
Depends on #254, which supplies the single protected browser surface this branch isolates.
Validation
0937de14dfd0ae7bdd61ddde42fc0d1ce60229c3.npm run test:integration: 53/53 passed.npm run check: passed across contracts, structure, frontend quality/tests/build, controller gates, and the new standalone regression.npm --prefix frontend run desktop:dist: passed using the existing integrity-verified Electron 43.1.1 cache archive after the upstream CDN returned HTTP 503 twice. Local signing was skipped because no trusted matching signing identity is installed; ZIP and DMG artifacts were otherwise built successfully./Applications/Local Studio.appwas cleanly replaced and relaunched;/api/desktop-healthreturned HTTP 200 with{"ok":true}.owner=Astorage/cookie plusinput=alpha; session B retainedowner=Bplus empty input. Neither observed the other's state.Configuration and lifecycle
LOCAL_STUDIO_BROWSER_MAX_SESSIONS: default8, accepted integer range1..32.LOCAL_STUDIO_BROWSER_SESSION_IDLE_MS: default900000, accepted integer range60000..86400000.Risks / rollout notes