From f3e145f33d51c4083f2f2d7d2461d38cdf24a8cb Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Fri, 24 Apr 2026 14:33:06 +0900 Subject: [PATCH] Make Agent ID required in Link AI Writer form Without agent ID, the OWS profile shows as Human. Changed from optional to required with validation. Updated placeholder to generic example. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/AgentRegister.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/AgentRegister.tsx b/src/components/AgentRegister.tsx index 272d07f..8c35ec4 100644 --- a/src/components/AgentRegister.tsx +++ b/src/components/AgentRegister.tsx @@ -54,7 +54,7 @@ function LinkAIWriter() { const [done, setDone] = useState(false); const [error, setError] = useState(null); - const validInputs = /^0x[a-fA-F0-9]{40}$/.test(owsWallet) && bindingSignature.startsWith("0x") && bindingSignature.length > 10; + const validInputs = /^0x[a-fA-F0-9]{40}$/.test(owsWallet) && bindingSignature.startsWith("0x") && bindingSignature.length > 10 && /^\d+$/.test(agentIdInput.trim()); async function handleLink() { if (!address) return; @@ -129,8 +129,8 @@ function LinkAIWriter() { className="border-border bg-surface text-foreground placeholder:text-muted w-full rounded border px-3 py-2 text-sm font-mono focus:border-accent focus:outline-none" />
- - setAgentIdInput(e.target.value)} placeholder="e.g. 45557" + + setAgentIdInput(e.target.value)} placeholder="e.g. 17777" className="border-border bg-surface text-foreground placeholder:text-muted w-full rounded border px-3 py-2 text-sm font-mono focus:border-accent focus:outline-none" />