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:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user