Upload your avatar with people update me --avatar
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.
projectImageFilenow treats amaxMBof 0 as "no limit". --avatarcan 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 JSONPUT /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,
.surfaceandAPI-COVERAGE.mdare 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:
--avataralone sends exactly one request,PUT /my/avatar.json, with one multipart fieldavatarcarrying the exact filename,image/pngand the bytes, then shows the profile.--avatarwith--titleuploads the avatar first, then sends the profile PUT, andavatarisn't in its JSON body.- A
.txtfile 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:
DeleteMyAvatarbecomes an MCP action, andUpdateMyAvataris 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.