fix(#754): missing_credentials hint now newline-delimited so JSON hint field is non-null

This commit is contained in:
YeonGyu-Kim
2026-05-26 21:23:03 +09:00
parent e93271356f
commit c70312bd04
3 changed files with 19 additions and 4 deletions

View File

@@ -1649,10 +1649,15 @@ NO_EQUALS_LINE
rendered.starts_with("missing Anthropic credentials;"),
"canonical base message should still lead the rendered error: {rendered}"
);
// #754: hint delimiter changed from " — hint: " to "\n" so split_error_hint works
assert!(
rendered.contains(" — hint: I see OPENAI_API_KEY is set"),
rendered.contains("I see OPENAI_API_KEY is set"),
"rendered error should carry the env-driven hint: {rendered}"
);
assert!(
rendered.contains('\n'),
"rendered error must use newline separator (#754): {rendered}"
);
}
#[test]