Repository navigation
Commit 6906c02
easonLiangWorldedtech
test(write-to-file): align the partial-path case with handlePartial's no-filesystem contract
platform-unit-test (ubuntu-latest) fails on this branch while it passes locally, because the failing case
is it.skipIf(process.platform === "win32"): Windows CI and every local run skip it.
The case predates this unit. It asserted that the second streaming delta calls createDirectoriesForFile,
which is exactly the call this unit removes: an unguarded mkdir in handlePartial threw EROFS up into
BaseTool.handle(), which never set didRejectTool/didAlreadyUseTool, so presentAssistantMessage's
advancement gate was never reached and the agent loop stalled. The unit's own regression test ("EROFS in
handlePartial does not stall agent loop") pins the new contract; this older case still asserted the old
one, so the two contradicted and only Linux CI noticed.
Rewritten as "defers parent directory creation to execute() while streaming": no filesystem work during
streaming, and the directories are still created by the authoritative non-partial execute(). Same intent,
new contract.
Local run: 34 passed / 5 skipped in the file; the rewritten case also passes when the win32 skip is
lifted temporarily, so the flow is verified on this machine too.1 parent 950bf6a commit 6906c02
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
316 | 320 | | |
317 | 321 | | |
318 | 322 | | |
319 | | - | |
320 | | - | |
| 323 | + | |
321 | 324 | | |
322 | 325 | | |
323 | 326 | | |
| |||
0 commit comments