fix(channel): support channel names that include numbers; legacy test names containing numbers may still appear (#796)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
@@ -139,7 +139,7 @@ function slugifyAgentId(name: string): string {
|
||||
.replace(/-+/g, '-')
|
||||
.replace(/^-|-$/g, '');
|
||||
|
||||
if (!normalized) return 'agent';
|
||||
if (!normalized || /^\d+$/.test(normalized)) return 'agent';
|
||||
if (normalized === MAIN_AGENT_ID) return 'agent';
|
||||
return normalized;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user