@@ -31,7 +31,7 @@ const retryQueue = {
3131 /** @param {{config: import('axios').InternalAxiosRequestConfig, resolve: (value: any) => void, reject: (reason?: any) => void} } item */
3232 enqueue ( item ) {
3333 this . queue . push ( item ) ;
34-
34+ console . log ( 'queue' , this . queue . length ) ;
3535 if ( ! this . isRefreshingToken ) {
3636 const user = getUserStore ( ) ;
3737 if ( ! isTokenExired ( user . expires ) ) {
@@ -130,7 +130,7 @@ axios.interceptors.response.use(
130130 loaderStore . set ( false ) ;
131131 const originalRequest = error ?. config || { } ;
132132 const user = getUserStore ( ) ;
133- console . log ( "renew token count." , user . renew_token_count ) ;
133+
134134 if ( ! user ?. token || user . renew_token_count >= retryQueue . maxRenewTokenCount ) {
135135 retryQueue . queue = [ ] ;
136136 redirectToLogin ( ) ;
@@ -185,7 +185,7 @@ function skipLoader(config) {
185185 new RegExp ( 'http(s*)://(.*?)/knowledge/vector/(.*?)/create' , 'g' ) ,
186186 new RegExp ( 'http(s*)://(.*?)/knowledge/document/(.*?)/page' , 'g' ) ,
187187 new RegExp ( 'http(s*)://(.*?)/users' , 'g' ) ,
188- new RegExp ( 'http(s*)://(.*?)/instruct/chat-completion ' , 'g' ) ,
188+ new RegExp ( 'http(s*)://(.*?)/instruct/(.*?) ' , 'g' ) ,
189189 new RegExp ( 'http(s*)://(.*?)/agent/(.*?)/code-scripts' , 'g' ) ,
190190 new RegExp ( 'http(s*)://(.*?)/agent/(.*?)/code-script/generate' , 'g' ) ,
191191 new RegExp ( 'http(s*)://(.*?)/renew-token' , 'g' )
@@ -208,24 +208,30 @@ function skipLoader(config) {
208208
209209 /** @type {RegExp[] } */
210210 const getRegexes = [
211+ new RegExp ( 'http(s*)://(.*?)/plugin/menu' , 'g' ) ,
211212 new RegExp ( 'http(s*)://(.*?)/setting/(.*?)' , 'g' ) ,
213+ new RegExp ( 'http(s*)://(.*?)/roles' , 'g' ) ,
214+ new RegExp ( 'http(s*)://(.*?)/role/options' , 'g' ) ,
215+ new RegExp ( 'http(s*)://(.*?)/role/(.*?)/details' , 'g' ) ,
216+ new RegExp ( 'http(s*)://(.*?)/user/(.*?)/details' , 'g' ) ,
212217 new RegExp ( 'http(s*)://(.*?)/user/me' , 'g' ) ,
213- new RegExp ( 'http(s*)://(.*?)/plugin/menu' , 'g' ) ,
214218 new RegExp ( 'http(s*)://(.*?)/address/options(.*?)' , 'g' ) ,
219+ new RegExp ( 'http(s*)://(.*?)/agents' , 'g' ) ,
220+ new RegExp ( 'http(s*)://(.*?)/agent/options' , 'g' ) ,
221+ new RegExp ( 'http(s*)://(.*?)/agent/labels' , 'g' ) ,
222+ new RegExp ( 'http(s*)://(.*?)/agent/tasks' , 'g' ) ,
223+ new RegExp ( 'http(s*)://(.*?)/agent/(.*?)/code-scripts' , 'g' ) ,
224+ new RegExp ( 'http(s*)://(.*?)/conversation/state/keys' , 'g' ) ,
215225 new RegExp ( 'http(s*)://(.*?)/conversation/(.*?)/files/(.*?)' , 'g' ) ,
226+ new RegExp ( 'http(s*)://(.*?)/llm-configs' , 'g' ) ,
216227 new RegExp ( 'http(s*)://(.*?)/llm-provider/(.*?)/models' , 'g' ) ,
217228 new RegExp ( 'http(s*)://(.*?)/knowledge/vector/collections' , 'g' ) ,
218229 new RegExp ( 'http(s*)://(.*?)/knowledge/vector/(.*?)/exist' , 'g' ) ,
219- new RegExp ( 'http(s*)://(.*?)/role/options' , 'g' ) ,
220- new RegExp ( 'http(s*)://(.*?)/role/(.*?)/details' , 'g' ) ,
221- new RegExp ( 'http(s*)://(.*?)/user/(.*?)/details' , 'g' ) ,
222- new RegExp ( 'http(s*)://(.*?)/agent/labels' , 'g' ) ,
223- new RegExp ( 'http(s*)://(.*?)/conversation/state/keys' , 'g' ) ,
230+ new RegExp ( 'http(s*)://(.*?)/logger/instruction/log' , 'g' ) ,
224231 new RegExp ( 'http(s*)://(.*?)/logger/instruction/log/keys' , 'g' ) ,
225232 new RegExp ( 'http(s*)://(.*?)/logger/conversation/(.*?)/content-log' , 'g' ) ,
226233 new RegExp ( 'http(s*)://(.*?)/logger/conversation/(.*?)/state-log' , 'g' ) ,
227- new RegExp ( 'http(s*)://(.*?)/mcp/server-configs' , 'g' ) ,
228- new RegExp ( 'http(s*)://(.*?)/agent/(.*?)/code-scripts' , 'g' )
234+ new RegExp ( 'http(s*)://(.*?)/mcp/server-configs' , 'g' )
229235 ] ;
230236
231237 if ( config . method === 'post' && postRegexes . some ( regex => regex . test ( config . url || '' ) ) ) {
@@ -276,7 +282,9 @@ function skipGlobalError(config) {
276282 ] ;
277283
278284 /** @type {RegExp[] } */
279- const getRegexes = [ ] ;
285+ const getRegexes = [
286+ new RegExp ( 'http(s*)://(.*?)/agents' , 'g' )
287+ ] ;
280288
281289 if ( config . method === 'post' && postRegexes . some ( regex => regex . test ( config . url || '' ) ) ) {
282290 return true ;
0 commit comments