huskies: merge 927

This commit is contained in:
dave
2026-05-12 17:49:44 +00:00
parent b8945654bf
commit 03a99b3cf1
33 changed files with 119 additions and 25 deletions
@@ -20,6 +20,7 @@ const MAX_GATE_OUTPUT_BYTES: usize = 8_000;
/// Truncate gate output to [`MAX_GATE_OUTPUT_BYTES`], keeping the **tail**
/// (where compiler errors and test failures are reported).
#[allow(clippy::string_slice)] // adjusted is walked forward to a char boundary before slicing
fn truncate_gate_output(output: &str) -> &str {
if output.len() <= MAX_GATE_OUTPUT_BYTES {
return output;
+1
View File
@@ -31,6 +31,7 @@ use super::super::types::StoryAgent;
const GATE_OUTPUT_PROMPT_BYTES: usize = 3_000;
/// Truncate `output` to at most [`GATE_OUTPUT_PROMPT_BYTES`], keeping the tail.
#[allow(clippy::string_slice)] // adjusted is walked forward to a char boundary before slicing
fn truncate_for_system_prompt(output: &str) -> &str {
if output.len() <= GATE_OUTPUT_PROMPT_BYTES {
return output;