Is this a reproducible bug?
Current behavior
After selecting an existing OpenCode session with /session and continuing to chat, Herdr keeps the previously recorded agent_session ID. Restarting Herdr reopens the previous session instead of the session selected in OpenCode.
Expected behavior
The OpenCode integration should track the currently active session after /session selects an existing conversation. After a Herdr restart, that selected conversation should be restored.
Reproduction
-
Install the OpenCode integration:
herdr integration install opencode
-
Start Herdr and OpenCode.
-
Send a message in a new OpenCode session.
-
Run /session and select an older existing session.
-
Send another message.
-
Run herdr agent list. The agent_session.value still points to the newer session.
-
Run herdr server stop, then herdr.
-
OpenCode restores the newer session instead of the selected older session.
Impact
Existing OpenCode conversations cannot reliably be selected and restored across a Herdr server restart. New OpenCode sessions restore correctly.
Environment
- Herdr version:
0.8.0
- Update channel: stable
- Operating system: macOS
- Terminal: Ghostty
- OpenCode version:
1.17.8
- Integration: OpenCode
v9
- Relevant config: native agent restore enabled by default
Is this a reproducible bug?
Current behavior
After selecting an existing OpenCode session with
/sessionand continuing to chat, Herdr keeps the previously recordedagent_sessionID. Restarting Herdr reopens the previous session instead of the session selected in OpenCode.Expected behavior
The OpenCode integration should track the currently active session after
/sessionselects an existing conversation. After a Herdr restart, that selected conversation should be restored.Reproduction
Install the OpenCode integration:
Start Herdr and OpenCode.
Send a message in a new OpenCode session.
Run
/sessionand select an older existing session.Send another message.
Run
herdr agent list. Theagent_session.valuestill points to the newer session.Run
herdr server stop, thenherdr.OpenCode restores the newer session instead of the selected older session.
Impact
Existing OpenCode conversations cannot reliably be selected and restored across a Herdr server restart. New OpenCode sessions restore correctly.
Environment
0.8.01.17.8v9