@@ -5,7 +5,6 @@ import (
5 "path/filepath"
5 "path/filepath"
10 "github.com/google/uuid"
9 "github.com/google/uuid"
11 "github.com/opencode-ai/opencode/internal/config"
10 "github.com/opencode-ai/opencode/internal/config"
@@ -104,12 +103,8 @@ func (s *permissionService) Request(opts CreatePermissionRequest) bool {
104 s.Publish(pubsub.CreatedEvent, permission)
103 s.Publish(pubsub.CreatedEvent, permission)
106 // Wait for the response with a timeout
105 // Wait for the response with a timeout
108− case resp := <-respCh:
106+ resp := <-respCh
110− case <-time.After(10 * time.Minute):
111− return false
107+ return resp
115func (s *permissionService) AutoApproveSession(sessionID string) {
110func (s *permissionService) AutoApproveSession(sessionID string) {