Skip to content

Needs a device: scratch-HOME isolation of the desktop app, localStorage carry-over, macOS and Linux systemd checks #4244

Not planned

Description

@mstomar125

Overview

Split from #4202. The part of that issue that could be fixed without a device is merged: the Linux systemd unit forwards HOME and NODESPACE_HOME like the launchd plist does, with tests for the unit lines and for a plist whose paths contain spaces and XML metacharacters. What is left needs a real desktop app on macOS, and a Linux host with a systemd user session.

What remains

  • (from source, not observed live; PR Test app/daemon default registry agreement; document scratch-HOME isolation #4317) Find out why the webview's localStorage (the previous install's tab state and active database id) survives a launch with a scratch HOME: where WebKit storage is located and whether HOME moves it. If it cannot be moved, state exactly what a scratch launch still shares.
  • (PR Test app/daemon default registry agreement; document scratch-HOME isolation #4317) A test that the app and the daemon resolve the same default registry and database for a given environment (the failure was two different default ids, so every call answered no database registered with id). This part needs no device.
  • A live scratch-HOME launch of the desktop app on macOS: nothing is created in the real ~/.nodespace (no databases.toml, no database file, no .model-verify-key).
  • A Linux run under systemctl --user: a scratch HOME alone does not isolate it, so check what does and write it into the run-app skill.

Done when

A scratch launch writes nothing to the real home, or the skill states exactly what it still shares and how to avoid it.

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Nov 5, 2026
  2. mstomar125 commented on Nov 17, 2026

    @mstomar125
    ContributorAuthor

    Linux checkbox deferred and split to #4283 (label defer, unassigned) by decision of mstomar125, 2026-11-17. This issue now covers the macOS scratch-HOME launch (run by mstomar125) and the app/daemon default-registry test (agent work).

  3. mstomar125 commented on Nov 20, 2026

    @mstomar125
    ContributorAuthor

    PR #4317 covers the no-device parts: a real-daemon test that the app and daemon agree on socket and default registry (one home), and that NODESPACE_HOME alone moves only the daemon; and the run-app skill now says what a scratch launch isolates and shares.

    Remaining, needs the user at the Mac: the live scratch launch. I did not run it: dev:tauri re-registers the per-user launchd label app.nodespace.daemon.dev and kills the daemon on the default socket, which the skill says needs the user's go-ahead, and it needs a full app build. Steps: record ls -lR and shasum of the real ~/.nodespace plus ~/Library/WebKit/com.nodespace.desktop, ~/Library/Application Support/com.nodespace.desktop, ~/Library/Caches/com.nodespace.desktop; follow the skill's launch steps with HOME and NODESPACE_HOME both /tmp/nsh; afterwards diff the listings (expect only WebKit/Caches storage changes, since the webview store is shared) and restore the launchd job. Also check whether the shared webview store really changed (it is read from wry/tauri source only).

    Linux systemctl --user checks are written into the skill (tracked in #4283).

  4. mstomar125 commented on Nov 20, 2026

    @mstomar125
    ContributorAuthor

    Merged the no-device part (the app/daemon agreement test, the corrected scratch-HOME step and the isolates-versus-shares table in the run-app skill). Still open on this issue: the live macOS scratch-HOME launch (steps are in the earlier comment; it re-registers the per-user launch agent and stops the daemon on the default socket, so it needs the owner's go-ahead) and the fix for the webview storage that a scratch HOME does not move (build the main window with a data store identifier derived from NODESPACE_HOME; needs a device to verify). The Linux run is tracked in #4283.

  5. mstomar125 commented on Nov 27, 2026

    @mstomar125
    ContributorAuthor

    Status 2026-11-27: the Linux half is covered by #4283 and the run-app skill (merged in #4403). Left: the live scratch-HOME launch of the desktop app on macOS (needs the user's device); the Linux app launch needs a Linux desktop build, which does not exist yet.

  6. malibio commented on Nov 28, 2026

    @malibio
    Collaborator

    Moved to NodeSpace: the task "For the user: when can you run the live scratch-home launch on macOS on a device?" (6855553f-385b-493e-ad36-b535866b9471) in the NodeSpace workspace. The team's work is tracked there, so this GitHub copy is closed to keep its status in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions