@@ -5,7 +5,6 @@ import (
55 "path/filepath"
66 "slices"
77 "sync"
8− "time"
98
109 "github.com/google/uuid"
1110 "github.com/opencode-ai/opencode/internal/config"
@@ -104,12 +103,8 @@ func (s *permissionService) Request(opts CreatePermissionRequest) bool {
104103 s.Publish(pubsub.CreatedEvent, permission)
105104
106105 // Wait for the response with a timeout
107− select {
108− case resp := <-respCh:
109− return resp
110− case <-time.After(10 * time.Minute):
111− return false
112− }
106+ resp := <-respCh
107+ return resp
113108}
114109
115110func (s *permissionService) AutoApproveSession(sessionID string) {