Browse Source

remove tool timeout

Kujtim Hoxha 10 months ago
parent
commit
1586d757dc
1 changed files with 2 additions and 7 deletions
  1. 2 7
      internal/permission/permission.go

+ 2 - 7
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) {