refactor(terminology): rename user-facing tenant labels to workspace

Align product copy, API docs, Swagger descriptions, and i18n strings
with workspace terminology while keeping internal tenant identifiers
and headers unchanged for API compatibility.
This commit is contained in:
wizardchen
2026-07-14 16:13:49 +08:00
committed by lyingbug
parent e1572b71b9
commit 41975abcc5
161 changed files with 1865 additions and 1770 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ var (
// ErrPendingNotFound is returned when Resolve is called with an unknown id.
ErrPendingNotFound = errors.New("tool approval pending not found")
// ErrTenantMismatch is returned when Resolve tenant does not match the pending request.
ErrTenantMismatch = errors.New("tenant mismatch for tool approval")
ErrTenantMismatch = errors.New("workspace mismatch for tool approval")
// ErrAlreadyResolved is returned when Resolve loses the race against a
// timeout / cancellation: the waiter is still in the map but its decision
// channel was already consumed by the timer/ctx branch.
+3 -3
View File
@@ -144,11 +144,11 @@ func (t *WebSearchTool) Execute(ctx context.Context, args json.RawMessage) (*typ
}
if tenantID == 0 {
logger.Errorf(ctx, "[Tool][WebSearch] Tenant ID not found in context")
logger.Errorf(ctx, "[Tool][WebSearch] Workspace ID not found in context")
return &types.ToolResult{
Success: false,
Error: "tenant ID not found in context",
}, fmt.Errorf("tenant ID not found in context")
Error: "workspace ID not found in context",
}, fmt.Errorf("workspace ID not found in context")
}
// Get tenant info from context (same approach as search.go)