alfred-mouseless-messenger icon indicating copy to clipboard operation
alfred-mouseless-messenger copied to clipboard

Can't see message history

Open ognistik opened this issue 2 years ago • 17 comments

img For some reason I can't get the whole message history or thread with previous messages. I press SHIFT and an empty page pops up like this. Same when I tried to save as pdf or as html, there's nothing there.

ognistik avatar Feb 10 '23 21:02 ognistik

If you try to open the exported HTML in Safari, what do you see?

stephancasas avatar Feb 10 '23 22:02 stephancasas

oh man sorry, I thought I could export the HTML but it seems I was wrong. I am only able to 'preview' that screen with the html I posted which leads nowhere when clicked, and when pressing Option + Enter to save as html nothing is saved. I can save the PDF with CMD + Enter but this one is just a blank page.

ognistik avatar Feb 11 '23 02:02 ognistik

Jumping back into this, were you able to solve the issue, or does this need further attention?

stephancasas avatar Apr 04 '23 05:04 stephancasas

I just could never figure out a way to solve it. Can't see any message history until now. I've updated to the latest version 2.0.1 and still nothing. The workflow itself still works and I can reply messages.

ognistik avatar Apr 04 '23 18:04 ognistik

I have this same exact issue. M1 Max 13.4.

carlos-kelley avatar Apr 14 '23 19:04 carlos-kelley

When you activate the workflow with msg, do you see the names of the conversations and the last message preview in the subtitle, or that not populating at all/partially?

Is it just the conversation QuickLook preview that isn't rendering properly?


Also, please share the following details about your setup:

  • macOS Version
  • Default browser
  • Using iCloud Messages?
  • Any special characters in conversation history or contact names?
  • Recently un-sent a message or had a received message un-sent?
  • Recently sent or received a message effect (confetti, spotlight, etc.)?

Thanks!

stephancasas avatar Apr 14 '23 20:04 stephancasas

As I typed-out that message, I zeroed-in on your remark that you're using an M1 Mac.

The issue you're experiencing may be a problem with Apple Silicon.


My desktop is a 2019 Mac Pro and is where I do most of my work but, a few days ago, I was on the road and pulled out my MacBook Pro to knock-out some work. One of the things I noticed is that the Objective-C bridge in JXA on Apple Silicon has trouble handling id types.

For example, this will work on Intel-based Macs, but will fail on Apple Silicon:

$.NSLog('%@', 'Hello, world!);

It should work on both but, for whatever reason, doesn't. The issue is likely with these lines:

https://github.com/stephancasas/alfred-mouseless-messenger/blob/ce284638224be06f893c70707eb45530698eac39/src/main.jxa.js#L104-L111


I'll see about using a different method to write chat previews to the disk. It's worth noting that I'm also working on a Swift-based version of this, though, so that will be on the way, too.

stephancasas avatar Apr 14 '23 20:04 stephancasas

When you activate the workflow with msg, do you see the names of the conversations and the last message preview in the subtitle, or that not populating at all/partially? Actually yes, that works.

Is it just the conversation QuickLook preview that isn't rendering properly? That's correct, it looks exactly the same, with the same crashing and blank PDF export as described above.

Also, please share the following details about your setup:

  • macOS Version Ventura - 13.4 beta (22F5027f). M1 Max
  • Default browser - Safari
  • Using iCloud Messages? Yes
  • Any special characters in conversation history or contact names? No
  • Recently un-sent a message or had a received message un-sent? No
  • Recently sent or received a message effect (confetti, spotlight, etc.)? No

Thanks!

carlos-kelley avatar Apr 14 '23 20:04 carlos-kelley

Just saw your other message too. I think I can test this on an Intel-based Mac, and also an M1 Mac on a stable OS release, later today. Thanks for the quick responses and I'll be in touch! If there's any other debugging I can do, let me know.

carlos-kelley avatar Apr 14 '23 20:04 carlos-kelley

Thank you! Please let me know what you find. I appreciate it!

stephancasas avatar Apr 14 '23 20:04 stephancasas

I also noticed that sometimes typing msg does not work and brings me back into normal Alfred. I actually have to type ms and then hit enter to enter the Mouseless Messenger workflow, which then shows me the conversations correctly. It seems like once I do this, msg works properly for a while, but eventually I have to redo this process. I can make a separate Issue, but it might be linked to this. Anyway, I'll report back when I test it on an Intel Mac.

carlos-kelley avatar Apr 14 '23 20:04 carlos-kelley

Commenting here as I have the same issue, but it looks slightly differently:

CleanShot 2023-06-08 at 10 22 29

Also, hitting Shift seems to trigger that annoying macOS "error" boop sound.

bowernite avatar Jun 08 '23 15:06 bowernite

I am seeing the same behavior as @babramczyk where pressing shift just shows me a preview of an HTML file.

  • macOS Version Ventura - 13.4 beta (22F5027f). M1 Max
  • Default browser - Safari
  • Using iCloud Messages? Yes
  • Any special characters in conversation history or contact names? No
  • Recently un-sent a message or had a received message un-sent? No
  • Recently sent or received a message effect (confetti, spotlight, etc.)? No

gaufde avatar Jun 09 '23 19:06 gaufde

I think this may be a text-encoding issue, but it will be determine without seeing an example.

Would anyone in this thread be willing to:

  • Send me a redacted copy of the conversation data?
  • Join me on a screen sharing session to troubleshoot?

On my MacBook Pro (M1 Pro), I don't experience the issue so, while there is definitely still a weird idiosyncrasy with id types (in this case NSString) on Apple Silicon, I'm not certain that's the trouble here.

If neither of the suggestions suit anyone, I may be able to write a script that provides troubleshooting output but, since I'm not entirely sure what I'm looking for here, some sample data would be ideal.


On the upside, the native version is progressing nicely:

stephancasas avatar Jun 09 '23 19:06 stephancasas

I'm willing to help! How should I export conversation data?

gaufde avatar Jun 10 '23 00:06 gaufde

@gaufde I appreciate your help!

Conversation HTML output should be stored in the user caches directory at:

~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.stephancasas.AlfredMouselessMessenger/

If you can send me a ZIP archive of that folder, that would be a superb starting point.

My e-mail address is [email protected].

stephancasas avatar Jun 17 '23 15:06 stephancasas

@stephancasas zip file is on its way! Hopefully this helps.

gaufde avatar Jun 17 '23 17:06 gaufde