WeKnora/cli/internal
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
..
build feat(cli): scaffold weknora CLI module foundation (PR-1) 2026-05-07 23:19:46 +08:00
cmdutil fix(cli): wrap overlong t.Errorf so golangci-lint lll passes 2026-08-20 18:16:21 +08:00
compat refactor(cli): drop aiclient package; align AGENTS.md with mainstream 2026-05-15 12:03:56 +08:00
config feat(cli): agent-first WeKnora CLI 2026-07-06 22:53:01 +08:00
format feat(cli)!: add agent-first chat and session ask output modes 2026-07-03 00:21:48 +08:00
iostreams feat(cli): agent-first WeKnora CLI 2026-07-06 22:53:01 +08:00
mcp fix(auth): record last-active-tenant preference on SwitchTenant (#2922) 2026-09-01 15:43:40 +08:00
output feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
projectlink feat(cli): --format json default + NDJSON event stream + context→profile cascade + help calibration + docs (BREAKING) 2026-05-27 10:56:34 +08:00
prompt refactor(cli): drop aiclient package; align AGENTS.md with mainstream 2026-05-15 12:03:56 +08:00
secrets refactor(cli): finish context→profile cascade + post-review hardening (BREAKING) 2026-05-27 10:56:34 +08:00
skillparity feat(cli): v0.9 contract harmonization 2026-06-08 20:18:43 +08:00
sse feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
testutil refactor(cli): drop aiclient package; align AGENTS.md with mainstream 2026-05-15 12:03:56 +08:00
text chore(cli): polish + docs sync + pre-PR audit fixes 2026-05-16 16:56:33 +08:00
xdg chore(cli): gofmt sweep 2026-05-15 12:03:56 +08:00