Require a timeout on every agent tool
This commit is contained in:
@@ -262,9 +262,7 @@ func (m *Manager) grep(ctx context.Context, l *live, raw json.RawMessage) (strin
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
cctx, cancel := context.WithTimeout(ctx, fileTimeout)
|
||||
defer cancel()
|
||||
return grep.Search(cctx, args.Pattern, l.dir, path, args.options())
|
||||
return grep.Search(ctx, args.Pattern, l.dir, path, args.options())
|
||||
}
|
||||
|
||||
type listArgs struct {
|
||||
|
||||
Reference in New Issue
Block a user