(hint: Option<ToolHint>, no_history: bool)
| 333 | } |
| 334 | |
| 335 | fn codex_subagent_start_context(hint: Option<ToolHint>, no_history: bool) -> String { |
| 336 | let mut context = String::new(); |
| 337 | if no_history { |
| 338 | context.push_str("new/no-history subagent: recover only relevant project memory or prior-session context before assuming missing decisions.\n"); |
| 339 | } |
| 340 | context.push_str(CODEX_SUBAGENT_START_CONTEXT); |
| 341 | context.push('\n'); |
| 342 | if let Some(hint) = hint { |
| 343 | context.push('\n'); |
| 344 | context.push_str(&format_tool_hint(&hint)); |
| 345 | context.push('\n'); |
| 346 | } |
| 347 | context |
| 348 | } |
| 349 | |
| 350 | fn codex_subagent_needs_context(parsed: &Value) -> bool { |
| 351 | bool_field( |
no test coverage detected