Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

Merge remote-tracking branch 'origin/main' into thinhlpg/8966-prompt-placement

thinhlpg4d6f0cd5f0c0
diff --cc src-tauri/src/core/agent/mod.rs
index 65704b42e,8bf3314f9..ff47a3e72
--- a/src-tauri/src/core/agent/mod.rs
+++ b/src-tauri/src/core/agent/mod.rs
@@@ -40,6 -39,15 +40,19 @@@ pub mod subagent
pub mod todo;
pub mod upstream;
+// Byte-level prefix-stability tests: the regression suite for epic #8956.
+#[cfg(test)]
+mod prefix_stability;
++
+ /// Render a path for embedding in a hook/plugin-tool shell command in tests.
+ ///
+ /// The hook runner hands the command to the resolved shell, which on the
+ /// Windows CI runner is git-bash: a native `C:\Users\...` path reaches it as a
+ /// backslash-escaped string and those escapes are eaten, so the command writes
+ /// to a mangled name and the file the test asserts on never appears. Bash
+ /// accepts forward slashes on Windows, and the quotes keep a path containing
+ /// spaces a single word.
+ #[cfg(test)]
+ pub(crate) fn shell_quoted_path(path: &std::path::Path) -> String {
+ format!("'{}'", path.to_string_lossy().replace('\\', "/"))
+ }