Repository navigation
Add user simulation and impersonation support for Addie - #390
Merged
Merged
Conversation
Implement WorkOS impersonation detection and audit logging for debugging user issues in production. Admins can now impersonate users, chat with Addie, and see rich member context. Includes admin UI to view any user's context as Addie sees it. Features: - Detect WorkOS impersonation sessions in auth middleware - Show impersonation banner in web chat when active - Add rich member context to Addie web chat (org, subscription, engagement, working groups) - Create admin users tab context viewer modal to inspect user details - Add impersonation audit logging to addie_conversations and addie_messages tables 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <[email protected]>
- Add AddieDatabase import and instance back to member-context.ts - Restore addie_history property in MemberContext interface (needed for web chat) - Rename migration 048 -> 050 to avoid conflict with main branch - Add changeset for PR versioning 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
bokelley
force-pushed
the
bokelley/addie-user-simulation
branch
from
December 30, 2025 10:54
3a8a609 to
3035175
Compare
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
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
Implement WorkOS impersonation detection and audit logging to support debugging user issues in production. Admins can now impersonate users, chat with Addie as them, and view their full member context in the admin UI.
Changes
/api/meTest Plan
🤖 Generated with Claude Code