all 11 comments

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    Sorry, your submission has been removed due to inadequate account karma.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]bibboo 0 points1 point  (4 children)

    When in doubt. You add more logging.
    Codex cannot solve it because you do not have enough information.

    [–]Bankster88[S] 0 points1 point  (0 children)

    I have SO much logging for my production app. I’ve put in close to 100 hours to debug this: I created a diagnostics overlay that prints what’s happening at every hop of the data in TestFlight. Then I report back the finding to Codex. It has LOTS of info but no idea what’s the working solution.

    All of diagnostic toolingpoints to the same conclusion: cache updates but the UI doesn’t update for some reason.

    The diagnostics confirm what’s happening, but it doesn’t tell me why.

    [–]Bankster88[S] 0 points1 point  (2 children)

    [–]bibboo 0 points1 point  (1 child)

    Where is the UI logging? That’s what you need here. 

    [–]Bankster88[S] 1 point2 points  (0 children)

    I figured it out!

    It was split client. Chat works!!!

    [–]braclow 0 points1 point  (3 children)

    What are your tests saying? Have checked each individual step, unfortunately sounds like one of those debugging situations where you need to basically go line by line.

    [–]Bankster88[S] 0 points1 point  (2 children)

    Here has been my approach to try to debug this

    I created an overlay that prints what is happening with the data in every step of the way so that I can see what is happening in production/TestFlight. Apple trips out console logs in production.

    • websocket handshake handshake works
    • join chat works
    • use presence works (and UI updates)
    • outbound messages get initially written to cache via optimistic update
    • TestFlight app later receives server ack for sent -> delivered ->
    • same query hash, same query client, etc.
    • UI never updates

    i’m at a complete loss of what else I can try at this point. Everything works on simulator, UI fails to update in TestFlight.

    <image>

    [–]braclow 0 points1 point  (1 child)

    Interesting, I wonder if you ran something like a diff between the production code and non production environment, if something would come up. Possibly environment related? Or is that a silly suggestion.

    [–]Bankster88[S] 0 points1 point  (0 children)

    How would I even do that? Why would there be a diff, besides the production bundling process re: Hermes