Commit aec17d2
authored
🤖 fix: persist status URL using storage.ts pattern (#832)
Status URLs now use the standard storage.ts key pattern and are properly
migrated on workspace rename.
## Changes
- Add `getStatusUrlKey` to storage.ts with standard format
(`statusUrl:{workspaceId}`)
- Register in `PERSISTENT_WORKSPACE_KEY_FUNCTIONS` for fork/delete
- Add `migrateWorkspaceStorage` for rename support (fixes pre-existing
bug where all workspace storage was lost on rename)
- Update `StreamingMessageAggregator` to use centralized key function
## Why
Previously, status URLs used a non-standard key format
(`mux:workspace:...`) that wasn't registered in storage.ts, so:
1. Keys weren't copied on fork
2. Keys weren't deleted on workspace removal
3. Keys weren't migrated on rename (pre-existing bug affecting all
workspace storage)
_Generated with `mux`_1 parent 1e3dce5 commit aec17d2
File tree
3 files changed
+30
-15
lines changed- src
- browser
- contexts
- utils/messages
- common/constants
3 files changed
+30
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
| |||
328 | 333 | | |
329 | 334 | | |
330 | 335 | | |
331 | | - | |
332 | | - | |
333 | 336 | | |
334 | 337 | | |
335 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 129 | | |
135 | 130 | | |
136 | | - | |
137 | | - | |
| 131 | + | |
138 | 132 | | |
139 | | - | |
| 133 | + | |
140 | 134 | | |
141 | 135 | | |
142 | 136 | | |
| |||
148 | 142 | | |
149 | 143 | | |
150 | 144 | | |
151 | | - | |
152 | | - | |
| 145 | + | |
153 | 146 | | |
154 | | - | |
| 147 | + | |
155 | 148 | | |
156 | 149 | | |
157 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
| |||
202 | 211 | | |
203 | 212 | | |
204 | 213 | | |
| 214 | + | |
205 | 215 | | |
206 | 216 | | |
207 | 217 | | |
| |||
242 | 252 | | |
243 | 253 | | |
244 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
0 commit comments