Skip to content

Read the user's handle from the API instead of username - #3

Merged
nunomaduro merged 1 commit into
productionfrom
handle-rename
Oct 27, 2026
Merged

nunomaduro merged 1 commit into
productionfrom
handle-rename

Conversation

@mnapoli

@mnapoli mnapoli commented Oct 27, 2026

Copy link
Copy Markdown
Member

The API no longer sends username on users and mentions, only handle (dev-null-sh/dev-null.sh#1179). Without this, every User, CurrentUser and Mention fails to decode once that ships.

  • Rename the username field to handle on User, CurrentUser and Mention, and every use of it (views, thread model, preview fixtures).
  • No API request sent username: block, members and suggestions use the handle in the path or under other keys, so only decoding changes.
  • No models are persisted to disk, so there's no cache to migrate.

Validation

  • swift build: OK
  • swift test: 12/12 pass
  • Not run against the live API.

https://claude.ai/code/session_01GThEejbTsDNGLAEmY2xWeG

The API stopped sending `username` (dev-null-sh/dev-null.sh#1179): users and
mentions now only carry `handle`. Rename the field on User, CurrentUser and
Mention, and every use of it, so decoding keeps working.

Claude-Session: https://claude.ai/code/session_01GThEejbTsDNGLAEmY2xWeG
@nunomaduro
nunomaduro merged commit 824a18a into production Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants