fix(docs): attribute web-UI tracked changes to the acting user, not "Mike"
From the PR description
Summary
Web-chat's edit_document hardcoded the tracked-change author to the literal string "Mike" regardless of who was signed in, unlike the Word add-in (which inherits the signed-in Word identity via Office.js). Every tracked change made through the web app showed up as authored by "Mike" instead of the actual user.
Changes
backend/src/lib/chat/tools/documentOps.ts - runEditDocument now looks up the acting user's display_name/email from user_profiles and passes that as the author to applyTrackedEdits, falling back to "Mike" only if no profile name/email is available.
Testing
tsc --noEmit --prefix backend clean
The investigation and code in this PR were done by Claude (Sonnet 5) via Claude Code; I reviewed and am submitting it.
Our analysis
Attribute web edits to signed-in users — read the full analysis →
Think the analysis missed something the PR description covers?
Capture this PR into my fork
Download a Markdown prompt that tells Claude how to port every
commit in this PR into your working tree. Run it via
claude -p < capture-pull-388.md from
inside the repo you want the changes in.