Commit 8984d2e
authored
Fix scheduler memory get with user_name and retries (#624)
* Fix scheduler memory get with user_name and retries
* Fix: Ensure multi-tenancy for working memory in GeneralScheduler
Correctly pass mem_cube_id as user_name to get_working_memory in process_session_turn to maintain tenant isolation for working memory management. This addresses a potential data leakage issue in multi-tenant environments.
* Revert user_name param on mem_os core accessors
---------
Co-authored-by: [email protected] <>1 parent 6f66aef commit 8984d2e
File tree
6 files changed
+29
-15
lines changed- src/memos
- mem_scheduler
- memories/textual
6 files changed
+29
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
340 | | - | |
341 | | - | |
342 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
343 | 355 | | |
344 | 356 | | |
345 | 357 | | |
| |||
366 | 378 | | |
367 | 379 | | |
368 | 380 | | |
369 | | - | |
| 381 | + | |
370 | 382 | | |
371 | 383 | | |
372 | 384 | | |
| |||
825 | 837 | | |
826 | 838 | | |
827 | 839 | | |
828 | | - | |
| 840 | + | |
829 | 841 | | |
830 | 842 | | |
831 | 843 | | |
| |||
1077 | 1089 | | |
1078 | 1090 | | |
1079 | 1091 | | |
1080 | | - | |
| 1092 | + | |
1081 | 1093 | | |
1082 | 1094 | | |
1083 | 1095 | | |
| |||
1133 | 1145 | | |
1134 | 1146 | | |
1135 | 1147 | | |
1136 | | - | |
| 1148 | + | |
1137 | 1149 | | |
1138 | 1150 | | |
1139 | 1151 | | |
| |||
1242 | 1254 | | |
1243 | 1255 | | |
1244 | 1256 | | |
1245 | | - | |
| 1257 | + | |
1246 | 1258 | | |
1247 | 1259 | | |
1248 | 1260 | | |
| |||
1357 | 1369 | | |
1358 | 1370 | | |
1359 | 1371 | | |
1360 | | - | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
1361 | 1375 | | |
1362 | 1376 | | |
1363 | 1377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
0 commit comments