@@ -1,12 +1,10 @@
1package permission
1package permission
6 "path/filepath"
5 "path/filepath"
11 "github.com/charmbracelet/crush/internal/config"
9 "github.com/charmbracelet/crush/internal/config"
12 "github.com/charmbracelet/crush/internal/pubsub"
10 "github.com/charmbracelet/crush/internal/pubsub"
@@ -117,15 +115,10 @@ func (s *permissionService) Request(opts CreatePermissionRequest) bool {
118 s.Publish(pubsub.CreatedEvent, permission)
116 s.Publish(pubsub.CreatedEvent, permission)
120− // Wait for the response with a timeout to prevent indefinite blocking
118+ // Wait for the response indefinitely
121− ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
125 case resp := <-respCh:
120 case resp := <-respCh:
126 return resp
121 return resp
128− return false // Timeout - deny by default