Skip to content

[Bug] Phone cannot be idle issue #8925

Closed

Description

@shimmyshimmer

phone cant be idle during thinking or researching. if i turn off phone than streaming end. network error

Activity

  1. added
    feature request
    on Aug 15, 2026
  2. catogts commented on Aug 16, 2026

    @catogts
    Image

    Hello. I have raised this issue on Reddit.

    Thank you for your interest.

    After accessing Unsloth Studio via mobile phone and querying a model, if I turn the phone screen off and on again, a network error occurs as shown in the image, and the operation stops.

    I have attached the screenshot and logs showing the operation

    the environment is Ubuntu 24.04 , AMD Strixhalo system

    The log at that time is as follows:

    {"timestamp": "2026-08-16T10:35:16.716000Z", "level": "info", "event": "GGUF metadata: model always reasons ( tags in template)"}
    {"timestamp": "2026-08-16T10:35:16.716023Z", "level": "info", "event": "GGUF metadata: model supports tool calling"}
    {"timestamp": "2026-08-16T10:35:16.927670Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/api/inference/validate", "status_code": 200, "process_time_ms": 948.98}
    {"timestamp": "2026-08-16T10:35:26.454012Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 3.07}
    {"timestamp": "2026-08-16T10:35:36.524287Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 5.73}
    {"timestamp": "2026-08-16T10:35:46.591943Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 6.0}
    {"timestamp": "2026-08-16T10:35:56.687316Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 1.08}
    {"timestamp": "2026-08-16T10:36:06.767374Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 0.94}
    {"timestamp": "2026-08-16T10:36:09.180952Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/rag/knowledge-bases", "status_code": 200, "process_time_ms": 2.63}
    {"timestamp": "2026-08-16T10:36:09.183035Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_L3cl8fg", "status_code": 404, "process_time_ms": 1.18}
    {"timestamp": "2026-08-16T10:36:09.339262Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/api/chat/threads", "status_code": 200, "process_time_ms": 129.24}
    {"timestamp": "2026-08-16T10:36:09.353798Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_L3cl8fg", "status_code": 200, "process_time_ms": 1.85}
    {"timestamp": "2026-08-16T10:36:09.354155Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_L3cl8fg/messages/JGDPE6o", "status_code": 404, "process_time_ms": 3.1}
    {"timestamp": "2026-08-16T10:36:09.380749Z", "level": "info", "event": "request_completed", "method": "PUT", "path": "/api/chat/threads/__LOCALID_L3cl8fg/messages/JGDPE6o", "status_code": 200, "process_time_ms": 9.02}
    {"timestamp": "2026-08-16T10:36:09.407511Z", "level": "info", "event": "request_completed", "method": "PUT", "path": "/api/chat/threads/__LOCALID_L3cl8fg/messages", "status_code": 200, "process_time_ms": 9.46}
    {"timestamp": "2026-08-16T10:36:15.861316Z", "level": "info", "event": "engine_stats", "gen_tok_s": 0.0, "prompt_tok_s": 290.1, "running": 1, "waiting": 0}
    {"timestamp": "2026-08-16T10:36:19.799482Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/v1/chat/completions", "status_code": 200, "process_time_ms": 10368.41}
    {"timestamp": "2026-08-16T10:36:25.907805Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_L3cl8fg", "status_code": 200, "process_time_ms": 2.12}
    {"timestamp": "2026-08-16T10:36:25.992315Z", "level": "info", "event": "request_completed", "method": "PATCH", "path": "/api/chat/threads/__LOCALID_L3cl8fg", "status_code": 200, "process_time_ms": 9.93}
    {"timestamp": "2026-08-16T10:36:26.003131Z", "level": "info", "event": "request_completed", "method": "PUT", "path": "/api/chat/threads/__LOCALID_L3cl8fg/messages", "status_code": 200, "process_time_ms": 16.97}
    {"timestamp": "2026-08-16T10:36:26.027249Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_L3cl8fg/messages/oFiqqpt/forks", "status_code": 200, "process_time_ms": 2.02}
    {"timestamp": "2026-08-16T10:36:28.115702Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 1.2}
    {"timestamp": "2026-08-16T10:36:38.158714Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 1.21}
    {"timestamp": "2026-08-16T10:36:48.241357Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 1.08}
    {"timestamp": "2026-08-16T10:37:58.103348Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/monitor", "status_code": 200, "process_time_ms": 1.11}

  3. shimmyshimmer commented on Aug 16, 2026

    @shimmyshimmer
    MemberAuthor

    After accessing Unsloth Studio via mobile phone and querying a model, if I turn the phone screen off and on again, a network error occurs as shown in the image, and the operation stops.

    Can you refresh and it still should process?

  4. catogts commented on Aug 16, 2026

    @catogts

    No. If you refresh, it will appear in the finished state. If you press Retry on the screen above, it will start over from the beginning.

    The problem The results of the GPT investigation are as follows:

    Issue Summary

    When using Unsloth Studio from Android Chrome, an ongoing Thinking/inference generation is interrupted when the phone screen is turned off.

    This appears to be specific to the Studio web UI's streaming/inference lifecycle rather than an issue with the underlying model or backend.

    Environment

    • Client: Android phone
    • Browser: Google Chrome for Android
    • Server: Unsloth Studio running on a separate PC
    • Feature: Normal Chat with a thinking/reasoning model
    • Network: Local network
    • The same backend/model can continue running normally through Open WebUI when the phone screen is turned off.

    Reproduction Steps

    1. Open Unsloth Studio in Chrome on Android.
    2. Start a normal Chat request using a thinking/reasoning model.
    3. Wait until the model is actively generating/thinking.
    4. Turn off the Android phone screen.
    5. Wait for a while.
    6. Turn the screen back on.

    Observed Behavior

    After turning the screen back on:

    • Chrome shows "Network error".
    • The ongoing Thinking generation has stopped.
    • The response does not continue from where it was interrupted.
    • There is no obvious corresponding error in the Unsloth Studio logs.

    Comparison with Open WebUI

    The same general setup works differently with Open WebUI:

    Android Chrome
    ↓
    Open WebUI
    ↓
    LLM backend

    A generation can be started, the phone screen can be turned off, and the inference continues in the background. The result can be viewed after returning to the UI.

    This suggests that Android/Chrome network suspension alone is not sufficient to explain the issue.

    Suspected Cause

    The likely difference is the lifecycle of a normal Chat streaming request in Unsloth Studio.

    The current Studio backend appears to have durable/background handling for features such as Research runs, but normal Chat/Thinking generation is still closely associated with the browser's streaming connection.

    A possible sequence is:

    Android Chrome
    ↓
    Studio streaming request
    ↓
    Thinking/inference
    ↓
    Android screen turns off
    ↓
    Chrome suspends/breaks the streaming connection
    ↓
    Studio detects client disconnect
    ↓
    Streaming response/generation is terminated
    ↓
    Chrome later reports "Network error"

    I also checked the current Studio implementation and found that the codebase has explicit handling around streaming/disconnect behavior, including recent fixes related to thinking-model stopping and streaming responses. This suggests that this area is actively being developed.

    Why This Seems Like a Studio Lifecycle Issue

    The important observation is:

    «Open WebUI can continue the same kind of inference after the Android screen is turned off, while Unsloth Studio cannot.»

    Also, there is no obvious backend crash or model error when this happens.

    Therefore, this does not appear to be:

    • a model crash,
    • a VRAM/RAM problem,
    • a Vulkan/ROCm problem,
    • or the Unsloth server itself shutting down.

    It appears more likely to be a client disconnect → streaming generation cancellation behavior.

    Expected Behavior

    Ideally, normal Chat/Thinking inference should behave like a background task:

    Browser connection
    │
    │ starts inference
    ▼
    Background inference task
    │
    ├── browser connected → stream tokens
    │
    └── browser disconnected → continue inference
    ↓
    save final result

    The browser connection should preferably only control displaying the stream, rather than determining whether the underlying inference continues.

    This would allow users to:

    1. Start a long Thinking request from a phone.
    2. Turn the screen off.
    3. Let the inference continue.
    4. Reconnect later.
    5. See the completed response.

    Feature Request / Question

    Could Unsloth Studio's normal Chat/Thinking inference be changed so that temporary client/browser disconnects do not automatically terminate the underlying inference?

    Alternatively, an option such as:

    «"Continue generation after client disconnect"»

    or a background inference mode would be very useful, especially for mobile/LAN usage.

    This would make the Studio experience much closer to Open WebUI while preserving the unique Studio features.

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

Metadata

Metadata

Assignees

Labels

bugfeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions