GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Agent (might) Restarts opencode Service over a prompt: "The Session Ends Here" · Issue #61596 · anomalyco/opencode

Agent (might) Restarts opencode Service over a prompt: "The Session Ends Here" #61596

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Agent (might) Restarts opencode Service over a prompt: "The Session Ends Here"#61596
Copy link
Labels
triaging

Description

@signifocanvas
signifocanvas
opened on Nov 4, 2026
Issue body actions

Description

I have been working with opencode remotely lately.
The opencode service runs in the local machine.
I paired my phone's browser to it.

Everything has been working fine for straight 2 weeks, until one day after a good bugfixing session, I playfully ended the conversation agent with this prompt:

"Good job. The changes have been proven correct after testing them on the production website. The session ends here"

Apparently the phrase "The session ends here" was interpreted by the agent that its his final task (not session scope task), and should be ended with (maybe) restarting the opencode service.

As the result the connection with the local service was temporarily down. The prove that it was not an internet service down was: I had another app service running and it was still running when the incident took place.

Model used: Opencode Go Deepseek V.4.1 Flash 1017 Reasoning Max

Plugins

none

OpenCode version

latest

Steps to reproduce

  1. start opencode service
  2. pair with your device
  3. use google chrome PWA to communicate with opencode
  4. create a new session, use deepseek v.4.1 flash 1017 reasoning max, and start working.
  5. end it with a goodbye phrase: "The session ends here"
  6. wait for a few seconds, try refreshing your opencode

Screenshot

No response

Operating System

Ubuntu 22.04

Terminal

Gnome

Activity

  1. opencodejr commented on Nov 4, 2026

    @opencodejr
    opencodejrBot
    on Nov 4, 2026
    Contributor
    More actions

    Thanks for the report! To work out what actually happened, we need a bit more detail:

    1. Exact version: the output of opencode --version ("latest" changes often).
    2. What the agent did after your last prompt: open that session again and check whether the agent ran any tool calls after "The session ends here", especially shell commands such as opencode service restart, systemctl ..., kill or pkill. Please paste them, or attach a screenshot of them. If the agent made no tool calls, please say so too.
    3. Service logs from around that time, if you have them. Please also say whether the service came back by itself or you had to start it again.

    This tells us whether the model ran a command that restarted the service, the service crashed or restarted by itself, or only the connection from your phone dropped.

    You can reply here with the details or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.

    These issues are related, ordered from most to least likely; one of them may already cover what you saw:

    • feat: service restart approval when agents are running #55967: request to ask for approval before restarting the service while agents are running
    • cli: 'opencode service set env' restarts the shared service and cancels the caller #58220: opencode service set env restarts the shared service and cancels the caller
    • [service]: managed service stalls, watchdog recovery loses sessions (404 "session not found"), restart stampede races the service slot (2.0.25 vs 2.0.26) #54181: the managed service stalls and the watchdog restarts it, losing sessions
    • cli: 'service restart' fails with 'Managed service port ... already in use' and leaves the old service running #59610: problems with opencode service restart
  2. opencodejr
    added
    triaging
    on Nov 4, 2026
  3. opencodejr commented on Nov 7, 2026

    @opencodejr
    opencodejrBot
    on Nov 7, 2026
    Contributor
    More actions

    We're closing this for now because we haven't heard back. Without the exact opencode --version, the tool calls the agent made after "The session ends here" and the service logs from that time, we can't tell what took the service down. It could have been the model running a restart or kill command, the service crashing or restarting by itself, or the connection from your phone dropping.

    If it happens again, please reply here with those details and we can reopen this. Thanks for reporting it!

  4. opencodejr
    closed this as not plannedon Nov 7, 2026
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

    triaging

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.