aa8cc6aff4
Now that desktop clients can be re-registered with a new id under the same user, listing/searching publish tasks by client.id missed the user's older history and the retry path forbade jobs created from a previous client. Switch the list/count queries to join desktop_publish_jobs and filter by created_by_user_id, and enforce the same ownership when retrying via desktop task. Qualify column names with the t. alias so the join doesn't break the existing ORDER BY clauses. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>