Shift + mouse-drag no longer copies text to the system clipboard in Terminal & SSH addon
Describe the issue you are experiencing
Copy text from the Terminal window using shift + mouse select no longer copies the selected text into the host system's clipboard. It used to be possible to hold the shift key down while selecting text in the terminal window using the left mouse button, after the left mouse button was released, a scissor icon would briefly appear in the terminal window and the selected text would be in the client system's clipboard, ready to be pasted. As described in the documentation for the addon:
The Web Terminal You can access the web terminal by clicking the "Open Web UI" button on this add-on's Info tab. If you set the "Show in sidebar" setting (found on the same Info tab) to "on", a shortcut is added to the sidebar allowing you to access the web terminal quickly.
To copy text from the Web UI:
Hold down the SHIFT key. Select the text you want to copy using your mouse. On releasing the left mouse button, the text gets copied to your system clipboard.
Now the scissor icon no longer appears, plus the system clipboard is left unaltered.
Client is Windows 10, Version 22H2 (OS build 1905, 4412). Running the Home Assistant app: Core 2024.5.4 Supervisor 2024.05.1 Operating System 12.3 Frontend 20240501.1
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
Terminal & SSH
What is the version of the add-on?
9.14.0
Steps to reproduce the issue
1 Open the terminal window 2 press and hold the shift key on your keyboard 3 point your mouse in front of the text in the terminal window you want to copy 4 press and hold the left mouse button 5 drag the mouse cursor to the end of the text to copy (a gray-ish box will appear over the text) 6 release the left mouse button 7 try and paste the text into some other window (for example a notepad window)
System Health information
System Information
| version | core-2024.5.4 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python_version | 3.12.2 |
| os_name | Linux |
| os_version | 6.6.29-haos |
| arch | x86_64 |
| timezone | Europe/Amsterdam |
| config_dir | /config |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| GitHub API Calls Remaining | 4999 |
| Installed Version | 1.34.0 |
| Stage | running |
| Available Repositories | 1393 |
| Downloaded Repositories | 53 |
Home Assistant Cloud
| logged_in | true |
|---|---|
| subscription_expiration | April 6, 2025 at 02:00 |
| relayer_connected | true |
| relayer_region | eu-central-1 |
| remote_enabled | true |
| remote_connected | true |
| alexa_enabled | false |
| google_enabled | true |
| remote_server | eu-central-1-6.ui.nabu.casa |
| certificate_status | ready |
| instance_id | 5301c2a7b4a74d74908161343c21f883 |
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Home Assistant Supervisor
| host_os | Home Assistant OS 12.3 |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2024.05.1 |
| agent_version | 1.6.0 |
| docker_version | 25.0.5 |
| disk_total | 116.7 GB |
| disk_used | 24.1 GB |
| healthy | true |
| supported | true |
| board | generic-x86-64 |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | File editor (5.8.0), Log Viewer (0.17.0), Mosquitto broker (6.4.0), Z-Wave JS UI (3.6.0), Terminal & SSH (9.14.0), Home Assistant Google Drive Backup (0.112.1), ESPHome (2024.5.2), Spotify Connect (0.13.0), Whisper (2.0.0), Piper (1.5.0), chrony (3.0.1), Samba share (12.3.1), Studio Code Server (5.15.0), openWakeWord (1.10.0) |
Dashboards
| dashboards | 12 |
|---|---|
| resources | 34 |
| views | 46 |
| mode | storage |
Recorder
| oldest_recorder_run | May 16, 2024 at 05:33 |
|---|---|
| current_recorder_run | May 23, 2024 at 22:10 |
| estimated_db_size | 2792.09 MiB |
| database_engine | sqlite |
| database_version | 3.44.2 |
Spotify
| api_endpoint_reachable | ok |
|---|
Anything in the Supervisor logs that might be useful for us?
The only thing I see releated to this addon is a warning, it appears multiple times. It doesn't look related to me, but here is an example:
2024-05-24 00:11:35.324 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
The full log contents follows:
2024-05-23 22:10:57.201 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
2024-05-23 22:11:39.856 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to STARTING
2024-05-23 22:11:49.923 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
2024-05-23 22:11:49.924 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
2024-05-23 22:11:49.936 INFO (MainThread) [supervisor.backups.manager] Full-Restore 4e228c53 done
2024-05-23 22:14:04.754 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
2024-05-23 22:14:06.376 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_vscode
2024-05-23 22:14:06.510 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
2024-05-23 22:15:21.699 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Cannot proxy websocket message of unsupported type: 257
2024-05-23 22:15:21.701 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API for a0d7b954_vscode closed
2024-05-23 22:15:53.438 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:19:29.583 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:19:30.268 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_ssh
2024-05-23 22:19:30.271 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_ssh
2024-05-23 22:19:30.275 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from core_ssh
2024-05-23 22:19:30.278 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from core_ssh
2024-05-23 22:20:31.670 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-05-23 22:20:53.313 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:25:53.313 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:26:32.598 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/davidusb-geek/emhass-add-on repository
2024-05-23 22:26:32.603 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/mercenaruss/zigstar_addons repository
2024-05-23 22:26:32.616 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup repository
2024-05-23 22:26:32.624 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/music-assistant/home-assistant-addon repository
2024-05-23 22:26:32.634 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
2024-05-23 22:26:32.636 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
2024-05-23 22:26:32.643 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
2024-05-23 22:26:32.733 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
2024-05-23 22:26:34.777 INFO (MainThread) [supervisor.store] Loading add-ons from store: 85 all - 0 new - 0 remove
2024-05-23 22:26:34.778 INFO (MainThread) [supervisor.store] Loading add-ons from store: 85 all - 0 new - 0 remove
2024-05-23 22:26:35.010 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:26:46.442 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:28:24.202 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'wsrichard'
2024-05-23 22:28:24.859 INFO (MainThread) [supervisor.auth] Successful login for 'wsrichard'
2024-05-23 22:31:35.388 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:36:35.363 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:41:35.367 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:46:35.329 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:49:14.035 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-05-23 22:49:14.036 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-05-23 22:49:14.038 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-05-23 22:49:14.038 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-05-23 22:49:14.039 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-05-23 22:49:14.051 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-05-23 22:49:14.114 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-05-23 22:49:14.115 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-05-23 22:49:14.115 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-05-23 22:49:14.116 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-05-23 22:49:14.116 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-05-23 22:49:14.117 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-05-23 22:49:14.117 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-05-23 22:49:14.118 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-05-23 22:49:14.326 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-05-23 22:49:14.327 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-05-23 22:49:14.327 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-05-23 22:50:37.661 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-05-23 22:51:35.326 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 22:56:35.435 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:01:35.463 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:05:07.121 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:06:35.354 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:11:35.413 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:16:35.380 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:20:43.366 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-05-23 23:21:35.348 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:26:35.338 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:26:48.110 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:31:35.333 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:36:35.325 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:41:35.337 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:41:37.299 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-05-23 23:41:37.308 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-05-23 23:46:35.415 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:49:14.329 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-05-23 23:49:14.330 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-05-23 23:49:14.331 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-05-23 23:49:14.332 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-05-23 23:49:14.333 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-05-23 23:49:14.346 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-05-23 23:49:14.420 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-05-23 23:49:14.421 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-05-23 23:49:14.422 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-05-23 23:49:14.422 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-05-23 23:49:14.423 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-05-23 23:49:14.423 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-05-23 23:49:14.424 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-05-23 23:49:14.424 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-05-23 23:49:14.679 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-05-23 23:49:14.680 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-05-23 23:49:14.680 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-05-23 23:50:48.624 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-05-23 23:51:35.342 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:52:08.697 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
2024-05-23 23:56:35.396 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-23 23:58:48.695 INFO (MainThread) [supervisor.host.info] Updating local host information
2024-05-23 23:58:49.432 INFO (MainThread) [supervisor.host.services] Updating service information
2024-05-23 23:58:49.440 INFO (MainThread) [supervisor.host.network] Updating local network information
2024-05-23 23:58:49.651 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
2024-05-23 23:58:49.661 INFO (MainThread) [supervisor.host.manager] Host information reload completed
2024-05-24 00:01:35.342 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-24 00:06:35.307 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
2024-05-24 00:11:35.324 WARNING (MainThread) [supervisor.addons.options] Unknown option 'sftp' for Terminal & SSH (core_ssh)
Anything in the add-on logs that might be useful for us?
I don't see anything relevant in the log (the killing was me trying anything).
The full log contents follows:
Terminal & SSH
[2024/05/23 21:53:29:1871] N: __lws_lc_tag: ++ [wsisrv|0|adopted] (1)
[2024/05/23 21:53:29:1908] N: HTTP / - 172.30.32.2
[2024/05/23 21:53:29:7367] N: HTTP /token - 172.30.32.2
[2024/05/23 21:53:29:8566] N: WS /ws - 172.30.32.2, clients: 1
[2024/05/23 21:53:29:8931] N: started process, pid: 200
[2024/05/23 21:53:55:0497] N: WS closed from 172.30.32.2, clients: 0
[2024/05/23 21:53:55:0498] N: killing process, pid: 200
[2024/05/23 21:53:55:0499] N: __lws_lc_untag: -- [wsisrv|0|adopted] (0) 25.862s
[2024/05/23 21:53:55:0523] N: process killed with signal 0, pid: 200
[2024/05/23 21:55:33:2242] N: __lws_lc_tag: ++ [wsisrv|1|adopted] (1)
[2024/05/23 21:55:33:2256] N: HTTP / - 172.30.32.2
[2024/05/23 21:55:33:6202] N: HTTP /token - 172.30.32.2
[2024/05/23 21:55:33:7823] N: WS /ws - 172.30.32.2, clients: 1
[2024/05/23 21:55:33:8081] N: started process, pid: 220
[2024/05/23 22:03:30:4889] N: WS closed from 172.30.32.2, clients: 0
[2024/05/23 22:03:30:4890] N: killing process, pid: 220
[2024/05/23 22:03:30:4891] N: __lws_lc_untag: -- [wsisrv|1|adopted] (0) 7.954min
[2024/05/23 22:03:30:4907] N: process killed with signal 0, pid: 220
[2024/05/23 22:04:58:9464] N: __lws_lc_tag: ++ [wsisrv|2|adopted] (1)
[2024/05/23 22:04:58:9479] N: HTTP / - 172.30.32.2
[2024/05/23 22:04:59:3978] N: HTTP /token - 172.30.32.2
[2024/05/23 22:04:59:5513] N: WS /ws - 172.30.32.2, clients: 1
[2024/05/23 22:04:59:5782] N: started process, pid: 243
[2024/05/23 22:05:25:8308] N: WS closed from 172.30.32.2, clients: 0
[2024/05/23 22:05:25:8309] N: killing process, pid: 243
[2024/05/23 22:05:25:8311] N: __lws_lc_untag: -- [wsisrv|2|adopted] (0) 26.884s
[2024/05/23 22:05:25:8335] N: process killed with signal 0, pid: 243
s6-rc: info: service legacy-services: stopping
[2024/05/23 22:06:31:8025] N: received signal: SIGTERM (15), exiting...
[2024/05/23 22:06:31:8029] N: send ^C to force exit.
[20:06:31] INFO: Service restart after closing
[20:06:31] INFO: Service restart after closing
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/apks.sh
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
v3.19.1-577-gb3ea1811daf [https://dl-cdn.alpinelinux.org/alpine/v3.19/main]
v3.19.1-575-gd679707d49e [https://dl-cdn.alpinelinux.org/alpine/v3.19/community]
OK: 23043 distinct packages available
(1/1) Installing sqlite (3.44.2-r0)
Executing busybox-1.36.1-r15.trigger
OK: 96 MiB in 102 packages
cont-init: info: /etc/cont-init.d/apks.sh exited 0
cont-init: info: running /etc/cont-init.d/keygen.sh
[22:08:27] INFO: Restoring host keys...
cont-init: info: /etc/cont-init.d/keygen.sh exited 0
cont-init: info: running /etc/cont-init.d/profile.sh
cont-init: info: /etc/cont-init.d/profile.sh exited 0
cont-init: info: running /etc/cont-init.d/ssh.sh
[22:08:27] INFO: Setup authorized_keys
cont-init: info: /etc/cont-init.d/ssh.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun sshd (no readiness notification)
services-up: info: copying legacy longrun ttyd (no readiness notification)
[22:08:28] INFO: Starting Web Terminal...
[2024/05/23 22:08:28:0333] N: ttyd 1.7.4-fa1ee59 (libwebsockets 4.3.3-v4.3.3)
[2024/05/23 22:08:28:0335] N: tty configuration:
[2024/05/23 22:08:28:0336] N: start command: tmux -u new -A -s homeassistant bash -l
[2024/05/23 22:08:28:0336] N: close signal: SIGHUP (1)
[2024/05/23 22:08:28:0336] N: terminal type: xterm-256color
s6-rc: info: service legacy-services successfully started
[2024/05/23 22:08:28:0354] N: /usr/lib/libwebsockets-evlib_uv.so
[2024/05/23 22:08:28:0356] N: lws_create_context: LWS: 4.3.3-v4.3.3, NET CLI SRV H1 H2 WS ConMon IPV6-off
[2024/05/23 22:08:28:0357] W: lws_create_context: unreasonable ulimit -n workaround
[2024/05/23 22:08:28:0358] N: elops_init_pt_uv: Using foreign event loop...
[2024/05/23 22:08:28:0360] N: __lws_lc_tag: ++ [wsi|0|pipe] (1)
[2024/05/23 22:08:28:0362] N: __lws_lc_tag: ++ [vh|0|netlink] (1)
[2024/05/23 22:08:28:0363] N: __lws_lc_tag: ++ [vh|1|default||8099] (2)
[2024/05/23 22:08:28:0364] N: [vh|1|default||8099]: lws_socket_bind: source ads 0.0.0.0
[2024/05/23 22:08:28:0365] N: __lws_lc_tag: ++ [wsi|1|listen|default||8099] (2)
[2024/05/23 22:08:28:0365] N: Listening on port: 8099
[22:08:28] WARNING: SSH port is disabled. Prevent start of SSH server.
[2024/05/23 22:19:29:6354] N: __lws_lc_tag: ++ [wsisrv|0|adopted] (1)
[2024/05/23 22:19:29:6368] N: HTTP / - 172.30.32.2
[2024/05/23 22:19:30:0343] N: HTTP /token - 172.30.32.2
[2024/05/23 22:19:30:1535] N: WS /ws - 172.30.32.2, clients: 1
[2024/05/23 22:19:30:1891] N: started process, pid: 200
[2024/05/23 22:20:16:9736] N: WS closed from 172.30.32.2, clients: 0
[2024/05/23 22:20:16:9737] N: killing process, pid: 200
[2024/05/23 22:20:16:9738] N: __lws_lc_untag: -- [wsisrv|0|adopted] (0) 47.338s
[2024/05/23 22:20:16:9758] N: process killed with signal 0, pid: 200
[2024/05/23 23:05:07:1785] N: __lws_lc_tag: ++ [wsisrv|1|adopted] (1)
[2024/05/23 23:05:07:1798] N: HTTP / - 172.30.32.2
[2024/05/23 23:05:07:6355] N: HTTP /token - 172.30.32.2
[2024/05/23 23:05:07:7514] N: WS /ws - 172.30.32.2, clients: 1
[2024/05/23 23:05:07:7778] N: started process, pid: 219
[2024/05/23 23:20:18:2707] N: __lws_lc_tag: ++ [wsisrv|2|adopted] (2)
[2024/05/23 23:20:18:2723] N: HTTP / - 172.30.32.2
[2024/05/23 23:20:23:2783] N: __lws_lc_untag: -- [wsisrv|2|adopted] (1) 5.007s
Additional information
Copy used to work before with older HA versions, but I'm not sure when it stopped working. I think it was one of the HA 2024.4.x or maybe 2024.3.x versions where I last successfully used it.
After much experimenting I found that the scissor icon still does appear and the text does get put onto the clipboard when at the moment the mouse button is released, the mouse cursor is outside the terminal window. i.e. if i position the mouse cursor after the text, press and hold shift, then drag over the text past the side the terminal window (= the mouse cursor moves outside the terminal window) and only there release the mouse button, the text does get copied.
Yes, this is infuriating. It's very hard to discover that you have to place mouse outside the window (in fact has to be to the left) before releasing the mouse button. If not a bug this should at least be documented.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still an issue
It is still an issue. I'm having the exact same behavior (not copying to the clipboard unless the cursor is outside the terminal window when the mouse button is released).
still an issue. And community discussion of this issue is since Oct 2018, 19 users, 6 years.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still does not behave as specified in the documentation. Please fix this as it makes the terminal much less useful.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still an issue that needs to be addressed.
This is still a really irritating issue I have tested on Windows and Linux OS's, trying both Firefox and Chrome on both OS.
I can't even get it to copy by dragging the mouse outside the window. Resorted to directing output of the command to homeassistan/aaaa then using file editor to look at the file aaaa: e.g.
$ ls -l /dev/serial/by-id > homeassistant/aaaa
then edit the file aaaa and you see the following:
total 0 lrwxrwxrwx 1 root root 13 Oct 21 21:06 usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_085ea8ee8d38ef11a922387af3d9b1e5-if00-port0 -> ../../ttyUSB0
A ridiculous work around but easier than typing that UID
Unfortunately same issue here too with ha0s13.2 (no copy and paste)- I don't get the same issue with homeassistant-core though.
@sairon @agners @frenck could you please point in direction where and what was changed that may have possibly caused the issue, so we can create PR? I am looking at https://github.com/home-assistant/addons/tree/de30123a5c930830590ae2db0c946f4d4273968d/ssh - is ssh console served by ssh server or something else?
@romanr The web SSH console is ttyd served by the add-on. It's installed in the Dockerfile, the version is defined in build.yaml.
I canot find any combination of any keystrokes or clicking that appears to work on a Mac with home assistant terminal add-on. This is incredibly frustrating for copying logs out for example. This really needs to have a workable solution.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is still a problem
Are there any workarounds?
This doesn't appear to work on Mac Chrome still. Shift-click and drag does nothing at all.
This issue is absolutely driving me crazy. I cannot copy/paste in SSH sessions from my Mac or through the browser terminal. I expected to find more messages about this issue. Don't have a windows computer to see if that works better. Isn't there some toggle that we can set in the .zshrc file that disables the text-based right-click menu?
Edit: In keeping with the username, which applies to forums as well, with further searching I found that a workaround has been found which seems to work well, if somewhat more cumbersome than click-drag-copy that we are all use to. I guess it pays to do just one more search. I tried it in several scenarios and if you follow the sequence it seems to work well. In Terminal:
- Shift button first
- left mouse button and drag what you want
- Release left mouse button first then the shift button In the receiving document: Pick your spot then control v TADA… The information can be found in the following link. Give kudos to the contributors there as they worked it out. https://community.home-assistant.io/t/copy-and-paste-with-the-system-clipboard-in-ssh-web-terminal-addon/74571
Core 2025.4.1 Supervisor 2025.07.1 Operating System 15.1 Frontend 20250404.0 RPI5
Seams to still be an issue. I have not been able get the above workaround to work in this version either. Using Windows 10 with Firefox.
https://github.com/home-assistant/addons/blob/master/ssh/DOCS.md#the-web-terminal - Directions do not work in Safari on Mac. Also HANubie954 - those directions do not work with the Terminal add-on in Safari on Mac.
With no modifier keys, I can sweep out with the left button and visibly select a region, but holding down any modifier key combination, including shift alone, prevents visibly sweeping out a region.
With a visibly swept out selected region, no combination of modifier keys overrides any part of Safari's right-click contextual menu, so Copy is not available.
I'd be happy to use something like: use the left button to visibly select a region, ^K to put it in the yank buffer, then ^Y to paste it at the Terminal insertion point, but that doesn't work.
In any case: https://github.com/home-assistant/addons/blob/master/ssh/DOCS.md#the-web-terminal directions don't work. Please update with directions that do.
Terminal&SSH Current version: 9.18.0 OS Version: Home Assistant OS 16.0 Core: 2025.7.4
More in my comment: https://community.home-assistant.io/t/copy-and-paste-with-the-system-clipboard-in-ssh-web-terminal-addon/74571/25