WeKnora/cli/cmd
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
..
agent fix(cli): preserve agent update flags in retry_argv 2026-08-10 19:33:39 +08:00
api feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
auth feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
chat fix(cli): align stream/list interfaces with client ResourceURLOptions 2026-08-10 19:33:39 +08:00
chunk feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
config feat(cli): agent-first WeKnora CLI 2026-07-06 22:53:01 +08:00
doc feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
doctor feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
kb feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
link feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
mcp feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
message fix(cli): align stream/list interfaces with client ResourceURLOptions 2026-08-10 19:33:39 +08:00
model feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
profile feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
search fix(auth): record last-active-tenant preference on SwitchTenant (#2922) 2026-09-01 15:43:40 +08:00
session fix(cli): align stream/list interfaces with client ResourceURLOptions 2026-08-10 19:33:39 +08:00
skills feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
agenthelp_coverage_test.go feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
completion_test.go feat(cli): api --input + completion smoke 2026-05-14 10:57:17 +08:00
coverage_helpers_test.go feat(cli): v0.9 contract harmonization 2026-06-08 20:18:43 +08:00
dryrun_coverage_test.go feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
exitcodes.go feat(cli): agent-first WeKnora CLI 2026-07-06 22:53:01 +08:00
exitcodes_test.go feat(cli): agent-first WeKnora CLI 2026-07-06 22:53:01 +08:00
required_positional_coverage_test.go feat(cli): agent-first WeKnora CLI 2026-07-06 22:53:01 +08:00
root.go feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
root_test.go feat(cli): v0.9 contract harmonization 2026-06-08 20:18:43 +08:00
root_unknown_subcommand_test.go feat(cli): agent-first WeKnora CLI 2026-07-06 22:53:01 +08:00
schema.go feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00
schema_test.go feat(cli)!: v0.10 reliability, agent-UX, and command-surface hardening 2026-07-06 22:53:01 +08:00