This commit is contained in:
seb
2026-10-06 10:53:45 +02:00
parent 1be561376e
commit 1d1017e44b
5 changed files with 30 additions and 49 deletions

View File

@@ -11,7 +11,7 @@ import { createDashbackRequestTool } from '../tools/dashback-request.js';
import { createAskUserTool } from '../tools/ask-user.js';
import { createJavascriptExecuteTool } from '../tools/javascript.js';
import { createResetVfsTool } from '../tools/reset-vfs.js';
import { prepareVfs, resolveVfsRoot } from '../tools/vfs.js';
import { resolveVfsRoot } from '../tools/vfs.js';
import { listSkillFiles } from '../tools/skill.js';
import { createApiSuggestionsOrIssuesTool } from '../tools/apisuggestionsorissues.js';
import { createFindFilesTool } from '../tools/find-files.js';
@@ -446,16 +446,13 @@ export class ConversationManager {
// Transcript comes from the database (includes user, assistant, tool, reasoning).
const history = await db.listMessages(googleAuthId, this.conversationId);
// Resolve and prepare the VFS root so the prompt can list the company's SKILL files.
// A failure here must not abort the turn — the prompt simply falls back to "no skills".
// Resolve the VFS root so the prompt can list the company's SKILL files. A failure
// here must not abort the turn — the prompt simply falls back to "no skills".
let vfsRoot = null;
try {
vfsRoot = await prepareVfs({ googleAuthId });
vfsRoot = await resolveVfsRoot(googleAuthId);
} catch (err) {
console.warn('conversation: could not prepare VFS root for skill index:', err.message);
try {
vfsRoot = await resolveVfsRoot(googleAuthId);
} catch { /* ignore fallback error */ }
console.warn('conversation: could not resolve VFS root for skill index:', err.message);
}
const messages = [