From f56ba84dc7fe453d7076bb057d90b56e6371cc7b Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Mon, 9 Nov 2026 22:45:18 +0000 Subject: [PATCH] fix: honor HTTP(S) docs roots in goose-doc-guide (#13381) --- crates/goose/src/skills/builtins/goose_doc_guide.md | 13 +++++++------ documentation/docs/guides/offline-docs.md | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/crates/goose/src/skills/builtins/goose_doc_guide.md b/crates/goose/src/skills/builtins/goose_doc_guide.md index 5d578ec29..c4ad7a3e7 100644 --- a/crates/goose/src/skills/builtins/goose_doc_guide.md +++ b/crates/goose/src/skills/builtins/goose_doc_guide.md @@ -13,11 +13,12 @@ Do NOT use this skill for: - General coding tasks unrelated to goose - Running existing recipes (just run them directly) -The docs root for this session is `{{GOOSE_DOCS_ROOT}}`. It may be a local -filesystem path or an HTTP(S) URL. When it is a local path read files with the -shell/file tools; when it is not set or is an HTTP(S) URL fetch them from the -canonical location which is https://goose-docs.ai. Everything below refers to -this docs root as ``. +The docs root for this session is `{{GOOSE_DOCS_ROOT}}`. Always read docs from +this root, whether it is a local filesystem path or an HTTP(S) URL. For local +paths, read files with the shell/file tools; for HTTP(S) URLs, fetch from that +URL. If the docs root above is not https://goose-docs.ai, never fetch docs from +https://goose-docs.ai; use it only for links in your answer. Everything below +refers to this docs root as ``. ## Steps (COMPLETE ALL BEFORE RESPONDING) 1. **Read official docs** @@ -58,6 +59,6 @@ this docs root as ``. 5. **List documentation links** - Only include docs actually used - - Always link to the canonical site `https://goose-docs.ai/`, even if you read the docs from a local path. Never expose local filesystem paths. + - Always link to the canonical site `https://goose-docs.ai/`, even if you read the docs from a local path or HTTP(S) mirror. Never expose local filesystem paths. - Remove `.md` suffix from URLs - Example: If you read `docs/guides/sessions/session-management.md`, list it as `https://goose-docs.ai/docs/guides/sessions/session-management` diff --git a/documentation/docs/guides/offline-docs.md b/documentation/docs/guides/offline-docs.md index c8e97bd44..3feb2511c 100644 --- a/documentation/docs/guides/offline-docs.md +++ b/documentation/docs/guides/offline-docs.md @@ -80,7 +80,7 @@ For a managed distribution, bake the docs tree into your image and set ## Notes - Documentation links in goose's answers always render as canonical - `https://goose-docs.ai/...` URLs, even when read locally. + `https://goose-docs.ai/...` URLs, even when read locally or from a mirror. - A custom HTTP(S) mirror also works: set `GOOSE_DOCS_ROOT` to its root URL. - For MCP extension runtime issues offline, see [Airgapped/Offline Environment Issues](/docs/troubleshooting/known-issues#airgappedoffline-environment-issues).