test(core): annotate watchdog test literals

This commit is contained in:
Friel
2026-03-28 11:53:11 -07:00
parent b4ea255a9f
commit 83780ddbff
2 changed files with 7 additions and 5 deletions

View File

@@ -438,7 +438,7 @@ async fn thread_read_loaded_ephemeral_thread_ignores_unrelated_rollout_mentions(
&unrelated_preview,
vec![],
Some("mock_provider"),
None,
/*git_info*/ None,
)?;
let read_id = mcp

View File

@@ -5296,10 +5296,11 @@ async fn unified_exec_rejects_escalated_permissions_when_policy_not_on_request()
async fn root_agent_prompt_only_includes_watchdog_fragment_when_enabled() {
let codex_home = tempfile::tempdir().expect("create temp dir");
let without_watchdog = load_root_agent_prompt(codex_home.path(), false).await;
let without_watchdog =
load_root_agent_prompt(codex_home.path(), /*include_watchdog*/ false).await;
assert!(!without_watchdog.contains("## Watchdogs"));
let with_watchdog = load_root_agent_prompt(codex_home.path(), true).await;
let with_watchdog = load_root_agent_prompt(codex_home.path(), /*include_watchdog*/ true).await;
assert!(with_watchdog.contains("## Watchdogs"));
}
@@ -5307,9 +5308,10 @@ async fn root_agent_prompt_only_includes_watchdog_fragment_when_enabled() {
async fn subagent_prompt_only_includes_watchdog_fragment_when_enabled() {
let codex_home = tempfile::tempdir().expect("create temp dir");
let without_watchdog = load_subagent_prompt(codex_home.path(), false).await;
let without_watchdog =
load_subagent_prompt(codex_home.path(), /*include_watchdog*/ false).await;
assert!(!without_watchdog.contains("## Watchdog-only Guidance"));
let with_watchdog = load_subagent_prompt(codex_home.path(), true).await;
let with_watchdog = load_subagent_prompt(codex_home.path(), /*include_watchdog*/ true).await;
assert!(with_watchdog.contains("## Watchdog-only Guidance"));
}