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
@@ -83,7 +86,9 @@ export async function modelsAuthOrderClearCommand(
83
86
order: null,
84
87
});
85
88
if(!updated){
86
-
thrownewError("Failed to update auth-state.json (lock busy?).");
89
+
thrownewError(
90
+
`Failed to update auth-state.json; the auth state lock may be busy. Wait a moment and rerun ${formatCliCommand("openclaw models auth order clear --provider "+provider)}.`,
91
+
);
87
92
}
88
93
89
94
runtime.log(`Agent: ${agentId}`);
@@ -103,13 +108,17 @@ export async function modelsAuthOrderSetCommand(
thrownewError("Missing profile ids. Provide one or more profile ids.");
111
+
thrownewError(
112
+
`Missing profile ids. Run ${formatCliCommand("openclaw models auth list --provider "+provider)} to choose one or more profile ids.`,
113
+
);
107
114
}
108
115
109
116
for(constprofileIdofrequested){
110
117
constcred=store.profiles[profileId];
111
118
if(!cred){
112
-
thrownewError(`Auth profile "${profileId}" not found in ${agentDir}.`);
119
+
thrownewError(
120
+
`Auth profile "${profileId}" not found in ${shortenHomePath(agentDir)}. Run ${formatCliCommand("openclaw models auth list --provider "+provider)} to see saved profiles.`,
thrownewError(`Auth profile "${profileId}" is for ${cred.provider}, not ${provider}.`);
@@ -122,7 +131,9 @@ export async function modelsAuthOrderSetCommand(
122
131
order: requested,
123
132
});
124
133
if(!updated){
125
-
thrownewError("Failed to update auth-state.json (lock busy?).");
134
+
thrownewError(
135
+
`Failed to update auth-state.json; the auth state lock may be busy. Wait a moment and rerun ${formatCliCommand("openclaw models auth order set --provider "+provider+" <profileIds...>")}.`,
thrownewError("models auth login requires an interactive TTY.");
627
+
thrownewError(
628
+
`models auth login requires an interactive TTY. In automation, use ${formatCliCommand("openclaw models auth paste-token --provider <provider>")} when token auth is available.`,
thrownewError("Unknown provider. Use --provider <id> to pick a provider plugin.");
659
+
thrownewError(
660
+
`Unknown provider. Run ${formatCliCommand("openclaw models status")} or ${formatCliCommand("openclaw plugins list")} to see available provider plugins.`,
thrownewError("Unknown auth method. Use --method <id> to select one.");
670
+
thrownewError(
671
+
`Unknown auth method. Run ${formatCliCommand("openclaw models auth login --provider "+selectedProvider.id)} without --method to choose interactively.`,
runtime.error(`Environment variable "${gatewayTokenRefEnv}" is missing or empty.`);
88
+
runtime.error(
89
+
`Environment variable "${gatewayTokenRefEnv}" is missing or empty. Export it first, then rerun ${formatCliCommand("openclaw onboard --non-interactive")}.`,
0 commit comments