feat(shared): add ToolCallState enum and populate state on SSE tool events #990
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!990
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/959"
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?
Adds
ToolCallStateto@claude-hooks/sharedand sets it on every tool-related SSE event in both adapters, giving the dashboard a canonical state machine field without provider conditioning.Test plan
just qaclean (typecheck + biome + tests all pass)tool_call_started→state: "input-available"tool_call_progress→state: "input-streaming"tool_call_completedok=true →"output-available", error →"output-error", cursorresult.case === "rejected"→"output-denied"tool_progress/tool_summary(anthropic + cursor whole-message path) carry matching statesoutput-deniedtest case in cursor-sdk-delta.test.ts passesCloses #959