We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d043526 commit 1586d75Copy full SHA for 1586d75
internal/permission/permission.go
@@ -5,7 +5,6 @@ import (
5
"path/filepath"
6
"slices"
7
"sync"
8
- "time"
9
10
"github.com/google/uuid"
11
"github.com/opencode-ai/opencode/internal/config"
@@ -104,12 +103,8 @@ func (s *permissionService) Request(opts CreatePermissionRequest) bool {
104
103
s.Publish(pubsub.CreatedEvent, permission)
105
106
// 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
- }
+ resp := <-respCh
+ return resp
113
}
114
115
func (s *permissionService) AutoApproveSession(sessionID string) {
0 commit comments