Made the tests pass on Windows & fixed special characters in environment variable names (#1065)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-15 19:13:44 +02:00
1 parent d8071910d9
commit 45c3500623
5 files changed
+74 -31

No files matched your search

@@ -61,6 +61,8 @@
- Fixed the security notice about removed instructions (prompt injection) appearing only minutes later while AI Studio updated a data source in the background. The notice also mixed your own attachments with files of the data source. Now each notice appears as soon as AI Studio has read the content, for example, the attachments of your message, and it names only that content.
- Fixed the security notice about removed instructions (prompt injection) appearing several times for one answer when AI Studio checks which passages of your data sources fit your question: once for every passage it checked, and once more for all of them together. You now get one notice per answer, and a file counts once, however many of its passages were affected.
- Fixed the example configuration for IT departments, which spelled llama.cpp in a way AI Studio does not accept. AI Studio ignored a self-hosted provider set up with that spelling. The example now also names only the self-hosted servers which can create embeddings or transcribe audio.
- Fixed building AI Studio from source on Windows, where the checks that run before every build failed because two of them expected the line breaks and file paths of macOS and Linux. Thanks, Paul Koudelka (`PaulKoudelka`), for this contribution.
- Fixed a problem on Windows where AI Studio could fail to read the configuration of your organization when the name of an environment variable on your computer contained umlauts or other special characters.
- Updated the code contributions on the supporters page, which now thank everyone who has contributed code to AI Studio so far.
- Upgraded several libraries to improve security.
- Upgraded to Rust v1.99.0
+11 -2
View File
@@ -66,7 +66,16 @@ public static class CapabilitySnapshot
/// </remarks>
private const string NO_SYSTEM_PROMPT_ROLE = "(unknown)";
private const string HEADER =
/// <summary>
/// The comment block every snapshot starts with.
/// </summary>
/// <remarks>
/// A raw string literal takes its line breaks from this source file as it was checked out, and Git
/// for Windows checks it out with CRLF unless told otherwise. The snapshot has no carriage returns,
/// so the header must not bring any along: otherwise no snapshot on Windows ever matches, and the
/// failure names no model at all.
/// </remarks>
private static readonly string HEADER =
"""
# What the rules answer, for every model of the corpus.
#
@@ -93,7 +102,7 @@ public static class CapabilitySnapshot
# what each of them must answer, but it states capabilities alone.
#
""";
""".ReplaceLineEndings("\n");
/// <summary>
/// The directory this source file lives in, filled in by the compiler.