Repository navigation
fix(identity): Resolve web actors to their stored identity - #2437
Merged
Merged
Conversation
readActorIdentity looked up provider="web" and subject=dashboard:<hash>, but web identities are stored as provider "junior" keyed by verified email. Every web actor resolved to no identity, which broke memory recall, preference saving, Google requester email, GitHub requester attribution, and saved timezone for dashboard users. Build the lookup key from the same identityFromActor mapping that the Conversation write path uses, so reads and writes share one rule. Refs #2431 Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
approved these changes
Oct 30, 2026
Contributor
|
2 screenshot changes — 2 changed · 0 added · 0 removed Review screenshots in Frameshift
|
This was referenced Oct 30, 2026
This branch was successfully 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.
readActorIdentitybuilt its lookup from the runtime actor directly:provider = actor.platformandproviderSubjectId = actor.userId. For a dashboard actor that isweb/dashboard:<hash>. No code writes that row. The Conversation write path stores web identities as providerjuniorkeyed by the verified email. So every web actor resolved to no identity and no User.Because of this, dashboard users lost memory recall and private memories, preference saving, the Google requester email, GitHub requester attribution and co-author lookup, and their saved timezone.
The read side now builds its key with
identityFromRuntimeActor. This calls the sameidentityFromActormapping that the write side uses, so reads and writes cannot drift apart again. Slack lookups stay the same. Local and system actors still return no identity, and thekind = "user"filter keeps system identities out.I checked the plugin consumers for code that assumes a Slack user ID. GitHub attribution and the Google requester email read only
userandidentitydisplay fields. Scheduled automation creation already rejects identities that are not Slack. Timezone uses the Slack profile only for Slack actors. None of these needed changes.The memory component scenario now also covers the same person on the dashboard. Their web actor resolves to the same User, and
memory_listMemoriesreturns their private memory.Refs #2431
via David Cramer.
--
View Session [Sentry]