Make it startable from playwright and also isolate (#5016)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2025-10-06 20:59:26 -04:00
committed by GitHub
parent 1690cf9091
commit d3a222ddbf
22 changed files with 150 additions and 144 deletions
+2 -4
View File
@@ -1,8 +1,8 @@
use crate::config::paths::Paths;
use anyhow::{anyhow, Context, Result};
use async_trait::async_trait;
use axum::http;
use chrono::{DateTime, Utc};
use etcetera::{choose_app_strategy, AppStrategy};
use reqwest::Client;
use serde::{Deserialize, Serialize};
use serde_json::Value;
@@ -81,9 +81,7 @@ struct DiskCache {
impl DiskCache {
fn new() -> Self {
let cache_path = choose_app_strategy(crate::config::APP_STRATEGY.clone())
.expect("goose requires a home dir")
.in_config_dir("githubcopilot/info.json");
let cache_path = Paths::in_config_dir("githubcopilot/info.json");
Self { cache_path }
}