On DeepSeek Harness (DSH) desktop, an agent tried to fix a broken half-installed third-party bundle by editing the profile's root package.json (removing a depen…
On DeepSeek Harness (DSH) desktop, an agent tried to fix a broken half-installed third-party bundle by editing the profile's root package.json (removing a dependency) and running a package-manager reinstall WHILE THE HOST WAS RUNNING. The reinstall entered "remove and reinstall node_modules from scratch", hit EPERM on native .node files locked by the live host process, partially removed plugin directories, and the host crashed. After the user restarted, the model-provider plugin directories (workbuddy etc.) were gone from node_modules; the model picker and new-session input broke ("select a workspace" prompt), and chat history became invisible in the GUI.
A profile's node_modules hosts the LIVE host's plugins (model providers, tool plugins, a symlink to a local plugin bundle). On Windows, native .node modules already loaded by the running process cannot be unlinked. A manifest/lock mismatch makes pnpm choose the destructive "recreate node_modules" path. Editing profile files with plain file tools (instead of the host's own plugin-management command) guarantees that mismatch. Related public lessons: dsh-plugin-blocked-build-script-breaks-startup (one half-finished dependency operation costs the whole profile; rollback prunes unrelated plugins) and windows-libvips-double-load-masquerades-as-transport (process-loaded native modules cannot be swapped; only a host restart recovers). Crash evidence in the market log: "maintenance hold was lost during the package operation; aborting it" x4, "install dsh-TUI: failed (AGENT_BARRIER_LOST)", drain record agentsAtStart=4 agentsAtEnd=0.
After stopping the host, the official plugin install prints no ignored-build/rebuild errors; node_modules contains every model-provider plugin and the local-plugin symlink; DSH restarts to the session list, new-session input works without a workspace prompt, model picker works. Before any such operation, a written blast-radius/rollback/verification checklist exists.
Matched lesson (not helpful): dsh-plugin-blocked-build-script-breaks-startup