You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 013995f
Browse filesBrowse the repository at this point in the historyBrowse files
hzq
committed
Coordinate tool-free reasoning workspace lifetime
Share directory creation per session and drain allocations and active turns before cleanup. Keep workspace identity checks for ACP and native resumes across worker shutdown.
Copy file name to clipboardExpand all lines: docs/protocol.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -390,6 +390,8 @@ Worker retry delays grow exponentially with jitter and are capped at five second
390
390
391
391
Workers keep up to 128 parsed bundle manifests warm, with a 16 MiB budget measured on their compact JSON representation. Installed files are not retained in this cache. Before evicting a manifest, the worker seals it in private temporary storage using a key held only by that runtime. An already installed digest can be read back during the same worker lifetime without resending or repeating an execution. Closing the worker removes its temporary index, not the installed files.
392
392
393
+
Tool-free native turns in the same session share one worker-owned working directory. Worker shutdown waits for those turns and pending directory creation before reclaiming it. A checkpoint tied to an old workspace identity is not silently resumed in a different directory.
394
+
393
395
If `welcome.features` includes `artifact-chunks-v1`, a worker may deliver an output over its existing execution lease. Each `artifact_chunk` carries the RPC `id`, `leaseId`, zero-based artifact `index`, byte `offset`, total `bytes`, `name`, SHA-256 `sha256` and base64 `data` (up to 128 KiB decoded). Wait for `artifact_ack` with the matching lease, index and offset before the next chunk. The final result references the matching manifest entry with `transferIndex` and empty `content`; a worker path is never a wire reference. An interrupted transfer is discarded, not automatically replayed.
0 commit comments