Skip to content

[Bug]: Turn ends as Failed (ENOTFOUND) when the machine goes offline and never resumes when the network returns #39810

Closed as not planned

Description

@BelKed

Before submitting

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

Area

apps/server

Steps to reproduce

  1. Start a turn in any thread (seen with Claude) and let the agent work.
  2. While the agent is still running, lose connection (e.g. turn Wi-Fi off).
  3. Keep the machine offline until the provider has used up all its retries (10 in my case).
  4. The turn ends as Failed.
  5. Gain connection back (e.g. turn Wi-Fi back on).
  6. Wait. The thread stays Failed and nothing continues on its own.

Expected behavior

While the device is offline (!net.isOnline()), the thread waits instead of spending retries on a network that is down. When the device is online again, the turn continues without manual action.

Actual behavior

The provider retries 10 times against the dead network, then the turn ends as Failed:

Provider error after 10/10 retries
API Error: Can't reach the API server, check your internet or DNS (ENOTFOUND)

The thread stays Failed. Nothing notices that the network is back, so I type "continue" by hand. This happens whenever I am offline for longer than the retries last, for example when I carry the laptop between places.

I know the ideal setup is a server that runs the agents, with the laptop as an end node like a phone. I don't have that yet, and I think many users run agents directly on a laptop that sleeps or moves, so it would help if the thread recovered by itself.

Notes:

Impact

Major degradation or frequent failure

Version or commit

0.1.12-nightly.20261120.4994 (latest)

Environment

macOS 15.7.9, T3 Code (Alpha) desktop, Claude provider (Claude Code 2.1.329)

Workaround

Open the failed thread and send "continue" once the network is back.

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Nov 20, 2026
  2. juliusmarminge commented on Nov 20, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

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

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions