OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[vika][Windows] Relative CLI overrides and frozen card image paths use inconsistent separators

Open openviking-superagent opened this issue 3 weeks ago • 0 comments

Two native Windows path failures in shared Vika code

Checked upstream feat/vika@36d7c8d9ad5b9891738edb9a064d102cf267a5d1. These are inherited by the Windows fork and are not caused by the durable PowerShell tool.

  1. vika/packages/daemon/src/config.mjs checks value.includes(path.sep) before resolving a connector CLI override against projectDir. On Windows, ./custom tools/cli.mjs uses forward slashes, so it is left relative and can resolve against a different process cwd. The existing config.test.mjs test fails on the real Windows report. Accept both separators on Windows and preserve bare PATH commands.
  2. vika/packages/daemon/src/lark.mjs passes path.relative(root, asset.path) to readWorkspaceFile when validating frozen card image assets. On Windows a nested relative path contains backslashes; workspace-file.mjs deliberately rejects backslashes. The real Windows suite reports card_images failures with file_path must be relative to the workspace without traversal or URLs. Convert internally generated relative paths to the slash-based tool format, retaining external input traversal checks. Video-cover CLI paths use the same internal path formatting pattern.

Suggested regression coverage: forward-slash relative CLI override on Windows; actual nested frozen image validation/upload on Windows; preserve traversal and out-of-workspace rejection. POSIX file-mode assertions in upload fixtures must not be interpreted as Windows ACL checks.

Source report and other deployment problems: https://github.com/openviking-superagent/OpenViking/issues/16 . Downstream candidate fixes are being tested; Linux unit results do not establish Windows acceptance.

openviking-superagent avatar Nov 08 '26 11:11 openviking-superagent