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
? s.pinnedTools.filter((name): name is string=>typeofname==="string")
1082
+
: undefined,
1072
1083
};
1073
1084
}
1074
1085
@@ -1084,7 +1095,7 @@ function coerceLocalSettings(
1084
1095
{
1085
1096
path,
1086
1097
message: `Local settings in ${path} is not a JSON object.`,
1087
-
fix: `Edit ${path} to a JSON object with only: provider, model, reasoningEffort, mcpServers, sessionMode, env.`,
1098
+
fix: `Edit ${path} to a JSON object with only: provider, model, reasoningEffort, mcpServers, sessionMode, env, pinnedTools.`,
1088
1099
},
1089
1100
],
1090
1101
};
@@ -1141,7 +1152,7 @@ function coerceLocalSettings(
1141
1152
diagnostics.push({
1142
1153
path,
1143
1154
message: `Local settings in ${path} had invalid values and were partially ignored.`,
1144
-
fix: `Edit ${path}: only "provider", "model", "reasoningEffort", "mcpServers", "sessionMode", and "env" are allowed (no credentials).`,
1155
+
fix: `Edit ${path}: only "provider", "model", "reasoningEffort", "mcpServers", "sessionMode", "env", and "pinnedTools" are allowed (no credentials).`,
1145
1156
});
1146
1157
}
1147
1158
constsettings=pickDefined(optional);
@@ -1336,7 +1347,7 @@ export async function saveLocalSettings(
1336
1347
): Promise<void>{
1337
1348
if(!isLocalSettings(local)){
1338
1349
thrownewError(
1339
-
`Refusing to write invalid local settings: only "provider", "model", "reasoningEffort", "mcpServers", and "sessionMode" are allowed.`,
1350
+
`Refusing to write invalid local settings: only "provider", "model", "reasoningEffort", "mcpServers", "sessionMode", "env", and "pinnedTools" are allowed.`,
0 commit comments