Repository navigation
Commit f68a2aa
committed
refactor(mothership): tidy the forwarding of late queue writes
- one lookup instead of a hop loop: only a new-chat key moves, and only to
its chat's key, which never does; liveQueueKey derives from
liveQueuePosition
- migrate keeps the first record, so a repeat cannot rewrite what was ahead
- the history check drops its no-op forwarding: it never runs on a new-chat key
- the dead-key DOM test waits on the queue instead of a fixed sleep1 parent e30a941 commit f68a2aa
3 files changed
Lines changed: 18 additions & 24 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/home/hooks
- stores/mothership-queue
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2866 | 2866 | | |
2867 | 2867 | | |
2868 | 2868 | | |
2869 | | - | |
2870 | | - | |
2871 | | - | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
2872 | 2875 | | |
2873 | 2876 | | |
2874 | 2877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5077 | 5077 | | |
5078 | 5078 | | |
5079 | 5079 | | |
5080 | | - | |
| 5080 | + | |
5081 | 5081 | | |
5082 | 5082 | | |
5083 | 5083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 138 | | |
150 | 139 | | |
151 | 140 | | |
| |||
158 | 147 | | |
159 | 148 | | |
160 | 149 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
169 | 154 | | |
170 | 155 | | |
171 | 156 | | |
| |||
174 | 159 | | |
175 | 160 | | |
176 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
177 | 167 | | |
178 | 168 | | |
179 | 169 | | |
| |||
259 | 249 | | |
260 | 250 | | |
261 | 251 | | |
262 | | - | |
| 252 | + | |
| 253 | + | |
263 | 254 | | |
264 | 255 | | |
265 | 256 | | |
| |||
0 commit comments