prasmussen / chrome-cli

Control Google Chrome from the command line
MIT License
2.61k stars 89 forks source link

chrome-cli list tabs returns strange changing tab ids #83

Closed camlspotter closed 1 year ago

camlspotter commented 1 year ago

chrome-cli list tabs stops working for me since this morning. It returns huge integers which change for each time:

% chrome-cli list tabs
[105553181738784] Google
[105553181779456] New Issue · prasmussen/chrome-cli
[105553181689664] Settings - About Chrome
[105553181689728] chrome Version 113.0.5672.92 (Official Build) (arm64)

% chrome-cli list tabs
[105553144861824] Google
[105553144861792] New Issue · prasmussen/chrome-cli
[105553144966592] Settings - About Chrome
[105553144957792] chrome Version 113.0.5672.92 (Official Build) (arm64)

The problem persists even after I restart Chrome or reboot the MacOS.

I use Chrome Version 113.0.5672.92 (Official Build) (arm64) but not sure when it was upgraded to this version.

camlspotter commented 1 year ago

Probably the same issue with #82

slimm609 commented 1 year ago

Also seeing this issue. Everytime the tabs are listed the IDs are different

kkatayama commented 1 year ago

I had the same issue, for now, I installed version 112.0.5615.121 from here: https://google-chrome.en.uptodown.com/mac/download/99265871. Then I disabled automatic updates.

To Disable Automatic Update:

Instructions from: https://stackoverflow.com/questions/59372124/how-to-disable-google-chrome-auto-update-for-mac-os

1) To empty these directories:

sudo rm -rf /Library/Google/GoogleSoftwareUpdate/*
sudo rm -rf ~/Library/Google/GoogleSoftwareUpdate/*

2) Then change the permissions on these folders named 'GoogleSoftwareUpdate' so that there's no owner and no read/write/execute permissions.

cd /Library/Google/
sudo chown nobody:nogroup GoogleSoftwareUpdate
sudo chmod 000 GoogleSoftwareUpdate
cd ~/Library/Google/
sudo chown nobody:nogroup GoogleSoftwareUpdate
sudo chmod 000 GoogleSoftwareUpdate

3) Then do the same for the folder Google one level up.

cd /Library/
sudo chown nobody:nogroup Google
sudo chmod 000 Google
cd ~/Library/
sudo chown nobody:nogroup Google
sudo chmod 000 Google

This is obviously not a fix, but a workaround to keep chrome-cli working.

noseboy commented 1 year ago

Just as a quick and dirty way to stop Chrome updating after you revert, if you edit /etc/hosts and point tools.google.com to 0.0.0.0, that works nicely.

rh1629 commented 1 year ago

A better solution for me was to get a Brave nightly build instead of dealing with multiple versions of chrome.

https://github.com/brave/brave-browser/releases?q=112.0.5615.12&expanded=true (brave-cli list tabs works in this version)

upstageleft commented 1 year ago

Same issue with Chrome window and tab IDs changing every time [chrome-cli list tabs|windows]. This is new behavior after installing Chrome 114.

prasmussen commented 1 year ago

This is fixed in 1.9.3. Homebrew formula not updated yet (I'm to lazy to do it at the moment)

prasmussen commented 1 year ago

Will update #82 when released in homebrew. Closing this.