WeKnora/website-docs/04-api
MidoriKurage a40ef46635
fix(auth): record last-active-tenant preference on SwitchTenant (#2922)
* fix(auth): record last-active-tenant preference on SwitchTenant

* docs(auth): note SwitchTenant updating last-active-tenant preference

* fix(auth): persist last-active tenant before SwitchTenant tokens

RefreshToken re-resolves from this preference because refresh JWTs omit
tenant_id. Fail the switch if the write fails so a 200 never returns a
token pair whose later refresh would land in a different workspace.

* fix(cli): align HybridSearch interfaces with SDK variadic options

Client.HybridSearch gained ResourceURLOptions; CLI ChunksService and
MCP knowledgeService still used the old signature, so *Client no longer
satisfied those interfaces.

* style(cli): wrap HybridSearch signatures under the 120-column lint

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-09-01 15:43:40 +08:00
..
01-api-overview.md feat(api): honor resource_urls=public on hybrid-search 2026-08-26 17:40:54 +08:00
02-api-agent-mcp.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-auth.md fix(auth): record last-active-tenant preference on SwitchTenant (#2922) 2026-09-01 15:43:40 +08:00
02-api-channels.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-chat.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-chunks.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-faq-wiki.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-infra.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-knowledge.md feat(api): honor resource_urls=public on hybrid-search 2026-08-26 17:40:54 +08:00
02-api-model-system.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-org.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-system.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00
02-api-tenant.md docs(website-docs): add comprehensive product documentation site 2026-08-06 19:54:40 +08:00