fix(agent-teams): enforce T-prefixed task id validation

This commit is contained in:
Nguyen Khac Trung Kien
2026-02-08 10:15:39 +07:00
committed by YeonGyu-Kim
parent 2103061123
commit 11766b085d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
const VALID_NAME_RE = /^[A-Za-z0-9_-]+$/
const MAX_NAME_LENGTH = 64
const VALID_TASK_ID_RE = /^[A-Za-z0-9_-]+$/
const VALID_TASK_ID_RE = /^T-[A-Za-z0-9_-]+$/
const MAX_TASK_ID_LENGTH = 128
function validateName(value: string, label: "team" | "agent"): string | null {