fix: clarify context-file path guard boolean (openclaw#14903) thanks @0xRaini

This commit is contained in:
Gustavo Madeira Santana
2026-02-12 15:26:05 -05:00
parent 2b38e5b892
commit 25856b863d

View File

@@ -551,7 +551,7 @@ export function buildAgentSystemPrompt(params: {
const contextFiles = params.contextFiles ?? [];
const validContextFiles = contextFiles.filter(
(file) => typeof file.path === "string" && file.path.trim(),
(file) => typeof file.path === "string" && file.path.trim().length > 0,
);
if (validContextFiles.length > 0) {
const hasSoulFile = validContextFiles.some((file) => {