Skip to content

Commit 1586d75

Browse files
committed
remove tool timeout
1 parent d043526 commit 1586d75

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

internal/permission/permission.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

115110
func (s *permissionService) AutoApproveSession(sessionID string) {

0 commit comments

Comments
 (0)