huskies: merge 469_bug_scaffold_missing_rate_limit_notifications_and_timezone_in_default_project_toml
This commit is contained in:
@@ -107,6 +107,14 @@ const DEFAULT_PROJECT_AGENTS_TOML: &str = r#"# Project-wide default QA mode: "se
|
|||||||
# Per-story `qa` front matter overrides this setting.
|
# Per-story `qa` front matter overrides this setting.
|
||||||
default_qa = "server"
|
default_qa = "server"
|
||||||
|
|
||||||
|
# Suppress soft rate-limit warning notifications in chat.
|
||||||
|
# Hard blocks and story-blocked notifications are always sent.
|
||||||
|
# rate_limit_notifications = true
|
||||||
|
|
||||||
|
# IANA timezone for timer scheduling (e.g. "Europe/London", "America/New_York").
|
||||||
|
# Timer HH:MM inputs are interpreted in this timezone.
|
||||||
|
# timezone = "America/New_York"
|
||||||
|
|
||||||
[[agent]]
|
[[agent]]
|
||||||
name = "coder-1"
|
name = "coder-1"
|
||||||
stage = "coder"
|
stage = "coder"
|
||||||
@@ -560,6 +568,22 @@ mod tests {
|
|||||||
assert!(content.contains("model = \"sonnet\""));
|
assert!(content.contains("model = \"sonnet\""));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn scaffold_project_toml_contains_rate_limit_and_timezone_comments() {
|
||||||
|
let dir = tempdir().unwrap();
|
||||||
|
scaffold_story_kit(dir.path(), 3001).unwrap();
|
||||||
|
|
||||||
|
let content = fs::read_to_string(dir.path().join(".huskies/project.toml")).unwrap();
|
||||||
|
assert!(
|
||||||
|
content.contains("rate_limit_notifications"),
|
||||||
|
"project.toml scaffold should document rate_limit_notifications"
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
content.contains("timezone"),
|
||||||
|
"project.toml scaffold should document timezone"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn scaffold_context_is_blank_template_not_story_kit_content() {
|
fn scaffold_context_is_blank_template_not_story_kit_content() {
|
||||||
let dir = tempdir().unwrap();
|
let dir = tempdir().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user