File tree Expand file tree Collapse file tree
apps/studio/src/components/studio-code-session Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -350,9 +350,7 @@ export function AgentRunProvider( { children }: PropsWithChildren ) {
350350 case 'error' : {
351351 const isUsageCap = isUsageCapError ( event . message ) ;
352352 const message = isUsageCap
353- ? __ (
354- 'You\u2019ve reached your AI usage limit. Try again later.'
355- )
353+ ? __ ( 'You\u2019ve reached your AI usage limit. Try again later.' )
356354 : event . message ;
357355 dispatchSession ( payload . sessionId , {
358356 type : 'error_set' ,
Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ export type JsonEvent =
4646 }
4747 | MediaShareEvent ;
4848
49- const USAGE_CAP_PATTERN =
50- / (?: A P I E r r o r : \s * 4 2 9 \b | s t a t u s c o d e \s + 4 2 9 \b | " s t a t u s " \s * : \s * 4 2 9 \b ) / i;
49+ const USAGE_CAP_PATTERN = / (?: A P I E r r o r : \s * 4 2 9 \b | s t a t u s c o d e \s + 4 2 9 \b | " s t a t u s " \s * : \s * 4 2 9 \b ) / i;
5150
5251/**
5352 * Returns true when an error message indicates the user hit the AI usage cap
You can’t perform that action at this time.
0 commit comments