codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
71 stars 16 forks source link

yjs server can't connect to the new kernel #490

Closed senwang86 closed 12 months ago

senwang86 commented 12 months ago

The yjs and api server still try to connect the previous kernel after activating a new kernel, to reproduce,

The problem got fixed after restart yjs and api containers twice.

Screenshot 2023-08-28 at 4 31 26 PM Screenshot 2023-08-28 at 4 30 47 PM Screenshot 2023-08-28 at 4 39 33 PM
senwang86 commented 12 months ago

Need some help to understand the resolver_yjs.ts and yjs-runtime.ts.

lihebi commented 12 months ago

There are some leftover tasks in runtime. I'll work on that.

For now, if a runtime doesn't connect, just delete it and create a new one.