omi icon indicating copy to clipboard operation
omi copied to clipboard

bug(chat): generic assistant error reported on web and phone

Open aryanorastar opened this issue 1 month ago • 5 comments

Report

Featurebase report “The AI assistant is not working today” (Richard Denton; one requester, about two months old). The attached screenshot shows repeated chat turns responding “Sorry, I encountered an error. Please try again.” The reporter says the same error occurred in the phone app. No exact failure timestamp, phone platform, or app version was provided.

What the current code shows

The same user-facing sentence can be emitted from several backend agent error paths in backend/utils/retrieval/agentic.py, and the web chat UI can also show it for failed requests in web/frontend/src/components/memories/chat/chat.tsx. The screenshot does not establish a root cause or prove an ongoing service outage.

Investigation

  • With a precise private account identifier and failure timestamp, check request/trace IDs, backend chat errors, provider status, and whether both clients reached the same endpoint.
  • Reproduce a simple new chat on web and iOS/Android with the same account; identify whether this is account-specific, client-specific, or service-wide.
  • Ensure known failure types surface actionable, non-sensitive copy and a support-friendly request ID.
  • Do not expose message content, email, tokens, or provider keys in public diagnostics.

Details needed

Exact date/time and timezone of a failed message, phone platform and Omi app version, whether the problem still occurs, and whether it affects every chat or only one thread. Send account-identifying information privately to support.

aryanorastar avatar Oct 04 '26 04:10 aryanorastar

This issue is linked to our feedback platform. For feedback and updates, please visit this link.

featurebase-for-github avatar Oct 04 '26 04:10 featurebase-for-github

Additional customer report: every chat times out on web and Android

Source: https://discord.com/channels/1192313062041067520/1567750757833379840

RyanRy reports that every attempt to chat thinks for a while, then returns “The response took too long. Please try again.” He explicitly confirms this occurs on both web and Android. The initial report is displayed at 09:31 and the platform clarification at 09:33; the original calendar date/timezone were not supplied. Android phone/OS/app build, browser/web URL, selected chat app/provider, affected thread and precise failure time are not yet known. No restart/reset/reinstall or other troubleshooting was reported.

This fits this issue's existing web-plus-phone investigation scope, with a more specific timeout symptom. It is a separate customer report; a shared root cause with the original generic-error case is not established. No duplicate issue is needed at this stage.

Current code and prior fixes checked

Reviewed freshly fetched main e88fb828c277266230cbf017fae614653b78ac06 on November 5, 2026:

  • The exact sentence is the backend's AGENT_STREAM_TIMEOUT_MESSAGE. It can be emitted on setup timeout (L1578) or a bounded stream deadline with no kept answer (L1896). The text alone cannot distinguish provider latency, setup/storage/tool waits, account-specific state, or another request failure.
  • Android's messages.dart recognizes the exact terminal error as timeout. The same parser exists in the old commit cited by Mira; that source identifies a notice, not this account's cause.
  • Current web chat posts to /v2/messages and renders streamed error: text (L1013). Confirm Ryan's actual web URL/version rather than assuming this current web client. Reproduction on two surfaces makes shared account/backend/provider state worth checking before Android-only troubleshooting; that is an investigation lead, not a diagnosis.
  • #11191 MERGED: setup and post-setup first-event clocks are already separate, progress is emitted after setup, and typed terminal errors are preserved. Do not reopen the old pre-setup-clock defect without evidence.
  • #10305 MERGED: preserves an answer already streamed before a bounded stop. This does not fix a turn that never produces an answer.
  • #9924 MERGED includes the bounded-stalled-SSE work (9b22a99123). These merges are present on main, not evidence of this customer's production release state or successful chats. No PR referencing #20606 was found in this search.

Remaining investigation and verification

Request one private affected example at [email protected]: Omi account email and the date/time/timezone of a failed turn. Add the already requested Android app/OS details and actual browser/web URL when available; retain the confirmed web+Android scope. Avoid requesting private prompts or identifiers in public comments.

Correlate request/trace IDs and the real timeout stage/error category, selected chat route/provider/app, account/session state, provider/tool timing and whether any answer was streamed or persisted. Establish whether both failures use the same account/route and whether a minimal fresh turn also fails; do not erase existing chat history as a test. Distinguish a timed-out request from a service-wide outage or quota problem.

The remaining outcome is successful persisted replies on both affected surfaces for the identified scenario, with existing partial-answer preservation and safe terminal-error/retry behavior retained. Cause, production rollout and customer resolution remain unverified. This triage inspected code/history and supplied evidence; it did not access Ryan's account, reproduce the live failure, or change production.

aryanorastar avatar Nov 05 '26 16:11 aryanorastar

RyanRy: linked July–October long day-report history and two distinct latest outcomes

Sources: “Chat is Nerfed” and the later web/Android timeout thread already linked above. Same Discord handle/customer history; do not count these as two additional reporters or assume every dated failure has one cause. Reviewed November 6, 2026 against main aed926eafc10cbe41ecadc7752c007f8163422be.

What the expanded source adds

  • July 26–August 12: established detailed day-report prompt becomes short/truncated, continuation repeats/restarts or omits content, and generic errors occur between parts. Android 1.0.546, later 1.0.547, are historical builds, not verified October/November versions. Web failure is explicitly confirmed August 7 and 10. Short prompts worked August 7; that does not override the separate later report that every attempt times out.
  • August 2: the customer tried the bot's revised multipart wording. He reports about 4,000 characters, a mid-sentence stop and failure on continuation. He also explicitly says splitting into separate requests destroys the context he needs. Neither suggestion is a verified workaround. “Crashed” is customer wording; an OS/app-process crash has not been demonstrated.
  • October 18: a human reply describes partial-output retention and asks whether the problem remains. October 30–31 explicitly confirm it remains, including the timeout text already tracked here.
  • October 31: the supplied screenshot visibly shows the assistant answer “I couldn't verify that from the saved transcripts searched so far. I won't guess; a narrower date or another phrase can help continue the search.” A following “Try again” user turn has “The response took too long. Please try again.” The customer types both messages and says the recordings are synced. Synced is his report, not an independently audited storage/entitlement verdict.

The screenshot's upper gray user bubble contains personal day-report material; it is not proof that Omi generated those paragraphs as an answer. That private content and the raw screenshot are intentionally not reproduced here. Other historical screenshots and the referenced OmiDaily.txt attachment are not available in this intake; the pasted structural prompt excerpts are available.

Already implemented versus unverified

  • #20133 CLOSED already documents this July/August continuation history. #20139 MERGED October 1, confirmed ancestor of audited main: explicit continuation contract. #20182 CLOSED, unmerged is a separate proposal, not another shipped fix.
  • #10305 MERGED preserves partial output on bounded stops; #11191 MERGED separates setup and first-event budgets; #9924 MERGED bounds gateway/stream work. All checked as main ancestors. Current agentic source requests 8,192 completion tokens, not a hard 5,000-character output cap; setup/first-event/total defaults are 25/25/150 seconds, configurable in deployment. These limits do not identify Ryan's actual failure or prove current serving settings.
  • #23792 MERGED October 27, also an ancestor, introduces the exact unverified transcript-recall sentence. It can intentionally withhold unsupported text after an explicit saved-transcript read yields no authorized cited evidence. The notice is distinct from a timeout: it does not mean all recordings are unsynced, prove no transcript exists, or establish that a whole day's search was completed. A bounded/filtered/misdirected read or budget exhaustion needs separate inspection. Keep the grounding/privacy guard; do not fix a missing result by enabling unsupported personal claims.
  • Requiring at least 15,000 characters across multiple parts and at most 5,000 per response is logically compatible. There is no evidence for the historical bot's assertion that those conditions inherently deadlock. Input size, tool/read coverage, provider output limit and stream deadlines are separate boundaries.

Next investigation / acceptance

Privately correlate one recent failure with Omi account, exact date/time/timezone and current build/browser endpoint. Inspect setup vs first-event vs total deadline, serving runner/provider/config, selected chat app, request/session history and final persisted partial text. For the unverified turn inspect actual transcript_query, CT date bounds (including date-specific DST), cursor/coverage, privacy/entitlement filtering and evidence receipts; do not log private prompt/transcript text publicly. The customer has already supplied Android/web, the prompt pattern, failed rewrite and failed splitting, so do not repeat those checks.

Use a privacy-safe seeded day with enough source material for multipart output, then validate generation → partial preservation → reload/history → continuation without repeated/missing text on both surfaces. Test an empty/bounded transcript search, a later successful evidence page, and typed timeout/retry separately. Verify applicable backend availability and customer outcome. No live account lookup, reproduction, reminder creation, deployment, app update, chat deletion or customer reply occurred in this triage. Existing issue retained; no duplicate or assignment.

aryanorastar avatar Nov 05 '26 19:11 aryanorastar

Closing this engineering investigation with the verified fix and the remaining unconfirmed reports distinguished.

  • The acquired-lease / blocked-retry defect is fixed by #24763, merged at 579400fdf6. Its production backend rollout is verified: serving image/commit fd1d5bb includes that merge, with 100% traffic to the ready revision and matching live /v2/messages requests.
  • 158 selected backend regression tests passed. The real local Firestore lease replay passed rejected request → immediate retry → persisted reply → released lease. A separate local HTTP/agentic replay retained 16,032 characters through a partial timeout, history reload and three continuation turns. The multipart replay used synthetic provider/auth/history IO; it does not establish live model answer quality.
  • No additional actionable product defect was reproduced. The original generic-error report and the remaining timeout/day-report symptoms lack a verified account/request reproduction. Their cause and individual customer outcomes are not proven resolved.

Support owns the already-requested private diagnostics and any customer retest or feedback. Those alone will not keep this GitHub issue open. Closing not planned for the insufficiently substantiated remainder, rather than claiming every reported symptom was fixed by #24763. Reopen this issue if a concrete trace or reproducible scenario identifies remaining technical work. Customer cases remain tracked separately with Support.

aryanorastar avatar Nov 09 '26 13:11 aryanorastar

Production recurrence after search activity

In November, a reporter saw conversation and memory searches in the chat activity panel, followed by repeated “Still working…” messages, then reported that the turn timed out. A production warning for the same account within one minute of the reported failure records Agent stream reached its bounded deadline, with reason=idle_timeout and route=agentic. This establishes a timeout after the stream started. The evidence does not identify which retrieval or provider operation stopped producing output, or whether this client received the terminal event.

#24763 fixed an earlier failure before streaming, when a rejected request left a lease blocking retries. This turn reached the agent stream after admission.

  • Trace the last completed tool or provider step and the interval from its last output to the idle deadline. The progress labels alone do not identify a slow search.
  • Verify that an idle timeout produces a terminal event, dismisses the waiting indicator, and preserves any partial answer across history reload on Android and web. If no answer was generated, verify that retry remains available.
  • Exercise the post-search stall in a regression test using synthetic data and record which behavior reproduces before proposing a fix.

aryanorastar avatar Nov 21 '26 07:11 aryanorastar