bug: UserTask nicht gespeichert - TaskCreate Hook erfasst taskId nicht aus toolOutput #316
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.
Blocks
#317 feat: PlanMode-Status auf Session tracken (EnterPlanMode/ExitPlanMode)
customable/claude-mem
Reference
customable/claude-mem#316
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
Die
user_tasksTabelle bleibt leer, obwohl Claude Code'sTaskCreate/TaskUpdateTools verwendet werden.Root Cause
Der
TaskCreateHook inpackages/hooks/src/handlers/post-tool-use.ts(Zeile 241-252) parst nur dentoolInput, aber dietaskIdwird von Claude Code imtoolOutputzurückgegeben:Erwartetes Verhalten
TaskCreatewird aufgerufen mit Input:{ subject: "Fix bug", description: "..." }{ taskId: "1", ... }taskIdaus dem Output extrahierenexternalId: "1"gespeichertTaskUpdatekann später den Task viaexternalIdfinden und updatenAktuelles Verhalten
TaskCreatewird aufgerufentoolOutputkomplettexternalIderstellt (oder gar nicht, wenn Backend Fehler macht)TaskUpdatesucht nachexternal_id = "1"→ Nicht gefundenBetroffene Dateien
packages/hooks/src/handlers/post-tool-use.ts- Hook musstoolOutputparsenpackages/backend/src/routes/hooks.ts- Backend erwartet bereitsexternalIdLösungsansatz
Backend-Anpassung
Die Backend-Route muss auch
externalIdbeim Create akzeptieren:Priorität
Hoch - Feature ist komplett kaputt, keine Tasks werden gespeichert.
Bezug