docs: Add plugin-side daemon spawn pattern documentation (#1056)#1193
Open
unn-Known1 wants to merge 1 commit intojackwener:mainfrom
Open
docs: Add plugin-side daemon spawn pattern documentation (#1056)#1193unn-Known1 wants to merge 1 commit intojackwener:mainfrom
unn-Known1 wants to merge 1 commit intojackwener:mainfrom
Conversation
This PR addresses issue jackwener#1056 by: 1. Added docs/developer/plugin-daemons.md with: - Verified spawn pattern from src/browser/bridge.ts:132-137 - Explanation of detached: true + stdio: 'ignore' + unref() - Environment inheritance guidance - Lazy spawning recommendations - Daemon communication patterns - Multi-daemon considerations - Testing guidelines 2. Updated docs/superpowers/specs/2026-03-31-daemon-lifecycle-redesign.md: - Added Multi-Daemon Namespace Reservation section - Defined daemon naming convention - Reserved CLI surface for status/stop/restart [name] argument - Specified discovery mechanism via ~/.opencli/daemons/<name>.json - Added backward compatibility notes Signed-off-by: MiniMax Agent <agent@minimax.io>
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
This PR addresses issue #1056 by adding comprehensive documentation for plugin-side daemon spawning.
Changes
1. New Documentation:
docs/developer/plugin-daemons.mdAdded a complete guide for plugin authors on how to spawn background daemons, including:
src/browser/bridge.ts:132-137with detailed explanationdetached: true,stdio: "ignore",.unref(), and environment inheritancesetsidor explicit process group management needed on macOS/Linux2. Updated:
docs/superpowers/specs/2026-03-31-daemon-lifecycle-redesign.mdAdded Multi-Daemon Namespace Reservation section that:
browser-bridgefor built-in)opencli daemon status/stop/restart [name]~/.opencli/daemons/<name>.jsonIssue Resolution
Testing
Documentation changes only. Verified:
src/browser/bridge.tsScreenshots
N/A - Documentation changes only