Enable daemon RPC support for delete operations to trigger auto-sync, Fix for issue #527 (#528)

Enable daemon RPC support for delete operations to trigger auto-sync.

This PR adds delete operation support to the RPC daemon, ensuring that delete operations emit mutation events and trigger auto-sync like other mutating operations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
Charles P. Cross
2025-12-12 16:19:31 -05:00
committed by GitHub
parent 454e8f5f9a
commit 8af08460a7
6 changed files with 346 additions and 19 deletions

View File

@@ -36,6 +36,7 @@ const (
OpEpicStatus = "epic_status"
OpGetMutations = "get_mutations"
OpShutdown = "shutdown"
OpDelete = "delete"
)
// Request represents an RPC request from client to daemon
@@ -97,6 +98,15 @@ type CloseArgs struct {
Reason string `json:"reason,omitempty"`
}
// DeleteArgs represents arguments for the delete operation
type DeleteArgs struct {
IDs []string `json:"ids"` // Issue IDs to delete
Force bool `json:"force,omitempty"` // Force deletion without confirmation
DryRun bool `json:"dry_run,omitempty"` // Preview mode
Cascade bool `json:"cascade,omitempty"` // Recursively delete dependents
Reason string `json:"reason,omitempty"` // Reason for deletion
}
// ListArgs represents arguments for the list operation
type ListArgs struct {
Query string `json:"query,omitempty"`