summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-24 22:33:23 +0200
committerKujtim Hoxha <[email protected]>2025-04-24 22:35:17 +0200
commit1586d757dc64e1e8f65625c289a707a5e34a16b0 (patch)
tree8109b8fedce91f7cbdf9f85fc5dc5956506faf71
parentd043526200c9061fadc831e730f94629cf58e47c (diff)
downloadopencode-1586d757dc64e1e8f65625c289a707a5e34a16b0.tar.gz
opencode-1586d757dc64e1e8f65625c289a707a5e34a16b0.zip
remove tool timeout
-rw-r--r--internal/permission/permission.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/internal/permission/permission.go b/internal/permission/permission.go
index 95412a509..d6fdea664 100644
--- a/internal/permission/permission.go
+++ b/internal/permission/permission.go
@@ -5,7 +5,6 @@ import (
"path/filepath"
"slices"
"sync"
- "time"
"github.com/google/uuid"
"github.com/opencode-ai/opencode/internal/config"
@@ -104,12 +103,8 @@ func (s *permissionService) Request(opts CreatePermissionRequest) bool {
s.Publish(pubsub.CreatedEvent, permission)
// Wait for the response with a timeout
- select {
- case resp := <-respCh:
- return resp
- case <-time.After(10 * time.Minute):
- return false
- }
+ resp := <-respCh
+ return resp
}
func (s *permissionService) AutoApproveSession(sessionID string) {