addon-ssh icon indicating copy to clipboard operation
addon-ssh copied to clipboard

Copy does not work anymore in Chrome on Win11

Open bortek opened this issue 2 years ago • 19 comments

Problem/Motivation

Copy in the HASS terminal not working

Expected behavior

This has worked for about 2 weeks ago.

I am on Win11 and latest Chrome , latest Hass core-2023.10.2 Advanced SSH & Web Terminal Current version: 15.1.0 (Changelog)

Actual behavior

Selecting with SHIFT key selects text in GREY color but nothing is comin into the clipboard. I think previously when it worked, when releasing SHIFT key there was a sort of scissors icon showing. This is no longer the case.

I tried to enable clipboard on unsecure sites in Chrome extensions, also tried adding the URL of the site to allow content on non https sites but it still does not work.

Steps to reproduce

SHIFT select the text

Proposed changes

You tell me

bortek avatar Oct 19 '23 12:10 bortek

I have another Hass installation with the SSH add on v 15.0.8 and that one still works. All the other versions (Hass, Core, Supervisor) are the same lates ones. I can see the scissors when copying :)

Something must have broken with the versions after that one.

bortek avatar Oct 19 '23 19:10 bortek

I don't own a Windows machine (or can access a windows machine) myself. So can't test or debug this.

frenck avatar Oct 22 '23 12:10 frenck

Well that's good. It's nothing one should have.

Do you happen to have a Linux box? I could test that it on the Linux box. Or do you only have Macs?

bortek avatar Oct 22 '23 12:10 bortek

I just tested it on Ubuntu 23 with XFCE and latest Chrome with the same result. No Copying works.

Could you test make some tests on whatever OS you have available and let us know the results?

bortek avatar Oct 24 '23 19:10 bortek

Could you provide more info about your system? The banner in the add-on logs might help.

tjorim avatar Oct 24 '23 19:10 tjorim

Sure, here it comes.

This is where it still works on Host A

-----------------------------------------------------------
 Add-on: Advanced SSH & Web Terminal
 A supercharged SSH & Web Terminal access to your Home Assistant instance
-----------------------------------------------------------
 Add-on version: 15.0.8
 There is an update available for this add-on!
 Latest add-on version: 15.1.0
 Please consider upgrading as soon as possible.
 System: Home Assistant OS 11.0  (amd64 / qemux86-64)
 Home Assistant Core: 2023.10.3
 Home Assistant Supervisor: 2023.10.0
-----------------------------------------------------------

Host B where it no longer works
-----------------------------------------------------------
 Add-on: Advanced SSH & Web Terminal
 A supercharged SSH & Web Terminal access to your Home Assistant instance
-----------------------------------------------------------
 Add-on version: 15.1.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.0  (amd64 / qemux86-64)
 Home Assistant Core: 2023.10.5
 Home Assistant Supervisor: 2023.10.0
-----------------------------------------------------------


Host C where no longer works
-----------------------------------------------------------
 Add-on: Advanced SSH & Web Terminal
 A supercharged SSH & Web Terminal access to your Home Assistant instance
-----------------------------------------------------------
 Add-on version: 15.1.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.5  (amd64 / qemux86-64)
 Home Assistant Core: 2023.10.2
 Home Assistant Supervisor: 2023.10.0
-----------------------------------------------------------

bortek avatar Oct 24 '23 20:10 bortek

I've the same problem in windows 11/EDGE.

sfortis avatar Nov 03 '23 07:11 sfortis

Having the same issue. Windows 11 with Chrome 119.0.6045.160.

amichaelwagner avatar Nov 24 '23 12:11 amichaelwagner

Anyone know why it has stopped working or any indication of what has broken? Would be glad to troubleshoot and fix if I get some direction where to look.

I dont see any errors in the Debug mode in Chrome though.

bortek avatar Nov 24 '23 13:11 bortek

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

github-actions[bot] avatar Dec 25 '23 08:12 github-actions[bot]

This is still an issue last time I checked. So let's keep it open till we find a solution.

bortek avatar Dec 25 '23 08:12 bortek

This is still an issue last time I checked. So let's keep it open till we find a solution.

I also confirm with Chrome Version 120.0.6099.111 (64 bits)

lecourtb avatar Jan 03 '24 08:01 lecourtb

also not able to copy anything

smoki3 avatar Jan 22 '24 12:01 smoki3

Same here. Used to work in the past Windows 11. Addon version 17.0.4. Microsoft Edge Version 120.0.2210.144 (Official build) (64-bit)

mspiridakis avatar Jan 22 '24 20:01 mspiridakis

AddOn version 17.1.0. Copy Paste only works within the Terminal with middle button click. But not with Cmd+C, Cmd+V MacOS with Safari 17.3.

Onl1ne1373 avatar Feb 08 '24 15:02 Onl1ne1373

middle mouse button is non-existent nowadays.

tested with 17.1.o on Win11 and latest Chrome. Still does not work. Tried all sorts of combination of SHIFT, CTRL, ALT. But version 15.X still works.

bortek avatar Feb 08 '24 15:02 bortek

Also on MacOS it is not working

smoki3 avatar Feb 26 '24 18:02 smoki3

Copy stopped working a few months ago for me too. Addon version 17.1.1 Holding shift key while selecting in terminal used to work (showing weird scissors), but does not anymore.

Just verified ttyd v1.7.4 running alone on the same client works and is able to copy as before (showing weird scissors).

loopy321 avatar Feb 29 '24 04:02 loopy321

tested with 17.1.o on Win11 and latest Chrome. Still does not work. Tried all sorts of combination of SHIFT, CTRL, ALT. But version 15.X still works.

@bortek can you please share how you downgraded to 15.X?

loopy321 avatar Mar 03 '24 17:03 loopy321

After more troubleshooting, left click and highlight does copy the selection (marking it yellow) and can paste into the same addon ttyd terminal with middle-click.
However, this action does not send the selection to the system clipboard as did the earlier versions of the addon (i.e. 15.X).
I can copy into the the addon's ttyd terminal from the system clipboard using Shift-Insert (but middle-click does not use the system clipboard and does not work). So basically the problem (for me) boils down to not being able to copy out of the addon's ttyd terminal.

loopy321 avatar Mar 03 '24 20:03 loopy321

Add me to the list of people who can't seem to copy other than inside the addon but not to the system clipboard, running Fedora Workstation 39 and have tried on both Google Chrome 123.0.6312.86 and Firefox 124.0.1

As @loopy321 wrote

After more troubleshooting, left click and highlight does copy the selection (marking it yellow) and can paste into the same addon ttyd terminal with middle-click. However, this action does not send the selection to the system clipboard

I can verify the same behavior, also if I have something copied in the system clipboard from say a text editor, if I then mark something yellow in the in the addon and paste it in the addon I get both the copied text from the addon and the thing I had copied from the text editor in the system clipboard.

To show what I mean I have copied the word "TEST" in Sublime Text, I then mark "System information" yellow in the addon and the result looks like this once I paste it with middle button on mouse.

image

Belaial avatar Apr 03 '24 06:04 Belaial

COPY and PASTE doesn't work in web terminal on Mac OS Ventura and Big Sur using HomeAssistant url nor HA Companion. But in a web browser (Firefox or Safari) the right mouse button displays the terminal's popup menu underneath the browser's popup menu which makes it extremely difficult to use.

amordicus avatar Apr 03 '24 21:04 amordicus

Filed #721 to address this. Until then, you can use "Ctrl-A : set mouse off".

sorenisanerd avatar Apr 13 '24 13:04 sorenisanerd