Plugin: Backend automatisch starten wenn nicht verfügbar (daemon spawning) #142
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In
packages/hooks/src/plugin-entry.tsgibt es ein offenes TODO (Zeile 53):Aktuell wird nur eine Fehlermeldung ausgegeben wenn das Backend nicht erreichbar ist. Der Benutzer muss das Backend manuell starten.
Gewünschtes Verhalten
Wenn das Backend nicht verfügbar ist, sollte das Plugin es automatisch als Daemon starten:
Implementierungsvorschlag
Überlegungen
Betroffene Datei
packages/hooks/src/plugin-entry.ts- Zeile 50-55Implementiert in Branch
feat/142-daemon-spawning.Änderungen in
packages/hooks/src/plugin-entry.ts:detectBackendPath()- Sucht nach dem Backend-Binary in verschiedenen möglichen Pfaden (Development, Plugin-Bundle)waitForBackendReady(timeoutMs)- Pollt den Health-Endpoint alle 200ms bis das Backend ready ist oder der Timeout erreicht wirdspawnBackendDaemon(backendPath)- Spawnt das Backend als detached Daemon-Prozess mit:detached: true- Prozess läuft unabhängig vom Parentstdio: 'ignore'- Keine Pipe zum ParentwindowsHide: true- Kein Terminal-Fenster auf Windowsunref()- Parent kann beendet werden ohne auf das Kind zu wartenensureBackend()erweitert:Verhalten:
startCommand wird automatisch versucht, das Backend zu starten