fregante/GhostText

After recent upgrade, GhostText disconnects from editor after 30 seconds

Open

#317 opened on Jul 1, 2024

 (14 comments) (4 reactions) (1 assignee)JavaScript (133 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (3,611 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description and repro

Sometime in the last few days GhostText stopped working properly on both my Linux computers. I suspect it has to do with the recent GhostText update (Firefox says "Last Updated June 30, 2024" for GhostText on about:addons).

The content of the text area appears in my editor (Emacs using https://github.com/alpha22jp/atomic-chrome), and I can edit it, and if I close the editor buffer within 30 seconds everything works normally.

But almost exactly 30 seconds after I click the GhostText button in Firefox, the editor buffer closes (just as if I closed it manually), but GhostText in Firefox appears to still be active (green tickmark on GhostText icon) so I cannot easily enable the editing again without reloading the web page.

The 30s seems to be if the editor is idle. If I type in the editor more or less constantly, I can see the edits in the Firefox text area, and the connection lives for a little longer, around 55 seconds.

This could of course be an Emacs problem, but I tried snooping on the Websocket traffic between Firefox and Emacs using Wireshark, and I can see that Firefox/GhostText sends a "WebSocket Connection Close" packet exactly when Emacs closes the buffer.

I realize Emacs is not officially supported and I have not tested in Chrome, but it seems like a clear regression in GhostText (or maybe something triggered by a recent Firefox update)

Browser(s) tried

Firefox

Editor(s) tried

Emacs

Contributor guide