From 8f89292e7b5e18c6e503dca44e4a18371ef763b2 Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Fri, 9 Oct 2026 15:08:07 -0400 Subject: [PATCH 1/9] goose-cli: GOOSE_HEADLESS_CACHE_TTL opts a headless run out of the 5m cache TTL clamp --- crates/goose-cli/src/session/builder.rs | 49 ++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/crates/goose-cli/src/session/builder.rs b/crates/goose-cli/src/session/builder.rs index a42239ce1f83..296e5c692ab9 100644 --- a/crates/goose-cli/src/session/builder.rs +++ b/crates/goose-cli/src/session/builder.rs @@ -288,6 +288,20 @@ fn validate_provider_override_context( Ok(()) } +/// `GOOSE_HEADLESS_CACHE_TTL` ("5m" or "1h"): the prompt-cache TTL a non-interactive run uses +/// instead of the default clamp to 5m. Read from the environment only, so it is a deliberate +/// per-invocation choice and never inherited from a user's interactive config. +fn headless_cache_ttl_opt_in() -> Option { + let ttl = std::env::var("GOOSE_HEADLESS_CACHE_TTL").ok()?; + match ttl.trim().to_lowercase().as_str() { + v @ ("5m" | "1h") => Some(v.to_string()), + other => { + tracing::warn!("ignoring GOOSE_HEADLESS_CACHE_TTL={other:?}: expected '5m' or '1h'"); + None + } + } +} + async fn resolve_provider_and_model( session_config: &SessionBuilderConfig, config: &Config, @@ -436,7 +450,13 @@ async fn resolve_provider_and_model( }; if !session_config.interactive { - model_config = model_config.with_cache_ttl_clamped(); + model_config = match headless_cache_ttl_opt_in() { + // An explicit opt-in for headless runs that are resumed at intervals (e.g. a standing + // session woken by a timer): those idle between runs, which is exactly when a 1h TTL + // pays for its 2x write. Without the opt-in, burst-only headless runs keep the clamp. + Some(ttl) => model_config.with_cache_ttl(&ttl), + None => model_config.with_cache_ttl_clamped(), + }; } ResolvedProviderConfig { @@ -1546,6 +1566,33 @@ mod tests { assert_eq!(resolved.model_config.cache_ttl().as_deref(), Some("5m")); } + #[tokio::test] + async fn headless_cache_ttl_opt_in_overrides_clamp() { + let _guard = env_lock::lock_env([ + ("GOOSE_PROVIDER", None::<&str>), + ("GOOSE_MODEL", None::<&str>), + ("GOOSE_CACHE_TTL", None::<&str>), + ("GOOSE_HEADLESS_CACHE_TTL", Some("1h")), + ]); + let temp_dir = TempDir::new().unwrap(); + let config = test_config(&temp_dir); + let saved = goose_providers::model::ModelConfig::new("claude-sonnet-4-6"); + + let resolved = resolve_provider_and_model( + &SessionBuilderConfig { + resume: true, + interactive: false, + ..SessionBuilderConfig::default() + }, + &config, + Some("anthropic".to_string()), + Some(saved), + ) + .await; + + assert_eq!(resolved.model_config.cache_ttl().as_deref(), Some("1h")); + } + #[test] fn resumed_provider_override_rejects_context_owning_provider() { let error = validate_provider_override_context( From f74413bbc269c8192c606e1cb6e47be8c2185d14 Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Fri, 9 Oct 2026 15:59:26 -0400 Subject: [PATCH 2/9] gcp_vertex_ai: GCP_VERTEX_HOST routes requests through a proxy; GCP_VERTEX_SESSION_HEADER renames the session header --- crates/goose/src/providers/gcpvertexai.rs | 55 +++++++++++++++++++++-- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/crates/goose/src/providers/gcpvertexai.rs b/crates/goose/src/providers/gcpvertexai.rs index f8ff013ff574..8f6fa103881a 100644 --- a/crates/goose/src/providers/gcpvertexai.rs +++ b/crates/goose/src/providers/gcpvertexai.rs @@ -181,6 +181,9 @@ pub struct GcpVertexAIProvider { name: String, #[serde(skip)] request_builder: RequestBuilderDecorator, + /// True when GCP_VERTEX_HOST is set: every location then goes to that host. + #[serde(skip)] + host_overridden: bool, } impl GcpVertexAIProvider { @@ -197,7 +200,25 @@ impl GcpVertexAIProvider { let config = crate::config::Config::global(); let project_id = config.get_param("GCP_PROJECT_ID")?; let location = Self::determine_location(config)?; - let host = Self::build_host_url(&location); + // GCP_VERTEX_HOST points every request at a proxy that speaks the Vertex paths (for + // example a local failover proxy) instead of Google's regional hosts. + let host_override: Option = config + .get_param("GCP_VERTEX_HOST") + .ok() + .map(|h: String| h.trim().trim_end_matches('/').to_string()) + .filter(|h| !h.is_empty()); + let host_overridden = host_override.is_some(); + let host = host_override.unwrap_or_else(|| Self::build_host_url(&location)); + // GCP_VERTEX_SESSION_HEADER renames the session-id header, so a proxy that keys session + // stickiness on its own header name (e.g. x-opencode-session) can see goose sessions. + let session_header: Option = config + .get_param("GCP_VERTEX_SESSION_HEADER") + .ok() + .filter(|h: &String| !h.trim().is_empty()); + let request_builder = crate::session_context::session_id_request_builder_with_header_override( + session_header.as_deref().map(str::trim), + ) + .map_err(|e| anyhow::anyhow!("invalid GCP_VERTEX_SESSION_HEADER: {e}"))?; let client = Client::builder() .connect_timeout(Duration::from_secs(DEFAULT_CONNECT_TIMEOUT_SECS)) @@ -217,7 +238,8 @@ impl GcpVertexAIProvider { location, retry_config, name: GCP_VERTEX_AI_PROVIDER_NAME.to_string(), - request_builder: crate::session_context::session_id_request_builder(), + request_builder, + host_overridden, }) } @@ -293,9 +315,16 @@ impl GcpVertexAIProvider { location: &str, streaming: bool, ) -> Result { + // With a host override, never switch to a Google regional host for another location; the + // location stays in the path and the proxy forwards it. + let configured_location = if self.host_overridden { + location + } else { + self.location.as_str() + }; build_vertex_url( &self.host, - &self.location, + configured_location, &self.project_id, &model.model_name, provider, @@ -801,6 +830,26 @@ mod tests { ); } + #[test] + fn test_build_vertex_url_proxy_host_keeps_target_location_in_path() { + // With GCP_VERTEX_HOST set, build_request_url passes the target location as the + // configured one, so the proxy host is kept and the location only appears in the path. + let url = build_vertex_url( + "http://127.0.0.1:8789", + "us-east5", + "test-project", + "claude-opus-5-5", + ModelProvider::Anthropic, + "us-east5", + true, + ) + .unwrap(); + assert_eq!( + url.as_str(), + "http://127.0.0.1:8789/v1/projects/test-project/locations/us-east5/publishers/anthropic/models/claude-opus-5-5:streamRawPredict" + ); + } + #[test] fn test_build_vertex_url_endpoints() { let anthropic_url = build_vertex_url( From 246529d94261cb08e475da219d13ebabc73462c9 Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Fri, 9 Oct 2026 17:56:32 -0400 Subject: [PATCH 3/9] ci: patched-release workflow builds this branch with upstream's Linux CLI build and publishes it --- .github/workflows/patched-release.yml | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/patched-release.yml diff --git a/.github/workflows/patched-release.yml b/.github/workflows/patched-release.yml new file mode 100644 index 000000000000..0b40ec466388 --- /dev/null +++ b/.github/workflows/patched-release.yml @@ -0,0 +1,48 @@ +# Builds this branch (an upstream release tag plus a few local patches) with upstream's own +# Linux CLI build workflow, so the result differs from the upstream release only by the patches, +# and publishes the gnu tarballs as a release of this fork. +# +# Run: gh workflow run patched-release.yml --ref -f tag=v1.54.0-patched.1 +on: + workflow_dispatch: + inputs: + tag: + description: "Release tag to create, e.g. v1.54.0-patched.1" + required: true + type: string + +name: "Patched release" + +permissions: + contents: read + +jobs: + build: + uses: ./.github/workflows/build-cli-linux.yml + permissions: + contents: read + with: + ref: ${{ github.sha }} + + release: + needs: build + if: ${{ !cancelled() }} + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/download-artifact@v4 + with: + pattern: goose-*-unknown-linux-gnu + merge-multiple: true + path: dist + - name: Create release + env: + GH_TOKEN: ${{ github.token }} + TAG: ${{ inputs.tag }} + run: | + ls -la dist + test -f dist/goose-aarch64-unknown-linux-gnu.tar.gz + (cd dist && sha256sum * > SHA256SUMS) + gh release create "$TAG" dist/* --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" \ + --title "$TAG" --notes "Upstream $(echo "$TAG" | sed 's/-patched.*//') plus the commits on branch ${GITHUB_REF_NAME} after that tag." From 533e46b2b3f4e881c9ae7a67c3175b1b720f8202 Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Fri, 9 Oct 2026 17:57:07 -0400 Subject: [PATCH 4/9] ci: trigger patched-release on patched-* tags (workflow_dispatch needs the default branch) --- .github/workflows/patched-release.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/patched-release.yml b/.github/workflows/patched-release.yml index 0b40ec466388..2939eb8bed71 100644 --- a/.github/workflows/patched-release.yml +++ b/.github/workflows/patched-release.yml @@ -2,14 +2,12 @@ # Linux CLI build workflow, so the result differs from the upstream release only by the patches, # and publishes the gnu tarballs as a release of this fork. # -# Run: gh workflow run patched-release.yml --ref -f tag=v1.54.0-patched.1 +# Run: push a tag named patched-., e.g. patched-1.54.0.1, on the patched branch. +# The name must not start with "v": upstream's release.yml and publish-docker.yml fire on v* tags. on: - workflow_dispatch: - inputs: - tag: - description: "Release tag to create, e.g. v1.54.0-patched.1" - required: true - type: string + push: + tags: + - "patched-*" name: "Patched release" @@ -39,10 +37,10 @@ jobs: - name: Create release env: GH_TOKEN: ${{ github.token }} - TAG: ${{ inputs.tag }} + TAG: ${{ github.ref_name }} run: | ls -la dist test -f dist/goose-aarch64-unknown-linux-gnu.tar.gz (cd dist && sha256sum * > SHA256SUMS) gh release create "$TAG" dist/* --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" \ - --title "$TAG" --notes "Upstream $(echo "$TAG" | sed 's/-patched.*//') plus the commits on branch ${GITHUB_REF_NAME} after that tag." + --title "$TAG" --notes "Upstream goose v$(echo "$TAG" | sed -E 's/^patched-([0-9]+[.][0-9]+[.][0-9]+).*/\1/') plus the local patches committed after that tag at $GITHUB_SHA." From 1d801cca5e47326946a77752f63393072ed0196a Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Fri, 9 Oct 2026 18:41:39 -0400 Subject: [PATCH 5/9] gcpauth: GCP_AUTH_SCOPES sets the scopes for authorized-user token refresh --- crates/goose/src/providers/gcpauth.rs | 35 ++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/crates/goose/src/providers/gcpauth.rs b/crates/goose/src/providers/gcpauth.rs index 4006f3a87240..31741d7c05f2 100644 --- a/crates/goose/src/providers/gcpauth.rs +++ b/crates/goose/src/providers/gcpauth.rs @@ -344,6 +344,22 @@ struct TokenResponse { /// automatically selecting the appropriate method based on available credentials. /// ``` #[derive(Debug)] +const DEFAULT_SCOPE: &str = "https://www.googleapis.com/auth/cloud-platform"; + +/// Scopes requested when refreshing authorized-user (gcloud ADC) credentials. +/// `GCP_AUTH_SCOPES` (space-separated; env or config.yaml) replaces the default cloud-platform scope. +/// A gateway in front of Vertex that attributes requests by identity needs +/// `https://www.googleapis.com/auth/userinfo.email` as well; Vertex itself does +/// not. The scopes must be a subset of what the refresh token was granted. +fn authorized_user_scope() -> String { + crate::config::Config::global() + .get_param::("GCP_AUTH_SCOPES") + .ok() + .map(|s| s.split_whitespace().collect::>().join(" ")) + .filter(|s| !s.is_empty()) + .unwrap_or_else(|| DEFAULT_SCOPE.to_string()) +} + pub struct GcpAuth { /// The loaded credentials (service account or authorized user) credentials: RwLock, @@ -562,12 +578,13 @@ impl GcpAuth { &self, creds: &AuthorizedUserCredentials, ) -> Result { + let scope = authorized_user_scope(); let params = [ ("client_id", creds.client_id.as_str()), ("client_secret", creds.client_secret.as_str()), ("refresh_token", creds.refresh_token.as_str()), ("grant_type", "refresh_token"), - ("scope", "https://www.googleapis.com/auth/cloud-platform"), + ("scope", &scope), ]; self.exchange_token(&creds.token_uri, ¶ms).await @@ -619,6 +636,22 @@ mod tests { // Only import what we need use wiremock::{Mock, MockServer, ResponseTemplate}; + #[test] + fn authorized_user_scope_defaults_and_overrides() { + { + let _guard = env_lock::lock_env([("GCP_AUTH_SCOPES", None::<&str>)]); + assert_eq!(authorized_user_scope(), DEFAULT_SCOPE); + } + let _guard = env_lock::lock_env([( + "GCP_AUTH_SCOPES", + Some(" https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email "), + )]); + assert_eq!( + authorized_user_scope(), + "https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email" + ); + } + mockall::mock! { #[derive(Debug)] FilesystemOpsMock {} From 6114f9097a95084316159191690466eaab816ef9 Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Fri, 9 Oct 2026 18:41:49 -0400 Subject: [PATCH 6/9] ci: run the patched modules' unit tests before releasing --- .github/workflows/patched-release.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/patched-release.yml b/.github/workflows/patched-release.yml index 2939eb8bed71..ebbc9fbb07ff 100644 --- a/.github/workflows/patched-release.yml +++ b/.github/workflows/patched-release.yml @@ -22,9 +22,24 @@ jobs: with: ref: ${{ github.sha }} + # Unit tests for the patched code paths, on the same toolchain (rust-toolchain.toml). + test-patches: + runs-on: ubuntu-24.04-arm + steps: + - uses: actions/checkout@v4 + - name: Dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential pkg-config libssl-dev libdbus-1-dev libxcb1-dev protobuf-compiler cmake clang libclang-dev + - name: Test patched modules + run: | + F=code-mode,tree-sitter,aws-providers,telemetry,otel,rustls-tls,live-voice,system-keyring,platform-apps,chat-recall,scheduler,acp-http,online-model-meta + cargo test --release -p goose --features "$F" --lib -- gcpvertexai gcpauth + cargo test --release -p goose-cli --lib -- cache_ttl + release: - needs: build - if: ${{ !cancelled() }} + needs: [build, test-patches] + if: ${{ !cancelled() && needs.test-patches.result == 'success' }} runs-on: ubuntu-latest permissions: contents: write From ed800e0654838562ecadc55c40bbf750dc01ce00 Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Fri, 9 Oct 2026 18:53:35 -0400 Subject: [PATCH 7/9] gcpauth: keep GcpAuth's doc comment and derive attached to the struct --- crates/goose/src/providers/gcpauth.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/crates/goose/src/providers/gcpauth.rs b/crates/goose/src/providers/gcpauth.rs index 31741d7c05f2..ad6385390ac4 100644 --- a/crates/goose/src/providers/gcpauth.rs +++ b/crates/goose/src/providers/gcpauth.rs @@ -332,18 +332,6 @@ struct TokenResponse { token_type: String, } -/// Handles authentication with Google Cloud Platform services. -/// -/// This struct manages the complete authentication lifecycle including: -/// - Loading and validating credentials -/// - Creating and refreshing tokens -/// - Caching tokens for efficient reuse -/// - Managing concurrent access through atomic operations -/// -/// It supports both service account and authorized user authentication methods, -/// automatically selecting the appropriate method based on available credentials. -/// ``` -#[derive(Debug)] const DEFAULT_SCOPE: &str = "https://www.googleapis.com/auth/cloud-platform"; /// Scopes requested when refreshing authorized-user (gcloud ADC) credentials. @@ -360,6 +348,18 @@ fn authorized_user_scope() -> String { .unwrap_or_else(|| DEFAULT_SCOPE.to_string()) } +/// Handles authentication with Google Cloud Platform services. +/// +/// This struct manages the complete authentication lifecycle including: +/// - Loading and validating credentials +/// - Creating and refreshing tokens +/// - Caching tokens for efficient reuse +/// - Managing concurrent access through atomic operations +/// +/// It supports both service account and authorized user authentication methods, +/// automatically selecting the appropriate method based on available credentials. +/// ``` +#[derive(Debug)] pub struct GcpAuth { /// The loaded credentials (service account or authorized user) credentials: RwLock, From 611e9104cb8166c3a0194888c152769aea8febf7 Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Sun, 11 Oct 2026 01:31:21 -0400 Subject: [PATCH 8/9] ci: run the process-group and vendored acp-http tests, and check the vendored crate is in the graph, before releasing --- .github/workflows/patched-release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/patched-release.yml b/.github/workflows/patched-release.yml index ebbc9fbb07ff..b4577c6083d4 100644 --- a/.github/workflows/patched-release.yml +++ b/.github/workflows/patched-release.yml @@ -22,7 +22,7 @@ jobs: with: ref: ${{ github.sha }} - # Unit tests for the patched code paths, on the same toolchain (rust-toolchain.toml). + # Unit tests for the patched code paths (including the vendored acp-http crate), on the same toolchain. test-patches: runs-on: ubuntu-24.04-arm steps: @@ -31,11 +31,18 @@ jobs: run: | sudo apt-get update sudo apt-get install -y build-essential pkg-config libssl-dev libdbus-1-dev libxcb1-dev protobuf-compiler cmake clang libclang-dev + - name: Vendored acp-http is the one in the build graph + # An unused [patch] is only a cargo warning; fail loudly instead. --locked also + # fails if Cargo.lock is stale (build-cli-linux.yml does not pass --locked). + run: | + cargo tree --locked -p goose-cli --features acp-http -i agent-client-protocol-http --depth 0 \ + | tee /dev/stderr | grep -F 'vendor/agent-client-protocol-http' - name: Test patched modules run: | F=code-mode,tree-sitter,aws-providers,telemetry,otel,rustls-tls,live-voice,system-keyring,platform-apps,chat-recall,scheduler,acp-http,online-model-meta - cargo test --release -p goose --features "$F" --lib -- gcpvertexai gcpauth + cargo test --release -p goose --features "$F" --lib -- gcpvertexai gcpauth process_group cargo test --release -p goose-cli --lib -- cache_ttl + cargo test --release -p agent-client-protocol-http --features server --lib release: needs: [build, test-patches] From 80e01c5147163fa33347f6bb139bdfaad7d9e121 Mon Sep 17 00:00:00 2001 From: Jonathan Mohrbacher Date: Sun, 22 Nov 2026 11:52:52 -0500 Subject: [PATCH 9/9] fork-sync: v1.60.1 upstream-sync report (fork watcher) --- fork-sync/v1.60.1.md | 89 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 fork-sync/v1.60.1.md diff --git a/fork-sync/v1.60.1.md b/fork-sync/v1.60.1.md new file mode 100644 index 000000000000..483d9436fa8c --- /dev/null +++ b/fork-sync/v1.60.1.md @@ -0,0 +1,89 @@ +# upstream-sync v1.60.1 + +26 of 34 patches failed to apply onto v1.60.1 (stack from v1.54.0). + +The upgrade worker's brief is `docs/fork/UPGRADING.md` on the fork-main branch (conflicted path). +`fork-sync/` is the watcher's report; L1 drops it when it tags. + +| # | commit | patch | status | conflicting files | conflicts with bare v1.60.1 | +|---|---|---|---|---|---| +| 1 | `72de13c016b1` | goose-cli: GOOSE_HEADLESS_CACHE_TTL opts a headless run out of the 5m cache TTL clamp | applied | - | no | +| 2 | `680fffe606e2` | gcp_vertex_ai: GCP_VERTEX_HOST routes requests through a proxy; GCP_VERTEX_SESSION_HEADER renames the session header | applied | - | no | +| 3 | `ed1490e26809` | ci: patched-release workflow builds this branch with upstream's Linux CLI build and publishes it | applied | - | no | +| 4 | `7df675808e4b` | ci: trigger patched-release on patched-* tags (workflow_dispatch needs the default branch) | applied | - | yes | +| 5 | `3245a9905184` | gcpauth: GCP_AUTH_SCOPES sets the scopes for authorized-user token refresh | applied | - | no | +| 6 | `543efe604921` | ci: run the patched modules' unit tests before releasing | applied | - | yes | +| 7 | `66279407da27` | gcpauth: keep GcpAuth's doc comment and derive attached to the struct | applied | - | yes | +| 8 | `3afc1fce372e` | developer/shell: terminate the command's whole process group on cancel, timeout and drop (SIGTERM, 2s grace, SIGKILL) | **conflict** | `crates/goose/src/agents/platform_extensions/developer/shell.rs` | yes | +| 9 | `b6df580ef932` | developer/shell: keep pgid set across terminate() grace and gate /proc tests to linux | **conflict** | `crates/goose/src/agents/platform_extensions/developer/shell.rs` | yes | +| 10 | `35b6b478298e` | vendor: agent-client-protocol-http 2.2.0 from crates.io, unmodified, via [patch.crates-io] | **conflict** | `Cargo.toml` | yes | +| 11 | `80a9cdcb9a74` | acp-http: Acp-Takeover: 1 on GET /acp takes a held SSE stream instead of answering 409 (HTTP mailbox only) | **conflict** | `vendor/agent-client-protocol-http/src/connection.rs`, `vendor/agent-client-protocol-http/src/http_server.rs`, `vendor/agent-client-protocol-http/src/lib.rs`, `vendor/agent-client-protocol-http/src/protocol.rs` | yes | +| 12 | `c00f848c55b0` | acp-http: SSE event ids, a bounded per-stream replay ring, and Last-Event-ID resume (HTTP mailbox only) | **conflict** | `vendor/agent-client-protocol-http/src/http_mailbox.rs`, `vendor/agent-client-protocol-http/src/http_server.rs`, `vendor/agent-client-protocol-http/src/protocol.rs` | yes | +| 13 | `e41c1ec308a1` | ci: run the process-group and vendored acp-http tests, and check the vendored crate is in the graph, before releasing | applied | - | yes | +| 14 | `526b1f4681bf` | [NO-JIRA] Add Apache-2.0 modification notices and fix the Nix dev shell build (#1) | **conflict** | `flake.nix`, `vendor/agent-client-protocol-http/src/connection.rs`, `vendor/agent-client-protocol-http/src/http_server.rs`, `vendor/agent-client-protocol-http/src/lib.rs`, `vendor/agent-client-protocol-http/src/protocol.rs` | yes | +| 15 | `fa913cbcd2a9` | [NO-JIRA] Per-session settings that survive restore: cache TTL, recipe, max turns (#2) | **conflict** | `crates/goose-cli/src/session/builder.rs`, `crates/goose/src/acp/server.rs`, `crates/goose/src/acp/server/recipe/mod.rs`, `crates/goose/src/agents/agent.rs` | yes | +| 16 | `ae6da0e27a99` | session list: sort and limit on ids before fetching full session rows (#3) | **conflict** | `crates/goose/src/session/session_manager.rs` | yes | +| 17 | `3eb4f657bbf9` | [NO-JIRA] Rolling memory: fold older history into a first-person memory at turn start (#4) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose-sdk-types/src/custom_requests.rs`, `crates/goose/acp-schema.json`, `crates/goose/src/acp/server/manage_sessions.rs`, `crates/goose/src/agents/agent.rs`, `crates/goose/src/agents/platform_extensions/developer/shell.rs`, `crates/goose/src/agents/reply_parts.rs`, `crates/goose/src/session/session_manager.rs`, `crates/goose/tests/acp_server_test.rs` | yes | +| 18 | `7c535c9e857a` | [NO-JIRA] Self-compaction: an agent compacts its own context and resumes with its own prompt (#5) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose/src/agents/agent.rs`, `crates/goose/src/agents/execute_commands.rs`, `crates/goose/src/agents/mod.rs`, `crates/goose/src/agents/reply_parts.rs`, `crates/goose/src/agents/state_machine/ops_compaction.rs`, `crates/goose/src/context_mgmt/mod.rs`, `crates/goose/tests/acp_server_test.rs` | yes | +| 19 | `e02c4e8d7fd8` | [NO-JIRA] GOOSE_GLOBAL_SKILLS=false limits skill discovery to project directories (#6) | **conflict** | `.github/workflows/patched-release.yml` | yes | +| 20 | `598e31514623` | [NO-JIRA] MCP startup timeout: a hung MCP server no longer hangs extension add or session load (#7) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose/src/agents/agent.rs`, `crates/goose/src/agents/extension.rs`, `crates/goose/src/agents/extension_manager/mod.rs`, `crates/goose/src/agents/mcp_client.rs` | yes | +| 21 | `059750004b1e` | [NO-JIRA] Report a failed turn in the session/prompt response (_meta.goose.turnError) (#8) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose/src/acp/server.rs`, `crates/goose/src/agents/agent.rs`, `crates/goose/src/agents/mod.rs`, `crates/goose/src/agents/state_machine/mod.rs`, `crates/goose/tests/acp_server_test.rs`, `crates/goose/tests/self_compact.rs` | yes | +| 22 | `b63dc6c7d83b` | [NO-JIRA] Subagent policy: role recipes dir, declared/default delegate extensions, strict start (#9) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose/src/agents/platform_extensions/summon.rs`, `crates/goose/src/agents/subagent_handler.rs` | yes | +| 23 | `9b864f049d6b` | [NO-JIRA] Plugin .mcp.json: streamable-HTTP entries, and one invalid entry no longer drops the plugin's servers (#10) | **conflict** | `crates/goose/src/plugins/mcp_servers.rs` | yes | +| 24 | `2f040f152f9e` | agent: keep the provider stream polled while tools run (#11) | **conflict** | `crates/goose/src/agents/agent.rs` | yes | +| 25 | `d8a09060365c` | [NO-JIRA] gcp_vertex_ai: route Gemini through its own proxy and name the parent session in request headers (#12) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose/src/providers/gcpvertexai.rs`, `crates/goose/src/session/session_manager.rs` | yes | +| 26 | `8039936de0f7` | [NO-JIRA] Deliver subdirectory hints in conversation instead of rewriting the system prompt (#13) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose/src/agents/agent.rs`, `crates/goose/src/agents/mod.rs`, `crates/goose/src/agents/prompt_manager.rs` | yes | +| 27 | `0107f5e0af3f` | [NO-JIRA] Client-chosen prompt message ids and truncate_from_message for undo (#14) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose-sdk-types/src/custom_requests.rs`, `crates/goose/src/acp/server.rs`, `crates/goose/src/acp/server/custom_dispatch.rs`, `crates/goose/src/acp/server/manage_sessions.rs`, `crates/goose/src/agents/agent.rs`, `crates/goose/src/agents/prompt_manager.rs`, `crates/goose/src/session/session_manager.rs`, `crates/goose/tests/acp_server_test.rs` | yes | +| 28 | `c65841207b9c` | [NO-JIRA] Publish the aarch64-apple-darwin CLI with each patched release (#15) | **conflict** | `.github/workflows/patched-release.yml` | yes | +| 29 | `34d6bf33566e` | [NO-JIRA] Build the darwin CLI without Homebrew OpenSSL (#16) | **conflict** | `.github/workflows/patched-release-darwin.yml`, `.github/workflows/patched-release.yml` | yes | +| 30 | `36da1b7e7d10` | [NO-JIRA] Cache-miss breaker: stop a Gemini delegate whose prompt cache stopped hitting (#17) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose/src/agents/mod.rs`, `crates/goose/src/agents/subagent_handler.rs` | yes | +| 31 | `08825a545755` | [NO-JIRA] Role recipes set their own thinking effort (settings.thinking_effort) (#18) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose/src/agents/platform_extensions/summon.rs` | yes | +| 32 | `9180e7eda11d` | fix(providers): request summarized thinking from Claude models (#13029) | **conflict** | `crates/goose-provider-types/src/formats/anthropic.rs` | yes | +| 33 | `47c99a8cce6f` | Test summarized thinking on the Vertex Claude path, its signature round trip, and its coexistence with block_binding | **conflict** | `.github/workflows/patched-release.yml` | yes | +| 34 | `3a1f730f955c` | Stream Claude thinking deltas instead of buffering them to content_block_stop (#20) | **conflict** | `.github/workflows/patched-release.yml`, `crates/goose-provider-types/src/formats/anthropic.rs` | yes | + +`empty` means the patch's change is already in upstream: check which upstream PR absorbed it. + +
log tail + +``` +target=v1.60.1 base=patched-1.54.0.18 prefix='test-l1d/' +decision: fresh +applying 34 commits onto v1.60.1 + applied 72de13c016b1 goose-cli: GOOSE_HEADLESS_CACHE_TTL opts a headless run out of the 5m cache TTL clamp + applied 680fffe606e2 gcp_vertex_ai: GCP_VERTEX_HOST routes requests through a proxy; GCP_VERTEX_SESSION_HEADER renames the session header + applied ed1490e26809 ci: patched-release workflow builds this branch with upstream's Linux CLI build and publishes it + applied 7df675808e4b ci: trigger patched-release on patched-* tags (workflow_dispatch needs the default branch) + applied 3245a9905184 gcpauth: GCP_AUTH_SCOPES sets the scopes for authorized-user token refresh + applied 543efe604921 ci: run the patched modules' unit tests before releasing + applied 66279407da27 gcpauth: keep GcpAuth's doc comment and derive attached to the struct + conflict 3afc1fce372e developer/shell: terminate the command's whole process group on cancel, timeout and drop (SIGTERM, 2s grace, SIGKILL) [crates/goose/src/agents/platform_extensions/developer/shell.rs] + conflict b6df580ef932 developer/shell: keep pgid set across terminate() grace and gate /proc tests to linux [crates/goose/src/agents/platform_extensions/developer/shell.rs] + conflict 35b6b478298e vendor: agent-client-protocol-http 2.2.0 from crates.io, unmodified, via [patch.crates-io] [Cargo.toml] + conflict 80a9cdcb9a74 acp-http: Acp-Takeover: 1 on GET /acp takes a held SSE stream instead of answering 409 (HTTP mailbox only) [vendor/agent-client-protocol-http/src/connection.rs, vendor/agent-client-protocol-http/src/http_server.rs, vendor/agent-client-protocol-http/src/lib.rs, vendor/agent-client-protocol-http/src/protocol.rs] + conflict c00f848c55b0 acp-http: SSE event ids, a bounded per-stream replay ring, and Last-Event-ID resume (HTTP mailbox only) [vendor/agent-client-protocol-http/src/http_mailbox.rs, vendor/agent-client-protocol-http/src/http_server.rs, vendor/agent-client-protocol-http/src/protocol.rs] + applied e41c1ec308a1 ci: run the process-group and vendored acp-http tests, and check the vendored crate is in the graph, before releasing + conflict 526b1f4681bf [NO-JIRA] Add Apache-2.0 modification notices and fix the Nix dev shell build (#1) [flake.nix, vendor/agent-client-protocol-http/src/connection.rs, vendor/agent-client-protocol-http/src/http_server.rs, vendor/agent-client-protocol-http/src/lib.rs, vendor/agent-client-protocol-http/src/protocol.rs] + conflict fa913cbcd2a9 [NO-JIRA] Per-session settings that survive restore: cache TTL, recipe, max turns (#2) [crates/goose-cli/src/session/builder.rs, crates/goose/src/acp/server.rs, crates/goose/src/acp/server/recipe/mod.rs, crates/goose/src/agents/agent.rs] + conflict ae6da0e27a99 session list: sort and limit on ids before fetching full session rows (#3) [crates/goose/src/session/session_manager.rs] + conflict 3eb4f657bbf9 [NO-JIRA] Rolling memory: fold older history into a first-person memory at turn start (#4) [.github/workflows/patched-release.yml, crates/goose-sdk-types/src/custom_requests.rs, crates/goose/acp-schema.json, crates/goose/src/acp/server/manage_sessions.rs, crates/goose/src/agents/agent.rs, crates/goose/src/agents/platform_extensions/developer/shell.rs, crates/goose/src/agents/reply_parts.rs, crates/goose/src/session/session_manager.rs, crates/goose/tests/acp_server_test.rs] + conflict 7c535c9e857a [NO-JIRA] Self-compaction: an agent compacts its own context and resumes with its own prompt (#5) [.github/workflows/patched-release.yml, crates/goose/src/agents/agent.rs, crates/goose/src/agents/execute_commands.rs, crates/goose/src/agents/mod.rs, crates/goose/src/agents/reply_parts.rs, crates/goose/src/agents/state_machine/ops_compaction.rs, crates/goose/src/context_mgmt/mod.rs, crates/goose/tests/acp_server_test.rs] + conflict e02c4e8d7fd8 [NO-JIRA] GOOSE_GLOBAL_SKILLS=false limits skill discovery to project directories (#6) [.github/workflows/patched-release.yml] + conflict 598e31514623 [NO-JIRA] MCP startup timeout: a hung MCP server no longer hangs extension add or session load (#7) [.github/workflows/patched-release.yml, crates/goose/src/agents/agent.rs, crates/goose/src/agents/extension.rs, crates/goose/src/agents/extension_manager/mod.rs, crates/goose/src/agents/mcp_client.rs] + conflict 059750004b1e [NO-JIRA] Report a failed turn in the session/prompt response (_meta.goose.turnError) (#8) [.github/workflows/patched-release.yml, crates/goose/src/acp/server.rs, crates/goose/src/agents/agent.rs, crates/goose/src/agents/mod.rs, crates/goose/src/agents/state_machine/mod.rs, crates/goose/tests/acp_server_test.rs, crates/goose/tests/self_compact.rs] + conflict b63dc6c7d83b [NO-JIRA] Subagent policy: role recipes dir, declared/default delegate extensions, strict start (#9) [.github/workflows/patched-release.yml, crates/goose/src/agents/platform_extensions/summon.rs, crates/goose/src/agents/subagent_handler.rs] + conflict 9b864f049d6b [NO-JIRA] Plugin .mcp.json: streamable-HTTP entries, and one invalid entry no longer drops the plugin's servers (#10) [crates/goose/src/plugins/mcp_servers.rs] + conflict 2f040f152f9e agent: keep the provider stream polled while tools run (#11) [crates/goose/src/agents/agent.rs] + conflict d8a09060365c [NO-JIRA] gcp_vertex_ai: route Gemini through its own proxy and name the parent session in request headers (#12) [.github/workflows/patched-release.yml, crates/goose/src/providers/gcpvertexai.rs, crates/goose/src/session/session_manager.rs] + conflict 8039936de0f7 [NO-JIRA] Deliver subdirectory hints in conversation instead of rewriting the system prompt (#13) [.github/workflows/patched-release.yml, crates/goose/src/agents/agent.rs, crates/goose/src/agents/mod.rs, crates/goose/src/agents/prompt_manager.rs] + conflict 0107f5e0af3f [NO-JIRA] Client-chosen prompt message ids and truncate_from_message for undo (#14) [.github/workflows/patched-release.yml, crates/goose-sdk-types/src/custom_requests.rs, crates/goose/src/acp/server.rs, crates/goose/src/acp/server/custom_dispatch.rs, crates/goose/src/acp/server/manage_sessions.rs, crates/goose/src/agents/agent.rs, crates/goose/src/agents/prompt_manager.rs, crates/goose/src/session/session_manager.rs, crates/goose/tests/acp_server_test.rs] + conflict c65841207b9c [NO-JIRA] Publish the aarch64-apple-darwin CLI with each patched release (#15) [.github/workflows/patched-release.yml] + conflict 34d6bf33566e [NO-JIRA] Build the darwin CLI without Homebrew OpenSSL (#16) [.github/workflows/patched-release-darwin.yml, .github/workflows/patched-release.yml] + conflict 36da1b7e7d10 [NO-JIRA] Cache-miss breaker: stop a Gemini delegate whose prompt cache stopped hitting (#17) [.github/workflows/patched-release.yml, crates/goose/src/agents/mod.rs, crates/goose/src/agents/subagent_handler.rs] + conflict 08825a545755 [NO-JIRA] Role recipes set their own thinking effort (settings.thinking_effort) (#18) [.github/workflows/patched-release.yml, crates/goose/src/agents/platform_extensions/summon.rs] + conflict 9180e7eda11d fix(providers): request summarized thinking from Claude models (#13029) [crates/goose-provider-types/src/formats/anthropic.rs] + conflict 47c99a8cce6f Test summarized thinking on the Vertex Claude path, its signature round trip, and its coexistence with block_binding [.github/workflows/patched-release.yml] + conflict 3a1f730f955c Stream Claude thinking deltas instead of buffering them to content_block_stop (#20) [.github/workflows/patched-release.yml, crates/goose-provider-types/src/formats/anthropic.rs] +Cargo.lock not regenerated (cargo metadata failed: cargo is not on PATH) +``` +