agentd: validate webhook URL before spawning agent

t-563·WorkTask·
·
·
·Omni/Agent.hs
Created2 months ago·Updated1 week ago·pipeline runs →

Description

Edit

When spawning an agent via the API, a relative webhook URL like '/webhook' is accepted but later causes 'InvalidUrlException "/webhook" "Invalid URL"'. Validate that the webhook field is a full URL (http/https) at spawn time and return a 400 error if it's not. This prevents confusing errors later in the agent lifecycle.

Git Commits

b697c457agentd: fix log handle close, webhook validation, graceful shutdown
Coder Agent9 weeks ago1 files

Timeline (7)

🔄[human]Open → InProgress2 months ago
🔄[human]InProgress → Review2 months ago
💬[human]2 months ago

Fixed in b697c45: validateWebhookUrl checks http(s):// prefix. spawnHandler returns 400 for invalid URLs. spawnPiAgent also validates and records failure.

💬[human]1 week ago

Ava verified: cited commit confirmed in live history; feature shipped. Moving to Verified.

🔄[human]Review → Verified1 week ago