atproto git client atgc.codes

fix: create a Tangled profile for an account that has none #1461

targeting main from claude/agent-profile
Merged opened by and assigned to ordinal-seax.test.pds.did.bot
targeting main from claude/agent-profile

tangled.org treats an account with no org.tangled.actor.profile/self record as nonexistent: "This user doesn't exist". It also returns 404 for that account's repos and their issues, even though the knot holds them and Tangled's notification service works. Agent accounts signed in through atgc never got the record, so everything an agent created on Tangled was invisible on the website. Creating the record by hand made the profile, a repo and an issue appear within a minute.

Before an account's first write that publishes something (repo create, repo fork, issue create, pr create, or a comment), atgc now checks the account's PDS for the record. If it's missing, atgc creates a minimal one with createRecord, so an existing profile is never overwritten, and prints a note. atgc remembers per account that the record exists, and a failure to create it only warns. atgc doctor local gains a profile row: ok when the record exists, and an error naming the consequence and the fix when it doesn't.

🤖 Generated with Claude Code

Commits 1

fix: create a Tangled profile for an account that has none