From 3958bc047e17ad2f4d1e2b30e44a00be8671db59 Mon Sep 17 00:00:00 2001 From: "shike.11" Date: Fri, 10 Jul 2026 15:17:53 +0800 Subject: [PATCH] chore: point feishu brand to PPE for view_url integration test Debug-only: switch the default Open endpoint to open.feishu-pre.cn and inject x-tt-env: ppe_agent_view so requests land in the PPE lane. Not for merge into main. --- internal/cmdutil/secheader.go | 1 + internal/core/types.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cmdutil/secheader.go b/internal/cmdutil/secheader.go index cf99f9fd4..baabb22fc 100644 --- a/internal/cmdutil/secheader.go +++ b/internal/cmdutil/secheader.go @@ -55,6 +55,7 @@ func BaseSecurityHeaders() http.Header { if v := envvars.AgentTrace(); v != "" { h.Set(HeaderAgentTrace, v) } + h.Set("x-tt-env", "ppe_agent_view") return h } diff --git a/internal/core/types.go b/internal/core/types.go index 29720d4c3..c2e989d9e 100644 --- a/internal/core/types.go +++ b/internal/core/types.go @@ -51,7 +51,7 @@ func ResolveEndpoints(brand LarkBrand) Endpoints { } default: return Endpoints{ - Open: "https://open.feishu.cn", + Open: "https://open.feishu-pre.cn", Accounts: "https://accounts.feishu.cn", MCP: "https://mcp.feishu.cn", AppLink: "https://applink.feishu.cn",