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" #61596DescriptionDescription
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
- start opencode service
- pair with your device
- use google chrome PWA to communicate with opencode
- create a new session, use deepseek v.4.1 flash 1017 reasoning max, and start working.
- end it with a goodbye phrase: "The session ends here"
- wait for a few seconds, try refreshing your opencode
Screenshot
No response
Operating System
Ubuntu 22.04
Terminal
Gnome Activityopencodejr commented on Nov 4, 2026 Thanks for the report! To work out what actually happened, we need a bit more detail:
- Exact version: the output of
opencode --version ("latest" changes often).
- 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.
- 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:
opencodejr commented on Nov 7, 2026 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!
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|