fix(tools): harden schemas and oauth tool names

This commit is contained in:
Peter Steinberger
2026-01-10 03:05:56 +00:00
parent f241859c98
commit cc1c5f800f
4 changed files with 74 additions and 41 deletions

View File

@@ -59,6 +59,7 @@ import {
ensureAuthProfileStore,
getApiKeyForModel,
resolveAuthProfileOrder,
resolveModelAuthMode,
} from "./model-auth.js";
import { ensureClawdbotModelsJson } from "./models-config.js";
import {
@@ -853,6 +854,8 @@ export async function compactEmbeddedPiSession(params: {
agentDir,
config: params.config,
abortSignal: runAbortController.signal,
modelProvider: model.provider,
modelAuthMode: resolveModelAuthMode(model.provider, params.config),
// No currentChannelId/currentThreadTs for compaction - not in message context
});
const machineName = await getMachineDisplayName();
@@ -1234,6 +1237,8 @@ export async function runEmbeddedPiAgent(params: {
agentDir,
config: params.config,
abortSignal: runAbortController.signal,
modelProvider: model.provider,
modelAuthMode: resolveModelAuthMode(model.provider, params.config),
currentChannelId: params.currentChannelId,
currentThreadTs: params.currentThreadTs,
replyToMode: params.replyToMode,