Upload your avatar with people update me --avatar

Draft
JE
5d ago
+294-19

outside-text: this change stems from external feedback, which an outside agent wrote on the Agent Feedback card. Jeremy chose its shape on 2026-11-27. A person must read this diff before it lands.

Depends on basecamp/basecamp-sdk#1125 (UpdateMyAvatar), which depends on basecamp/bc3#14716 (PUT /my/avatar.json). Draft until both land. go.mod points at the SDK branch head (make bump-sdk REF=1b2e81a1) and moves to the released SDK before this merges.

What

basecamp people update me --avatar <path> uploads an image as your profile photo.

  • The file is checked first with the same helper the project logo and wallpaper commands use: it must exist and be PNG, JPEG, GIF, WebP, AVIF, HEIF or HEIC. If the check fails, nothing is sent.
  • bc3 sets no size limit on avatars, so the CLI doesn't either. projectImageFile now treats a maxMB of 0 as "no limit".
  • --avatar can be the only flag, or it can be combined with the profile flags. The avatar is uploaded first, as its own multipart request (UpdateMyAvatar). The profile fields follow, as the usual JSON PUT /my/profile.json.
    • If the server refuses the image, the profile fields aren't sent.
    • If the avatar lands but the profile update then fails, the error says so.
  • The profile is read back afterwards, as before.
  • Help text, .surface and API-COVERAGE.md are updated.

--bio

--bio sends bio, which bc3's PUT /my/profile.json documents. But bc3 permitted only tagline, so bio was dropped and the request answered 204: the command reported success and nothing changed. The CLI is sending the right thing, so the fix is on the server: basecamp/bc3#14716 takes bio as the tagline. Nothing changes here.

Tests

New tests in internal/commands/people_test.go:

  • --avatar alone sends exactly one request, PUT /my/avatar.json, with one multipart field avatar carrying the exact filename, image/png and the bytes, then shows the profile.
  • --avatar with --title uploads the avatar first, then sends the profile PUT, and avatar isn't in its JSON body.
  • A .txt file and a missing path are both refused before any request.
  • A 422 on the avatar surfaces as an error, and the profile PUT isn't sent.

Summary by cubic

Adds --avatar <path> to basecamp people update me, so you can upload an image as your profile photo through the new PUT /my/avatar.json endpoint.

The file is checked before anything is sent: it must exist and be a PNG, JPEG, GIF, WebP, AVIF, HEIF, or HEIC image. The avatar is uploaded first as its own multipart request; the profile fields follow only if it lands, so a refused image leaves your profile untouched. --avatar works alone or combined with the profile flags, and the profile is read back afterwards as before. projectImageFile now treats a maxMB of 0 as "no size limit", since bc3 sets none for avatars.

--bio already sends bio, which bc3's profile endpoint documents, but the server only accepted tagline and silently dropped it. That fix is server-side (bc3#14716); nothing changes in the CLI.

MCP model

  • Synced to the avatar SDK branch: DeleteMyAvatar becomes an MCP action, and UpdateMyAvatar is excluded with the other binary uploads (logo, wallpaper) since the toolkit refuses their non-JSON bodies.

This depends on basecamp/basecamp-sdk#1125 and basecamp/bc3#14716, and stays a draft until both land. go.mod points at the SDK branch head and moves to the released SDK before merging. The Nix vendor hash has been updated for the SDK bump.