Changed paths:
M dashboard/app/ai.go
M dashboard/app/ai_test.go
Log Message:
-----------
dashboard/app: prioritize aborted AI jobs during polling
Swap the order of `aidb.NextStaleJob` and `aidb.StartJob` in `pollAIJob`. This
ensures that aborted (e.g., from agent restarts) and stale jobs are prioritized
and retried before agents pick up completely new jobs.
Also updates `TestAIJobNamespaces` to use a unique agent name to avoid
accidentally triggering the restart logic mid-test.