failed to connect to postgres: failed to connect to `host=127.0.0.1 user=postgres database=contrib_regression`: tls error (server refused TLS connection)

Describe the bug
I get the following error when running supabase db diff --local

Diffing schemas...
Connecting to remote database...
failed to connect to postgres: failed to connect to `host=127.0.0.1 user=postgres database=contrib_regression`: tls error (server refused TLS connection)
Try rerunning the command with --debug to troubleshoot the error.

If I run supabase db diff --debug then it works just fine

System information
Rerun the failing command with --create-ticket flag.

  • Ticket ID: 2ba80b05e78343938254ec85ab0b5a97
  • Version of OS: macOS
  • Version of CLI: 2.48.3
  • Version of Docker: 28.3.2
  • Versions of services:
  
   SERVICE IMAGE          | LOCAL                  | LINKED     
  ------------------------|------------------------|------------
   supabase/postgres      | 17.6.1.003             | 17.6.1.003 
   supabase/gotrue        | v2.179.0               | v2.179.0   
   postgrest/postgrest    | v13.0.5                | v13.0.5    
   supabase/realtime      | v2.51.11               | -          
   supabase/storage-api   | v1.28.0                | -          
   supabase/edge-runtime  | v1.68.3                | -          
   supabase/studio        | 2025.10.01-sha-8460121 | -          
   supabase/postgres-meta | v0.91.6                | -          
   supabase/logflare      | 1.22.4                 | -          
   supabase/supavisor     | 2.7.0                  | -