Commit 71b9751
committed
fix: address PR review — deep-copy events/state, clarify agent param
- Deep-copy events via model_copy(deep=True) so source stays immutable
- Deep-copy agent_state via copy.deepcopy for mutable values
- RemoteConversation.fork() now raises NotImplementedError when
agent is passed (server doesn't support agent replacement yet)
Co-authored-by: openhands <openhands@all-hands.dev>1 parent c0aae2a commit 71b9751
File tree
2 files changed
+24
-15
lines changed- openhands-sdk/openhands/sdk/conversation/impl
2 files changed
+24
-15
lines changedLines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
371 | | - | |
| 372 | + | |
372 | 373 | | |
373 | | - | |
| 374 | + | |
374 | 375 | | |
375 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
376 | 380 | | |
377 | 381 | | |
378 | 382 | | |
379 | | - | |
| 383 | + | |
380 | 384 | | |
381 | 385 | | |
382 | 386 | | |
| |||
Lines changed: 16 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
1320 | | - | |
1321 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1322 | 1323 | | |
1323 | 1324 | | |
1324 | 1325 | | |
| |||
1327 | 1328 | | |
1328 | 1329 | | |
1329 | 1330 | | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1330 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1331 | 1341 | | |
1332 | 1342 | | |
1333 | 1343 | | |
1334 | | - | |
1335 | | - | |
1336 | 1344 | | |
1337 | 1345 | | |
1338 | 1346 | | |
| |||
1347 | 1355 | | |
1348 | 1356 | | |
1349 | 1357 | | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
1357 | 1362 | | |
1358 | 1363 | | |
1359 | 1364 | | |
| |||
0 commit comments