Skip to content

[Bug]: A thread search that fails shows "No results" #37312

Closed

Description

@cartwmic

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. Connect the Android app to a desktop host.
  2. Put the host under heavy load so the search request stalls or the connection drops. Mine had a load average above 50 on 8 cores and 25 GB of swap in use.
  3. On Home, search for a word of three or more letters that is in a message. I used "headlamp".

I have not found a quicker way to force it. Anything that makes the searchThreads request fail should do the same, because the client drops the error (see below). I have not tried a forced failure.

Expected behavior

The search says it failed and offers a retry. "No results" is for a search that finished and found nothing.

Actual behavior

I searched "headlamp" on my phone and Home showed "No results". The word is in an assistant message and in at least one other thread, and the server's own thread search returns both. The host was overloaded at the time.

I can't tie that to my search. The host's trace has a ws.rpc.orchestration.searchThreads call that ran 64.9 s and ended Interrupted while the host was in this state.

From reading the code at main d21d8d8b, a failed search ends up on the same screen as an empty one:

  • packages/client-runtime/src/state/threadSearch.ts:155 turns a failed result into null with AsyncResult.getOrElse(result, () => null). No matches are added.
  • apps/mobile/src/state/queries.ts:217-280: useThreadSearch returns matches, query and isPending. It has no error field.
  • apps/mobile/src/features/home/HomeScreen.tsx:708-713 shows "No results" for any query that is not pending.

I only saw this on Android. apps/web/src/state/queries.ts also uses this atom family. I did not check what web shows.

Related: #33138 returns an error from project content search while the index builds, so an unfinished scan does not read as "No results found". #21456 (closed PR) showed file-search errors in the @ picker. This report is about thread search on Home.

Impact

Minor bug or occasional failure

Version or commit

Latest T3 Code Android app as of Nov 15, 2026. Host T3 Code 0.1.10-nightly.20261113.4643. Code read at main d21d8d8b.

Environment

Samsung Galaxy Z Fold 7, T3 Code Android app. Host: T3 Code on Linux (Arch).

Logs or stack traces

ws.rpc.orchestration.searchThreads                 64.9 s  Interrupted
ThreadSearch.searchThreadsWithOlderSettledRows     64.9 s  Interrupted

Screenshots, recordings, or supporting files

None.

Workaround

Search again once the host's load comes down. That works every time for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions