You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pendant questions and answers show up in an app's or Mentor's chat thread instead of the main chat #22310
Primary loop layer: Retrieval-Action (questions asked with the pendant)
Involves data loss, failed capture, or broken sync/trust
Nothing is lost on the server, but a pendant question and its answer show up in the wrong chat thread and then vanish from it.
Describe the bug
On mobile, a question you ask with the pendant button goes to /v2/voice-messages. That endpoint names no app and no chat session, so the backend saves the question and the answer to the main Omi chat. The app, however, adds both to whichever chat thread is open. It already skips Past chats and a fresh chat, but not a chat app's thread. So when an app's thread is selected, the pendant question and answer appear in that app's thread. That happens after you pick an app in the chat drawer, open chat from an app's page, or tap a Mentor notification, which opens chat on app mentor.
To Reproduce
Tap a Mentor notification, or open chat and pick any chat app in the drawer. Chat opens on that app's thread.
Close chat. The app stays selected.
Ask a question with the pendant button.
Open chat.
Close chat and open it again, or pick the same app again.
Current behavior
At step 4 the question and answer are in the app's (or Mentor's) thread. After step 5 they are gone from that thread and appear in the main Omi chat instead. A typed follow-up in the app's thread does not have the pendant question as context, because that thread's history comes only from the app's own session.
Expected behavior
A pendant question and its answer appear only in the main Omi chat, where they are saved. While another thread is open, the answer still plays through the pendant, as it already does when Past chats is open.
Evidence (upstream main at 8ed3ad1b1bc262e328e7e2a746614db5db17fd9a)
Activity