mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
GitHub's windows-2022 runner checks out with core.autocrlf=true, so every source file has CRLF line ends there. Four tests read a source file and match it with \n and failed only there since the 0.2.16 push (main run 44412709932 and later): - app/host/tests/agent-mcp-model-timeout.test.mjs, "the host hands the model's setting to the agent" (server/index.mjs, server/native-control.mjs) - app/host/tests/monitor-gpu-load-hint.test.mjs, "the web Monitor shows the same sentence on its GPU load label" (terminal/serve/web/app.js) - app/host/tests/shell-languages.test.mjs (src-tauri/src/shell.rs) - terminal/serve/test_web_history.js, run by serve.test_web_history.HistoryInNode (serve/web/app.js) They now read the file with CRLF turned into LF. Reproduced on the owner PC with a checkout made under core.autocrlf=true: the same three host tests and the same history case fail there and pass with LF and, after this change, with CRLF. The product code is not involved; it is the same text. .github/workflows/check.yml: the diagnostic step imported ./apps/host/server/hardware.mjs (ERR_MODULE_NOT_FOUND since the layout move); it is app/host now.