Skip to content

fix(status): show a status that has only an emoji - #122

Merged
scottlovegrove merged 1 commit into
mainfrom
scottl/comms-sdk-5-2-2
Nov 17, 2026
Merged

scottlovegrove merged 1 commit into
mainfrom
scottl/comms-sdk-5-2-2

Conversation

@scottlovegrove

Copy link
Copy Markdown
Collaborator

Short description

A Comms status can now be just an emoji, and the API returns it with message: null. @todoist/comms-sdk 5.0.1 rejected that response with a ZodError, so a single user with an emoji-only status broke every command that loads workspace users. tdc thread view fails on any thread in that workspace, for example.

  • Bumps @todoist/comms-sdk from 5.0.1 to 5.2.2, which accepts a status without a message (fix(users): accept a user status without a message comms-sdk-typescript#153, #154). The versions in between are additive or unrelated fixes; the OAuth changes (#151, #152) touch getAuthorizationUrl, which the CLI does not use.
  • formatStatus joins whichever of the emoji and message the status has, so tdc status and tdc user print 🎯 instead of 🎯 null.

Setting an emoji-only status (tdc status set still requires a message) is left for a separate change.

Evidence

  • New tdc status show cases for an emoji-only status (message null, absent, and null with a pause) failed before the fix with 🎯 null / 🎯 undefined and pass after it.
  • npm run verify passes.
  • Against the real API, read-only: the built CLI renders the thread that crashed with the released version.

A status can now be just an emoji, and the API returns it with a null
message. @todoist/comms-sdk 5.0.1 rejected that response outright, so
one user with an emoji-only status broke every command that loads
workspace users, including `tdc thread view`.

@todoist/comms-sdk 5.2.2 accepts it, and formatStatus now joins the
emoji and message it has, instead of printing "🎯 null".
@scottlovegrove scottlovegrove self-assigned this Nov 17, 2026
@scottlovegrove scottlovegrove added the 🚢 Ship PR requires passing checks before merge, but no independent human review. label Nov 17, 2026

@doistbot doistbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR updates fix(status): show a status that has only an emoji. No issues were flagged in the reviewed diff.

Share Feedback • Review Logs • Trace

@scottlovegrove
scottlovegrove merged commit 51d09f6 into main Nov 17, 2026
6 checks passed
@scottlovegrove
scottlovegrove deleted the scottl/comms-sdk-5-2-2 branch November 17, 2026 11:09
doist-release-bot Bot added a commit that referenced this pull request Nov 17, 2026
## [5.0.3](v5.0.2...v5.0.3) (2026-11-17)

### Bug Fixes

* **status:** show a status that has only an emoji ([#122](#122)) ([51d09f6](51d09f6))
@doist-release-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released 🚢 Ship PR requires passing checks before merge, but no independent human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants