Posts with coordinates or board size in game chat truncated

I am losing text from my posts in game chat as displayed in Firefox when they include coordinates. When I view the same game in the app Sente, I see the complete text. It seems that text other than coordinates is omitted after the first point named. I have observed this in the HTML.

In this game I wrote

Testing again: If you play E 3 after I connect at F 1, that forces me to fill 1 point of territory.

and that appears correctly. I then wrote

Testing again: If you play E3 after I connect at F1, that forces me to fill 1 point of territory.

which appears in the chat as

Testing again: If you play E3 F1

but when I copied that from the chat and pasted it here, it appeared as

Testing again: If you playE3F1

Since I had never noticed such a thing on my laptop, I thought it might by due to my (Android / Fairphone 4) smartphone, or even a strange side-effect of having installed the Sente app, but it seems to happen when I chat in Firefox, regardless of whether I am on my laptop or my phone.

But now I have looked at the chat in Sente, and see that the chat appears correctly. That suggests to me one of 2 things:

  • OGS formats chat differently, and wrongly, for the browser.
  • There are strange control characters confusing Firefox.

Looking at in the the HTML inspector I see:
<span class="body"> : <span>Testing again: If you play</span> <span class="position">E3</span> <span class="position">F1</span> </span>
β€” so it looks as though it is wrongly formatted for the browser!

3 Likes

It’s a different specific parsing issue, but I’m encountering a similar case of chat appearing fine in a third-party app (my own Tenuki) but number or board size parsing seems to be screwing up the official client.

I wonder if something broke the chat tokenizer/link extractor recently.


2 Likes

I see this issue as well. Only the coordinates in the message get displayed in the Chat. I found a way around it by adding parenthesis and space. This chat for example:

I had also had an issue of including β€œ19x19” in a message. The whole text gets reduced to only β€œx19”. But I found a way around it by adding space around the β€œx”. For example this chat:

4 Likes

FWIW, experimenting with a test game in the beta server in chrome, safari, and firefox on my mac, both with the https://beta.online-go.com frontent and a locally-served copy of the frontend, I can consistently reproduce the issue with board sizes (typing β€œ9x9” truncates the message to only read β€œx9”, while typing β€œ9” or β€œ9x” in context of another message is fine), but could not reproduce the initial coordinate issue. lazerwalker-test-2 vs. lazerwalker-test for context.

Opened a GH issue for the board size issue: When a chat message contains a "NxN" board size string, the entire message is truncated to just be "xN" Β· Issue #3381 Β· online-go/online-go.com Β· GitHub

2 Likes

FYI, when I open the link from your post, your chats get mauled for me too. Also a Firefox user.

2 Likes

I’m curious if you’re getting the coordinate issue or just the board dimension issue!

@marinakai Today I opened the link again, and the problem seems to be gone. Chats show correctly, both those containing things like β€œA9” and those containing things like β€œ9x9”. I know that yesterday those containing β€œA9” were broken, but I don’t remember β€” actually I didn’t check yesterday β€” if β€œ9x9” was also broken.

1 Like

Same for me. I just checked the game I mentioned in my OP, and the coordinates are fine. Just one surprise:


β€œF1” is not highlighted and does not function as to highlight that spot on the board.

2 Likes