fix: thread workspace auth evidence through model auth

This commit is contained in:
Shakker
2026-04-29 20:26:03 +01:00
parent 1db2e63519
commit c4e249114d
10 changed files with 173 additions and 14 deletions

View File

@@ -1116,7 +1116,9 @@ async function buildDynamicTools(input: DynamicToolBuildParams) {
: undefined,
modelApi: params.model.api,
modelContextWindowTokens: params.model.contextWindow,
modelAuthMode: resolveModelAuthMode(params.model.provider, params.config),
modelAuthMode: resolveModelAuthMode(params.model.provider, params.config, undefined, {
workspaceDir: input.effectiveWorkspace,
}),
currentChannelId: params.currentChannelId,
currentThreadTs: params.currentThreadTs,
currentMessageId: params.currentMessageId,