chatcraft.org icon indicating copy to clipboard operation
chatcraft.org copied to clipboard

shared chats flatten retry-with messages :(

Open tarasglek opened this issue 1 year ago • 1 comments

The following 2 links are same chat, but selecting diff message https://issue-285.console-overthinker-dev.pages.dev/api/share/chatcraft_dev/3sVTM2_mEaqx7493X9jKi https://issue-285.console-overthinker-dev.pages.dev/api/share/chatcraft_dev/6gfyPUJ398FCgEahIZXOp

image

We should preserve retry-with when sharing.

tarasglek avatar Feb 09 '24 09:02 tarasglek

This is a surprisingly hard problem to solve. It would require us to change how our entire data layer works, since we effectively watch the database for changes, and use that to trigger re-renders. With a shared chat, we load it as JSON from the server, and it never changes.

To solve this, we need to somehow re-trigger the load, and have it use a different version for a given message. One approach might be to use the query string to specify a different message version for one of the messages via a query string param, which would reload.

humphd avatar Feb 09 '24 13:02 humphd