Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
🤖 Pull request artifacts
|
capcom6
force-pushed
the
push/fid-target
branch
from
November 25, 2026 03:38
6ce548b to
240c21b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Routes FCM pushes by the device's stored push-token type: Firebase Installation IDs use
Message.Fid, while legacy registration tokens keep usingMessage.Token.pushTokenTypeand pins the new version.""and"token"to one cache/blacklist key so debounce and failed-token protection are shared.state: Activeon device DTOs for the new client-goDeviceStatefield.Verification:
go build ./...,go vet ./...,golangci-lint run(0 issues) andmake testpass in this repo; client-gomake lintandmake testpass on the new DTO.

Confidence Score: 5/5
The PR appears safe to merge; both previous findings are addressed and no new blocking issue was found.Summary
The PR carries each device’s push-token type through storage, the queue, upstream forwarding, and FCM.
The review checked source code only; tests were not run.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR Device[Saved device token and type] --> Queue[Push queue] Queue --> Mode{Push mode} Mode -->|Direct| FCM{Token type} Mode -->|Upstream| Forward[Forward token and type] Forward --> Receive[Upstream handler] Receive --> PublicQueue[Public push queue] PublicQueue --> FCM FCM -->|fid| Fid[FCM Fid] FCM -->|Legacy or omitted| Token[FCM Token]Reviews (3) · Last reviewed commit: "[push] normalize legacy token type in ca..." · Reviewed by Greptile