openclaw - 💡(How to fix) Fix [Bug]: Main session stays on transient override model with no reliable agent-accessible reset path [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#62899Fetched 2026-04-09 08:01:03
View on GitHub
Comments
1
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
commented ×1cross-referenced ×1

After a complex-task task-pack finalization temporarily uses a stronger override model, the main Jarvis session can remain on that override model instead of returning to its configured default model, and the agent has no reliable session-level reset path exposed in its current tool surface.

Root Cause

After a complex-task task-pack finalization temporarily uses a stronger override model, the main Jarvis session can remain on that override model instead of returning to its configured default model, and the agent has no reliable session-level reset path exposed in its current tool surface.

Fix Action

Fix / Workaround

  • sessions.patch supports clearing a model override with model: null and marks it as a pending live model switch.
  • Tests cover marks model reset patches as pending live model switches.
  1. a runtime behavior bug where a transient override persists on the main session, or
  2. a product/API gap where model reset exists internally (sessions.patch model: null) but is not reliably exposed/usable from the agent workflow that initiated the transient override.

Code Example

{
  "primary": "minimax-portal/MiniMax-M2.7-highspeed",
  "fallbacks": [
    "evolink-openai/gpt-5.2",
    "evolink-google/gemini-2.5-flash"
  ]
}

---

task_id: task-20260408-001-pkb-llm-wiki-system
final_owner: Jarvis
model_for_final_pack: evolink-openai/gpt-5.2

---

{
  "taskId": "task-20260408-001-pkb-llm-wiki-system",
  "status": "ready",
  "model_for_final_pack": "evolink-openai/gpt-5.2"
}

---

1. 当前主会话默认模型:minimax-portal/MiniMax-M2.7-highspeed
2. 当前主会话运行时模型:evolink-openai/gpt-5.2
...
- 当前 session status 里的 model:evolink-openai/gpt-5.2
结论:未成功恢复到默认主模型(异常:缺少可用的 session reset 接口)
RAW_BUFFERClick to expand / collapse

[Bug]: Main session stays on transient override model with no reliable agent-accessible reset path

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

After a complex-task task-pack finalization temporarily uses a stronger override model, the main Jarvis session can remain on that override model instead of returning to its configured default model, and the agent has no reliable session-level reset path exposed in its current tool surface.

Steps to reproduce

  1. Configure the main/default model as minimax-portal/MiniMax-M2.7-highspeed, with evolink-openai/gpt-5.2 available as a fallback/override.
  2. In the same long-lived Jarvis main session, prepare a complex task pack that explicitly requires final pack finalization on evolink-openai/gpt-5.2.
  3. Let the task pack complete and confirm the task pack metadata/status file records model_for_final_pack: evolink-openai/gpt-5.2.
  4. Ask Jarvis for:
    • the main session default model
    • the current main session runtime model
    • the current session status model
  5. Observe that the main session runtime/status model remains evolink-openai/gpt-5.2 instead of returning to the configured default minimax-portal/MiniMax-M2.7-highspeed.
  6. Ask Jarvis to reset back to the default model at session scope. In this environment, Jarvis reports that no agent-accessible session-level reset path is available.

Expected behavior

If a stronger model override is used only for transient task-pack finalization, the main session should reliably return to its configured default model after the finalization step completes, or the agent should have an explicit supported session-level reset action it can invoke to clear the override.

Actual behavior

The main session continues to report evolink-openai/gpt-5.2 as the runtime/status model after task-pack finalization. The task pack correctly records model_for_final_pack: evolink-openai/gpt-5.2, but the main session does not appear to revert to its configured default model. In the observed environment, Jarvis can explain the mismatch but cannot complete a reliable session-level reset itself.

OpenClaw version

2026.4.5 (3e72c03)

Operating system

macOS 26.3.1 (25D771280a)

Install method

Local CLI install / local workspace setup

Model

Default main-session model: minimax-portal/MiniMax-M2.7-highspeed
Transient finalization override: evolink-openai/gpt-5.2

Provider / routing chain

openclaw -> minimax-portal (default main-session route)
openclaw -> evolink-openai/gpt-5.2 (transient finalization override)

Additional provider/model setup details

The local config sets the main/default agent model to:

{
  "primary": "minimax-portal/MiniMax-M2.7-highspeed",
  "fallbacks": [
    "evolink-openai/gpt-5.2",
    "evolink-google/gemini-2.5-flash"
  ]
}

The workflow intentionally uses evolink-openai/gpt-5.2 only for complex task-pack finalization, not as the normal main-session model.

Logs, screenshots, and evidence

Observed task-pack metadata:

task_id: task-20260408-001-pkb-llm-wiki-system
final_owner: Jarvis
model_for_final_pack: evolink-openai/gpt-5.2

Observed status file:

{
  "taskId": "task-20260408-001-pkb-llm-wiki-system",
  "status": "ready",
  "model_for_final_pack": "evolink-openai/gpt-5.2"
}

Observed Jarvis answers in the same session:

1. 当前主会话默认模型:minimax-portal/MiniMax-M2.7-highspeed
2. 当前主会话运行时模型:evolink-openai/gpt-5.2
...
- 当前 session status 里的 model:evolink-openai/gpt-5.2
结论:未成功恢复到默认主模型(异常:缺少可用的 session reset 接口)

Relevant upstream evidence from the codebase:

  • sessions.patch supports clearing a model override with model: null and marks it as a pending live model switch.
  • Tests cover marks model reset patches as pending live model switches.

This suggests a model-reset mechanism exists in the product, but it does not appear to be reliably reachable or applied in this observed task-pack-finalization workflow.

Impact and severity

Affected: long-lived main Jarvis sessions that temporarily use a stronger model for task-pack finalization
Severity: Medium to High (causes model-state pollution and unexpected cost/behavior drift in later ordinary conversation)
Frequency: Observed in the tested session after task-pack finalization
Consequence: the main session stays on the stronger override model instead of the configured default, and agent logic cannot reliably restore the default through its exposed tool surface

Additional information

This report is grounded in observed task-pack files, status files, and same-session model/status answers. The issue may be either:

  1. a runtime behavior bug where a transient override persists on the main session, or
  2. a product/API gap where model reset exists internally (sessions.patch model: null) but is not reliably exposed/usable from the agent workflow that initiated the transient override.

Either way, the current behavior makes “temporary strong-model finalization” unsafe for long-lived main sessions.

extent analysis

TL;DR

The main session remains on the override model after task-pack finalization due to a potential bug in the model reset mechanism, and a reliable session-level reset path is not available.

Guidance

  • Verify that the sessions.patch mechanism is correctly implemented and exposed in the agent workflow to reset the model override.
  • Check the product/API documentation to ensure that the model reset functionality is properly documented and accessible.
  • Investigate the possibility of adding a explicit model reset action in the agent workflow to clear the override after task-pack finalization.
  • Review the task-pack finalization workflow to ensure that it correctly reverts to the default model after completion.

Example

No code snippet is provided as the issue is more related to the product workflow and API design.

Notes

The issue may be caused by either a runtime behavior bug or a product/API gap, and further investigation is needed to determine the root cause.

Recommendation

Apply a workaround by adding an explicit model reset action in the agent workflow to clear the override after task-pack finalization, as the current behavior makes "temporary strong-model finalization" unsafe for long-lived main sessions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

If a stronger model override is used only for transient task-pack finalization, the main session should reliably return to its configured default model after the finalization step completes, or the agent should have an explicit supported session-level reset action it can invoke to clear the override.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING