Synced from monorepo
Changes: - Persist submitter identity for /feedback - Let custom models use rotating tokens from named auth providers - Template stale tool/param name literals in server-native descriptions - Minimal mode commits thinking in full, lookups as one-liners - Tighten durable append internals - Nudge model to end turn on no-op bash commands - Per-fetch signing nonce in the managed-config envelope, with a server-side replay probe - Include working tree in startup status
This commit is contained in:
parent
ba76b0a683
commit
a881e6703f
140 changed files with 6746 additions and 2377 deletions
|
|
@ -534,7 +534,8 @@ mod tests {
|
|||
]);
|
||||
let blocks = extract_content_blocks(&v);
|
||||
assert_eq!(blocks.len(), 2);
|
||||
assert!(matches!(&blocks[0], ContentBlock::Text { text } if text == "a"));
|
||||
assert!(matches!(&blocks[0], ContentBlock::Text { text }
|
||||
if text == "a"));
|
||||
assert!(matches!(&blocks[1], ContentBlock::Image { .. }));
|
||||
}
|
||||
|
||||
|
|
@ -652,7 +653,8 @@ mod tests {
|
|||
assert_eq!(blocks.len(), 2);
|
||||
// First block is the remainder text (field order in JSON objects
|
||||
// is not guaranteed, so just check it's Text and non-empty).
|
||||
assert!(matches!(&blocks[0], ContentBlock::Text { text } if text.contains("summary")));
|
||||
assert!(matches!(&blocks[0], ContentBlock::Text { text }
|
||||
if text.contains("summary")));
|
||||
assert!(matches!(&blocks[1], ContentBlock::Image { .. }));
|
||||
}
|
||||
|
||||
|
|
@ -668,7 +670,8 @@ mod tests {
|
|||
let blocks = extract_content_blocks(&v);
|
||||
// results field → 2 blocks extracted, metadata → remainder text.
|
||||
assert_eq!(blocks.len(), 3);
|
||||
assert!(matches!(&blocks[0], ContentBlock::Text { text } if text.contains("metadata")));
|
||||
assert!(matches!(&blocks[0], ContentBlock::Text { text }
|
||||
if text.contains("metadata")));
|
||||
assert_eq!(blocks[1], ContentBlock::Text { text: "a".into() });
|
||||
assert_eq!(blocks[2], ContentBlock::Text { text: "b".into() });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue