Repository navigation
Test app/daemon default registry agreement; document scratch-HOME isolation - #4317
Merged
Merged
Conversation
2 of 4 tasks
…ocument scratch-HOME isolation An integration test starts a real daemon with no socket or database override and checks that, under one home, the app's default socket is the daemon's and the default database the app lists is the registry file's; and that a daemon redirected with NODESPACE_HOME alone is not reached by an app in the account's home. The run-app skill now states what a scratch launch moves and what it still shares (webview storage, the service registration), and what a Linux systemctl --user run must check. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
issue-4244-scratch-home
branch
from
November 20, 2026 06:44
34d561a to
92939e4
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.
Part of #4244 (does not close it: the live macOS launch is still open).
What
default_registry_agreement_test(app-lib): starts a realnodespacedwith no socket/database override (FIFO model path, no model load) and checks (1) under one home the app's default socket is the daemon's socket and the default database the app lists equals the registry file's default; (2) withNODESPACE_HOMEapart fromHOME, the daemon serves under the redirect, writes nothing underHOME, and an app inHOMEdoes not reach it.default_socket_path_in(home, is_debug)made public (the existing helper now calls it); test-support gainsSpawnedDaemon::spawn_in_homes.HOMEdoes not move it, theNODESPACE_HOME=/tmp/nsh(not/tmp/nsh/.nodespace) correction, and what a Linuxsystemctl --userrun must check.Findings
NODESPACE_HOMEmoves only the daemon,HOMEmoves only the app's socket. A scratch launch must set both.~/Library/WebKit/com.nodespace.desktop/~/Library/Caches/..., keyed by origin (http://localhost:1422in dev), not moved byHOME. Smallest fix (not implemented, not testable without a device): build the main window in code with a data store identifier derived fromNODESPACE_HOMEwhen set (macOS 14+).Verified
bun run quality:fixclean;bun run test:changedpassed (rust, scripts).🤖 Generated with Claude Code