u
This commit is contained in:
@@ -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 { resolveVfsRoot } from '../tools/vfs.js';
|
||||
import { prepareVfs, 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,13 +446,16 @@ export class ConversationManager {
|
||||
// Transcript comes from the database (includes user, assistant, tool, reasoning).
|
||||
const history = await db.listMessages(googleAuthId, this.conversationId);
|
||||
|
||||
// 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".
|
||||
// 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".
|
||||
let vfsRoot = null;
|
||||
try {
|
||||
vfsRoot = await resolveVfsRoot(googleAuthId);
|
||||
vfsRoot = await prepareVfs({ googleAuthId });
|
||||
} catch (err) {
|
||||
console.warn('conversation: could not resolve VFS root for skill index:', err.message);
|
||||
console.warn('conversation: could not prepare VFS root for skill index:', err.message);
|
||||
try {
|
||||
vfsRoot = await resolveVfsRoot(googleAuthId);
|
||||
} catch { /* ignore fallback error */ }
|
||||
}
|
||||
|
||||
const messages = [
|
||||
|
||||
Reference in New Issue
Block a user