test(app-server): annotate inbox resume literals

This commit is contained in:
Friel
2026-03-28 11:56:40 -07:00
parent ebc45db194
commit 73418e2882
2 changed files with 28 additions and 11 deletions

View File

@@ -888,7 +888,7 @@ async fn turn_start_uses_migrated_pragmatic_personality_without_override_v2() ->
"2025-01-01T00:00:00Z",
"history user message",
Some("mock_provider"),
None,
/*git_info*/ None,
)?;
let mut mcp = McpProcess::new(codex_home.path()).await?;
@@ -1025,9 +1025,19 @@ async fn turn_start_exec_approval_toggle_v2() -> Result<()> {
// Mock server: first turn requests a shell call (elicitation), then completes.
// Second turn same, but we'll set approval_policy=never to avoid elicitation.
let responses = vec![
create_shell_command_sse_response(fast_shell_command(), None, Some(1000), "call1")?,
create_shell_command_sse_response(
fast_shell_command(),
/*workdir*/ None,
Some(1000),
"call1",
)?,
create_final_assistant_message_sse_response("done 1")?,
create_shell_command_sse_response(fast_shell_command(), None, Some(1000), "call2")?,
create_shell_command_sse_response(
fast_shell_command(),
/*workdir*/ None,
Some(1000),
"call2",
)?,
create_final_assistant_message_sse_response("done 2")?,
];
let server = create_mock_responses_server_sequence(responses).await;