You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 93468cb
Browse filesBrowse the repository at this point in the historyBrowse files
fix(telegram): follow configured model runtime (#133125)
Telegram model buttons now adopt the selected model's configured runtime after stating that effect before the click.
This removes stale compatible session runtime overrides, reports the effective runtime, and reuses the shared resolved runtime for follow-up and context handling.
Co-authored-by: Ayaan Zaidi <[email protected]>
@@ -666,7 +666,7 @@ async function handleTelegramModelCallback(params: {
666
666
provider: selection.provider,
667
667
model: selection.model,
668
668
isDefault: isDefaultSelection,
669
-
runtime: {kind: "unchanged"},
669
+
runtime: {kind: "clear"},
670
670
},
671
671
markLiveSwitchPending: true,
672
672
}),
@@ -687,13 +687,10 @@ async function handleTelegramModelCallback(params: {
687
687
constactionText=isDefaultSelection
688
688
? "reset to default"
689
689
: `changed to <b>${escapeHtml(selection.provider)}/${escapeHtml(selection.model)}</b>`;
690
-
construntimeText=
691
-
applied.runtimeChange?.kind==="clear"
692
-
? "Runtime reset to configured policy."
693
-
: "Runtime unchanged.";
690
+
construntimeText=`Runtime set to <b>${escapeHtml(applied.agentRuntime)}</b> from configured policy.`;
694
691
constscopeText=isDefaultSelection
695
692
? `Session model selection cleared.${defaultAuthProfileNotice ? ` ${defaultAuthProfileNotice}` : ""}${runtimeText} New replies use the agent's configured default.`
696
-
: `Session-only model selection. ${runtimeText}Use /model ${escapeHtml(selection.provider)}/${escapeHtml(selection.model)} --runtime <runtime> -s to switch harnesses. The agent default in openclaw.json is unchanged. This chat keeps the model selection across /new and /reset; use /model default -s to clear the session model selection.`;
693
+
: `Session-only model selection. ${runtimeText} The agent default in openclaw.json is unchanged. This chat keeps the model selection across /new and /reset; use /model default -s to clear the session model selection.`;
697
694
awaiteditMessageWithButtons(`✅ Model ${actionText}\n\n${scopeText}`,[],{
`${CHECK_MARK_EMOJI} Model reset to default\n\nSession model selection cleared. Runtime reset to configured policy. New replies use the agent's configured default.`,
2681
+
`${CHECK_MARK_EMOJI} Model reset to default\n\nSession model selection cleared. Runtime set to <b>openclaw</b> from configured policy. New replies use the agent's configured default.`,
`${CHECK_MARK_EMOJI} Model reset to default\n\nSession model selection cleared. ${outcomeText} Runtime unchanged. New replies use the agent's configured default.`,
2818
+
`${CHECK_MARK_EMOJI} Model reset to default\n\nSession model selection cleared. ${outcomeText} Runtime set to <b>${expectedRuntime}</b> from configured policy. New replies use the agent's configured default.`,
`${CHECK_MARK_EMOJI} Model changed to <b>openai/gpt-5.4</b>\n\nSession-only model selection. Runtime unchanged. Use /model openai/gpt-5.4 --runtime <runtime> -s to switch harnesses. The agent default in openclaw.json is unchanged. This chat keeps the model selection across /new and /reset; use /model default -s to clear the session model selection.`,
2936
+
`${CHECK_MARK_EMOJI} Model changed to <b>openai/gpt-5.4</b>\n\nSession-only model selection. Runtime set to <b>openclaw</b> from configured policy. The agent default in openclaw.json is unchanged. This chat keeps the model selection across /new and /reset; use /model default -s to clear the session model selection.`,
0 commit comments