Let assignments notify people with --notify
Basecamp tells a newly assigned person about the work only when the request sends notify: true. It defaults to false, and bc3 deliberately makes API callers opt in. The CLI sent it only from todos update --notify, so a customer whose agents assign cards through the CLI found that nobody heard about the work (tracking card).
This adds the same opt-in --notify flag to todos create, cards create, cards update and assign (to-dos and cards). It means what it means on todos update: notify the people this command newly assigns. It stays off by default. There is no config setting and no --no-notify, because the decision was opt-in.
It bumps basecamp-sdk to v0.36.0 (basecamp/basecamp-sdk#1091), which adds UpdateCardRequest.Notify and CreateCardRequest.AssigneeIDs. The vendored MCP model is synced to the same tag. The release's other change, empty lists staying empty and omitzero tags, needed no code change here, because no CLI code tests an SDK list against nil. It does show in JSON output, though: an empty list the server sends, such as a card's "assignees": [], now prints as [] where it was left out before.
cards create --assignee now assigns in the create request itself (assignee_ids, plus notify when asked) rather than creating the card and then assigning it with a second Cards().Update. That removes the "card created but assignment failed" path. The create response is still checked with checkAssigneesSaved, since BC3 silently drops an ID it cannot assign. The TUI's card create sends only a title, so it is unchanged.
There are two edge cases:
- Card steps. bc3 always notifies a person assigned to a card step.
assign --step --notifyis accepted and changes nothing. The help says so, which keeps "always pass--notifywhen you assign" safe for agents rather than making it fail on steps. --notifywith no assignee change.todos update --notifyalone succeeds and notifies nobody, because only people a request newly assigns are told. The new flags match that: they are accepted silently, and so isassign --notifyfor someone who is already assigned.cards update <id> --notifywith nothing else would otherwise send a body with no card field, which bc3'sparams.require(:kanban_card)refuses. In that case the command reads the card and returns it instead of writing.
The basecamp skill now tells agents to pass --notify whenever they assign work to a person. The skill had 5 bytes left under its 16 KiB cap (TestBasecampSkillStaysDiscoveryFirstAndFocused), so to make room the logo section points to the wallpaper's upload checks instead of repeating them, and one example caption is shorter.
Testing. New unit tests record each request body. Every assigning command sends notify: true with --notify and never without it. cards create --assignee X --notify is a single POST carrying assignee_ids and notify. notify reaches card update and assign for to-dos and cards. The no-assignee and step cases behave as described above. Breaking the wiring makes those tests fail. bin/ci is green locally. I could not verify against a local bc3: the verify harness refused to boot because bc3's gems are out of date. Notifications also need job workers that the harness doesn't run.
Summary by cubic
Adds an opt-in --notify flag to todos create, cards create, cards update, and assign, so agents can make Basecamp tell people when they're newly assigned work. Previously only todos update --notify sent notifications, and Basecamp stays silent by default, so assigning to-dos or cards through the CLI never told anyone.
Behavior
cards create --assigneenow sendsassignee_ids(andnotifywhen asked) on the create request itself, removing the "card created but assignment failed" path; the response is still checked because bc3 silently drops IDs it cannot assign.--notifywith no newly assigned person is accepted and notifies nobody, matchingtodos update;cards update --notifyalone reads the card back instead of writing since bc3 rejects an update with no card field.- Card steps always notify in Basecamp, so
assign --step --notifyis accepted and changes nothing.
Dependencies
- Bumps
basecamp-sdkto v0.36.0 and syncs the vendored MCP model; empty lists the server sends (for example"assignees": []) now print as[]in JSON output. - Updates the Nix
vendorHashfor the new SDK version. - The basecamp skill now tells agents to pass
--notifywhen they assign a to-do or card to a person.