Description
I have a /commit command configured to use a specific model:
---
description: Create a git commit
model: opencode/deepseek-v4-flash-free
---
My default model is configured as follows:
{
"$schema": "https://opencode.ai/config.json",
"model": "openai/gpt-5.6-sol"
}
I start a session using openai/gpt-5.6-sol, then run the /commit command.
After closing the session with /exit and resuming it through /sessions, the session model is incorrectly set to opencode/deepseek-v4-flash-free, which is the model used by the /commit command.
I expect the resumed session to continue using its original model, openai/gpt-5.6-sol.
Steps to Reproduce
- Start a session using
openai/gpt-5.6-sol.
- Run the
/commit command.
- Close the session using
/exit.
- Run
/sessions and resume the previous session.
- Observe that the selected model is
opencode/deepseek-v4-flash-free instead of openai/gpt-5.6-sol.
Expected Behavior
The resumed session should use the session's original model: openai/gpt-5.6-sol.
Actual Behavior
The resumed session uses the model assigned to the most recently executed command: opencode/deepseek-v4-flash-free.
Plugins
None
OpenCode Version
1.18.3
Operating System
macOS Tahoe
Terminal
Ghostty
Screenshot or Share Link
None
Description
I have a
/commitcommand configured to use a specific model:My default model is configured as follows:
{ "$schema": "https://opencode.ai/config.json", "model": "openai/gpt-5.6-sol" }I start a session using
openai/gpt-5.6-sol, then run the/commitcommand.After closing the session with
/exitand resuming it through/sessions, the session model is incorrectly set toopencode/deepseek-v4-flash-free, which is the model used by the/commitcommand.I expect the resumed session to continue using its original model,
openai/gpt-5.6-sol.Steps to Reproduce
openai/gpt-5.6-sol./commitcommand./exit./sessionsand resume the previous session.opencode/deepseek-v4-flash-freeinstead ofopenai/gpt-5.6-sol.Expected Behavior
The resumed session should use the session's original model:
openai/gpt-5.6-sol.Actual Behavior
The resumed session uses the model assigned to the most recently executed command:
opencode/deepseek-v4-flash-free.Plugins
None
OpenCode Version
1.18.3Operating System
macOS Tahoe
Terminal
Ghostty
Screenshot or Share Link
None