diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-24 22:33:23 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-24 22:35:17 +0200 |
| commit | 1586d757dc64e1e8f65625c289a707a5e34a16b0 (patch) | |
| tree | 8109b8fedce91f7cbdf9f85fc5dc5956506faf71 | |
| parent | d043526200c9061fadc831e730f94629cf58e47c (diff) | |
| download | opencode-1586d757dc64e1e8f65625c289a707a5e34a16b0.tar.gz opencode-1586d757dc64e1e8f65625c289a707a5e34a16b0.zip | |
remove tool timeout
| -rw-r--r-- | internal/permission/permission.go | 9 |
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) { |
