Repository navigation
fix(server): attribute Discord threads from identity-map snowflakes - #487
Merged
Merged
Conversation
Mine treats unattributed threads as yours, and the participant chip requires personId. Discord turns often stored actor.platformId without resolving the map (empty at create, or a later map edit). Re-resolve origin and seed the origin participant on snapshot and projection refresh so Enrico-style Discord starters show as theirs.
patroza
marked this pull request as ready for review
September 24, 2026 08:09
patroza
added a commit
that referenced
this pull request
Sep 25, 2026
#487 re-resolved identity-map snowflakes, but **new Discord threads still had empty origin**. Worktree create persists the first user message via \`thread.message.user.append\` and then **skips** \`message-sent\` on turn.start. The append path dropped \`SourceRef\`. Live evidence: \`t3-discord/efea60fb\` (Announce Shared Ladehilfe Once) has \`origin_source_json = null\` and one user message with empty \`source_json\`, while a later follow-up on another Discord thread did get Enrico. - Copy the stamped turn.start source onto the bootstrap append. - Recover existing rows from the Discord overlay (\`req: snowflake@handle\`) on snapshot/refresh. After deploy, reload: Enrico's working Discord threads should show his chip and leave Mine. --------- Co-authored-by: T3 Code PR Stack <41898282+github-actions[bot]@users.noreply.github.com>
This was referenced Sep 28, 2026
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.
Discord threads often stored `actor.platformId` without `personId` (map empty at create, or a later map edit). Mine treats unattributed threads as yours, and the identity chip requires personId — so Enrico's Discord starters showed up in Mine with no face.
Re-resolve origin from the identity map on snapshot and projection refresh, and seed the origin participant. Enrico is already in the live map (`147977704522645504`).
After this lands, reload the environment: existing Discord-origin rows pick up the person without rewriting events.