Skip to content

fix(conversations): load with internal user id#129

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/conversations-load-internal-user-id
Jul 1, 2026
Merged

fix(conversations): load with internal user id#129
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/conversations-load-internal-user-id

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • resolve the authenticated Supabase user to the internal users.id before loading conversations
  • query conversation_participants with the internal user id instead of auth_user_id
  • add regression coverage for conversation loading and missing internal profiles

Why

/api/conversations/load is called by the chat store, but conversation_participants.user_id references users.id. The route was using the Supabase Auth id directly, so valid users could get an empty conversation list.

Validation

  • corepack pnpm exec vitest run --config %TEMP%/qryptchat-vitest-no-react.config.mjs src/app/api/conversations/load/route.test.js
  • corepack pnpm exec oxlint src/app/api/conversations/load/route.js src/app/api/conversations/load/route.test.js

@ralyodio ralyodio merged commit 11281ad into profullstack:master Jul 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants