Unable to switch tabs

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      OS: MacOS
      node.js / npm versions: ?
      Additional info: Compass desktop app Version 1.49.0 (1.49.0)
    • None
    • None
    • Developer Tools

      Problem Statement/Rationale

      Recently it is often impossible to switch tabs in Compass. Clicking on another tab does nothing. Closing current tab is also not possible.

      No visible error message.

      It is possible to get out of it by clicking a table name in the left tree top create a new tab, after which it's possible to switch again for one operation. But then it gets stuck again.

      This all used to work fine

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      Open two query tabs. Try to switch between them

      Expected Results

      Tabs to open when clicked like they used to before

      Actual Results

      Unable to switch tab, or close tab

      Additional Notes

      Any additional information that may be useful to include.


      Log fragments
      ```

      {"t":\{"$date":"2026-01-20T23:26:09.475Z"},"s":"I","c":"COMPASS-MAIN","id":1001000001,"ctx":"logging","msg":"Starting logging","attr":{"version":"1.49.0","nodeVersion":"22.21.1","electronVersion":"37.10.3","chromeVersion":"138.0.7204.251","platform":"darwin","arch":"arm64","osReleaseName":null,"osReleaseVersion":null,"pendingEarlyLogEventCount":2,"missingOptionalDeps":[]}} {"t":\{"$date":"2026-01-20T23:26:09.297Z"},"s":"I","c":"COMPASS-PREFERENCES","id":1001000153,"ctx":"preferences","msg":"Skipping global configuration file due to error","attr":{"filename":"/etc/mongodb-compass.conf","error":"ENOENT: no such file or directory, open '/etc/mongodb-compass.conf'","code":"ENOENT"}} {"t":\{"$date":"2026-01-20T23:26:09.298Z"},"s":"I","c":"COMPASS-PREFERENCES","id":1001000158,"ctx":"preferences","msg":"Parsed command line flags","attr":{"options":["_"]}} {"t":\{"$date":"2026-01-20T23:26:09.477Z"},"s":"I","c":"COMPASS-MAIN","id":1001000327,"ctx":"Application","msg":"Configured proxy","attr":{"options":{"useEnvironmentVariableProxies":true}}} {"t":\{"$date":"2026-01-20T23:26:09.479Z"},"s":"I","c":"COMPASS-TELEMETRY","id":1001000094,"ctx":"Telemetry","msg":"Enabling Telemetry reporting"} {"t":\{"$date":"2026-01-20T23:26:09.479Z"},"s":"I","c":"COMPASS-TELEMETRY","id":1001000093,"ctx":"Telemetry","msg":"Loading telemetry config","attr":{"telemetryCapableEnvironment":true,"hasAnalytics":true,"telemetryAnonymousId":"195b7908-6f2b-455e-9887-748701f45cec","state":"enabled","queuedEvents":0}} {"t":\{"$date":"2026-01-20T23:26:09.479Z"},"s":"I","c":"COMPASS-MAIN","id":1001000169,"ctx":"Protocol handling","msg":"Modifying protocol handlers","attr":{"action":"install","protocols":null}} {"t":\{"$date":"2026-01-20T23:26:09.499Z"},"s":"I","c":"COMPASS-MAIN","id":1001000307,"ctx":"Application","msg":"SafeStorage initialized","attr":{"enablePlainTextEncryption":false,"isAvailable":true,"backend":null}} {"t":\{"$date":"2026-01-20T23:26:09.502Z"},"s":"I","c":"CONNECTION-STORAGE","id":1001000271,"ctx":"Connection Storage","msg":"Connections already migrated"} {"t":\{"$date":"2026-01-20T23:26:09.510Z"},"s":"I","c":"COMPASS-ATLAS-SERVICE","id":1001000210,"ctx":"AtlasService","msg":"Atlas service initialized","attr":{"config":{"atlasApiBaseUrl":"https://cloud.mongodb.com/api/private","cloudBaseUrl":"","atlasLogin":{"clientId":"0oajzdcznmE8GEyio297","issuer":"https://auth.mongodb.com/oauth2/default"},"authPortalUrl":"https://account.mongodb.com/account/login","assistantApiBaseUrl":"https://knowledge.mongodb.com/api/v1","userDataBaseUrl":"https://cloud.mongodb.com/ui/userData","ccsBaseUrl":""}}} {"t":\{"$date":"2026-01-20T23:26:09.510Z"},"s":"I","c":"COMPASS-MAIN","id":1001000125,"ctx":"AutoEncryption","msg":"Found MongoDB Crypt library","attr":{"cryptSharedLibPath":"/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/build/assets/mongo_crypt_v1.251e26e2a240d814a9c3.dylib","externalOverride":null}} {"t":\{"$date":"2026-01-20T23:26:09.512Z"},"s":"I","c":"COMPASS-AUTO-UPDATES","id":1001000130,"ctx":"AutoUpdateManager","msg":"Initializing"} {"t":\{"$date":"2026-01-20T23:26:09.512Z"},"s":"I","c":"COMPASS-AUTO-UPDATES","id":1001000133,"ctx":"AutoUpdateManager","msg":"Setting up updateManager","attr":{"endpoint":"https://compass.mongodb.com","product":"compass","channel":"stable","platform":"darwin","arch":"arm64","version":"1.49.0","updateCheckInterval":14400000,"initialUpdateDelay":30000,"supported":true,"enabled":true}} {"t":\{"$date":"2026-01-20T23:26:09.512Z"},"s":"I","c":"COMPASS-WINDOW-MANAGER","id":1001000380,"ctx":"Window Manager","msg":"Creating new browser window","attr":{"options":{"x":0,"y":-1440,"width":2560,"height":1440,"minWidth":1025,"minHeight":640,"icon":null,"show":false,"backgroundColor":"#ffffff","webPreferences":{"subpixel-font-scaling":true,"direct-write":true,"nodeIntegration":true,"contextIsolation":false,"enableRemoteModule":true,"nodeIntegrationInWorker":true,"webSecurity":true}},"screenSize":{"width":1728,"height":1084}}} {"t":\{"$date":"2026-01-20T23:26:09.566Z"},"s":"I","c":"COMPASS-MAIN","id":1001000327,"ctx":"BrowserWindow","msg":"Configured proxy","attr":{"options":{"useEnvironmentVariableProxies":true}}} {"t":\{"$date":"2026-01-20T23:26:10.344Z"},"s":"I","c":"COMPASS-APP","id":1001000092,"ctx":"Main Window","msg":"Rendering app container","attr":{"autoConnectEnabled":false}} {"t":\{"$date":"2026-01-20T23:26:10.409Z"},"s":"I","c":"COMPASS-APP","id":1001000338,"ctx":"Main Window","msg":"Recent version info","attr":{"previousVersion":"1.49.0","highestInstalledVersion":"1.49.0","version":"1.49.0"}} {"t":\{"$date":"2026-01-20T23:26:10.418Z"},"s":"I","c":"OIDC-PLUGIN","id":1002000029,"ctx":"AtlasService-oidc","msg":"Request token started","attr":{"authStateId":"1jferlnvi-0","isCurrentAuthAttemptSet":false,"tokenSetId":null,"username":null,"issuer":"https://auth.mongodb.com/oauth2/default","clientId":"0oajzdcznmE8GEyio297","requestScopes":null}} {"t":\{"$date":"2026-01-20T23:26:10.418Z"},"s":"W","c":"OIDC-PLUGIN","id":1002000016,"ctx":"AtlasService-oidc","msg":"Authentication failed","attr":{"authStateId":"1jferlnvi-0","error":"Auth flows are not allowed when sign in is not triggered by user"}} {"t":\{"$date":"2026-01-20T23:26:10.418Z"},"s":"I","c":"OIDC-PLUGIN","id":1002000030,"ctx":"AtlasService-oidc","msg":"Request token finished","attr":{"authStateId":"1jferlnvi-0","isCurrentAuthAttemptSet":false,"tokenSetId":null,"username":null,"issuer":"https://auth.mongodb.com/oauth2/default","clientId":"0oajzdcznmE8GEyio297","requestScopes":null}} {"t":\{"$date":"2026-01-20T23:26:10.419Z"},"s":"I","c":"COMPASS-ATLAS-SERVICE","id":1001000299,"ctx":"AtlasService","msg":"Making an unauthenticated fetch","attr":{"url":"https://auth.mongodb.com/oauth2/default/v1/introspect?client_id=0oajzdcznmE8GEyio297"}} {"t":\{"$date":"2026-01-20T23:26:10.730Z"},"s":"I","c":"COMPASS-INTERCOM","id":1001000116,"ctx":"Intercom","msg":"Loading intercom script"} {"t":\{"$date":"2026-01-20T23:26:10.730Z"},"s":"I","c":"COMPASS-INTERCOM","id":1001000111,"ctx":"Intercom","msg":"Intercom booted with metadata","attr":{"user_id":"195b7908-6f2b-455e-9887-748701f45cec","app_id":"p57suhg7","created_at":1758569252,"app_name":"MongoDB Compass","app_version":"1.49.0","app_stage":"production"}} {"t":\{"$date":"2026-01-20T23:26:10.873Z"},"s":"I","c":"COMPASS-ATLAS-SERVICE","id":1001000301,"ctx":"AtlasService","msg":"Fetch errored","attr":{"url":"https://auth.mongodb.com/oauth2/default/v1/introspect?client_id=0oajzdcznmE8GEyio297","err":{"name":"NetworkError","statusCode":400,"errorCode":"400","detail":"Bad Request"}}} {"t":\{"$date":"2026-01-20T23:26:13.354Z"},"s":"D1","c":"TOOLS-CONTROLLER","id":1001000400,"ctx":"Compass Database Tools","msg":"1002007 - deviceId: Device ID retrieval timed out"} {"t":\{"$date":"2026-01-20T23:26:17.275Z"},"s":"I","c":"COMPASS-CONNECTIONS","id":1001000004,"ctx":"Connection UI","msg":"Initiating connection attempt","attr":{"isAutoconnectAttempt":false}} {"t":\{"$date":"2026-01-20T23:26:17.279Z"},"s":"I","c":"COMPASS-CONNECTIONS","id":1001000005,"ctx":"Compass Connection Attempt Started","msg":"Connection attempt started","attr":{"clusterName":null,"connectionId":"4d54f656-3ee6-4ebb-a6bc-4cafc2869b50"}} {"t":\{"$date":"2026-01-20T23:26:17.281Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000014,"ctx":"Connection 0","msg":"Connecting Started","attr":{"connectionId":0,"url":"mongodb+srv://<credentials>@production.el4qmh.mongodb.net/?ssl=true&retryWrites=true&w=majority&appName=production","csfle":null}} {"t":\{"$date":"2026-01-20T23:26:17.318Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000049,"ctx":"compass-connect","msg":"Loaded system CA list","attr":{"caCount":304,"asyncFallbackError":null,"systemCertsError":null,"messages":[]}} {"t":\{"$date":"2026-01-20T23:26:17.396Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000039,"ctx":"compass-connect","msg":"Resolving SRV record succeeded","attr":{"from":"mongodb+srv://<credentials>@production.el4qmh.mongodb.net/?ssl=true&retryWrites=true&w=majority&appName=production","to":"mongodb://<credentials>@production-shard-00-00.el4qmh.mongodb.net,production-shard-00-02.el4qmh.mongodb.net,production-shard-00-01.el4qmh.mongodb.net/?ssl=true&retryWrites=true&w=majority&appName=production&authSource=admin&replicaSet=atlas-lr41y6-shard-0","resolutionDetails":[{"query":"TXT","hostname":"production.el4qmh.mongodb.net","error":null,"wasNativelyLookedUp":true,"durationMs":0},\{"query":"SRV","hostname":"_mongodb._tcp.production.el4qmh.mongodb.net","error":null,"wasNativelyLookedUp":true,"durationMs":74}],"durationMs":76}} {"t":\{"$date":"2026-01-20T23:26:17.400Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000042,"ctx":"compass-connect","msg":"Initiating connection attempt","attr":{"uri":"mongodb://<credentials>@production-shard-00-00.el4qmh.mongodb.net,production-shard-00-02.el4qmh.mongodb.net,production-shard-00-01.el4qmh.mongodb.net/?ssl=true&retryWrites=true&w=majority&appName=production&authSource=admin&replicaSet=atlas-lr41y6-shard-0","driver":{"name":"mongodb-js","version":"<unk>"},"devtoolsConnectVersion":"3.14.2","host":"production-shard-00-00.el4qmh.mongodb.net:27017,production-shard-00-02.el4qmh.mongodb.net:27017,production-shard-00-01.el4qmh.mongodb.net:27017"}} {"t":\{"$date":"2026-01-20T23:26:17.401Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000021,"ctx":"Connection 0","msg":"Topology description changed","attr":{"isWritable":false,"isMongos":false,"previousType":"Unknown","newType":"ReplicaSetNoPrimary"}} {"t":\{"$date":"2026-01-20T23:26:17.401Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000019,"ctx":"Connection 0","msg":"Server opening","attr":{"address":"production-shard-00-00.el4qmh.mongodb.net:27017"}} {"t":\{"$date":"2026-01-20T23:26:17.456Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000019,"ctx":"Connection 0","msg":"Server opening","attr":{"address":"production-shard-00-02.el4qmh.mongodb.net:27017"}} {"t":\{"$date":"2026-01-20T23:26:17.496Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000019,"ctx":"Connection 0","msg":"Server opening","attr":{"address":"production-shard-00-01.el4qmh.mongodb.net:27017"}} {"t":\{"$date":"2026-01-20T23:26:17.680Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000022,"ctx":"Connection 0","msg":"Server heartbeat succeeded","attr":{"connectionId":"production-shard-00-00.el4qmh.mongodb.net:27017","duration":49}} {"t":\{"$date":"2026-01-20T23:26:17.680Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000035,"ctx":"compass-connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"production-shard-00-00.el4qmh.mongodb.net:27017"}} {"t":\{"$date":"2026-01-20T23:26:17.680Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000018,"ctx":"Connection 0","msg":"Server description changed","attr":{"address":"production-shard-00-00.el4qmh.mongodb.net:27017","error":null,"previousType":"Unknown","newType":"RSSecondary"}} {"t":\{"$date":"2026-01-20T23:26:17.681Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000021,"ctx":"Connection 0","msg":"Topology description changed","attr":{"isWritable":false,"isMongos":false,"previousType":"ReplicaSetNoPrimary","newType":"ReplicaSetNoPrimary"}} {"t":\{"$date":"2026-01-20T23:26:17.681Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000022,"ctx":"Connection 0","msg":"Server heartbeat succeeded","attr":{"connectionId":"production-shard-00-02.el4qmh.mongodb.net:27017","duration":49}} {"t":\{"$date":"2026-01-20T23:26:17.681Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000035,"ctx":"compass-connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"production-shard-00-02.el4qmh.mongodb.net:27017"}}

      ```


      ``` {"t":\{"$date":"2026-01-20T23:45:09.728Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000060,"ctx":"Connection 0","msg":"Running find","attr":{"ns":"config.collections","maxTimeMS":60000}} {"t":\{"$date":"2026-01-20T23:45:09.728Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000381,"ctx":"Connection 0","msg":"Running fetchShardKey","attr":{"ns":"cirra-cloud-mongodb-prod.customers"}} {"t":\{"$date":"2026-01-20T23:45:09.728Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"20.9.241.0:27017","requestId":494,"serverConnectionId":11,"duration":54,"commandName":"listIndexes"}} {"t":\{"$date":"2026-01-20T23:45:09.728Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"20.9.241.0:27017","requestId":500,"serverConnectionId":6,"duration":55,"commandName":"listCollections"}} {"t":\{"$date":"2026-01-20T23:45:09.728Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000179,"ctx":"Connection 0","msg":"Running collectionInfo","attr":{"ns":"cirra-cloud-mongodb-prod"}} {"t":\{"$date":"2026-01-20T23:45:09.728Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"20.9.241.0:27017","requestId":498,"serverConnectionId":2,"duration":55,"commandName":"find"}} {"t":\{"$date":"2026-01-20T23:45:09.729Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000060,"ctx":"Connection 0","msg":"Running find","attr":{"ns":"config.collections","maxTimeMS":null}} {"t":\{"$date":"2026-01-20T23:45:09.729Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000381,"ctx":"Connection 0","msg":"Running fetchShardKey","attr":{"ns":"cirra-cloud-mongodb-prod.customers"}} {"t":\{"$date":"2026-01-20T23:45:09.729Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000047,"ctx":"Connection 0","msg":"Running indexes","attr":{"ns":"cirra-cloud-mongodb-prod.customers"}} {"t":\{"$date":"2026-01-20T23:45:09.729Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"20.9.241.0:27017","requestId":493,"serverConnectionId":7,"duration":55,"commandName":"aggregate"}} {"t":\{"$date":"2026-01-20T23:45:09.729Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000181,"ctx":"Connection 0","msg":"Running aggregate","attr":{"ns":"cirra-cloud-mongodb-prod.customers","stages":["$limit"],"maxTimeMS":60000}} {"t":\{"$date":"2026-01-20T23:45:09.729Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"20.9.241.0:27017","requestId":503,"serverConnectionId":1,"duration":55,"commandName":"find"}} {"t":\{"$date":"2026-01-20T23:45:09.729Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000060,"ctx":"Connection 0","msg":"Running find","attr":{"ns":"cirra-cloud-mongodb-prod.customers","maxTimeMS":60000}} {"t":\{"$date":"2026-01-20T23:45:10.014Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"20.9.241.0:27017","requestId":499,"serverConnectionId":9,"duration":340,"commandName":"aggregate"}} {"t":\{"$date":"2026-01-20T23:45:10.014Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000238,"ctx":"Connection 0","msg":"Running getSearchIndexes","attr":{"ns":"cirra-cloud-mongodb-prod.customers"}} {"t":\{"$date":"2026-01-20T23:45:11.853Z"},"s":"F","c":"COMPASS-MAIN","id":1001000002,"ctx":"app","msg":"Uncaught exception: null","attr":{"message":"null","stack":"NonError: null\n    at e.exports (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/2299.6d0588e0616d2d84e591.renderer.js:2:97525)\n    at file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/index-182f79bf.4f11284a4df6de838732.renderer.js:1:14915"}}
      ```

            Assignee:
            Le Roux Bodenstein
            Reporter:
            Jelle van Geuns
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: