A real-LLM session built from the repo config, over a throwaway workspace.
()
| 51 | |
| 52 | /// A real-LLM session built from the repo config, over a throwaway workspace. |
| 53 | async fn real_session() -> (AgentSession, tempfile::TempDir) { |
| 54 | let path = repo_config_path(); |
| 55 | let config = CodeConfig::from_file(&path) |
| 56 | .unwrap_or_else(|e| panic!("failed to load {}: {e}", path.display())); |
| 57 | let agent = Agent::from_config(config) |
| 58 | .await |
| 59 | .expect("build agent from real config"); |
| 60 | let workspace = tempfile::tempdir().expect("temp workspace"); |
| 61 | let session = agent |
| 62 | .session(workspace.path().to_string_lossy().to_string(), None) |
| 63 | .expect("create session"); |
| 64 | (session, workspace) |
| 65 | } |
| 66 | |
| 67 | /// The facade's `phase` runs a real fan-out and emits PhaseStart/PhaseEnd |
| 68 | /// milestones on the WorkflowEvent stream. |
no test coverage detected