Commit 64e0b36
Document process callbacks and fixes
Sync changes from cloudflare/sandbox-sdk PR #267:
- Add onOutput, onExit, onStart, and onError callbacks to startProcess()
- Document callback-based monitoring as preferred pattern
- Show accumulated logs pattern for fast commands
- Update API reference with complete ProcessOptions parameters
Fixes documented:
- Process callbacks now work (onOutput/onExit previously never fired)
- PID field now properly populated (was always undefined)
- getLogs() race condition fixed for fast commands
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 6259cde commit 64e0b36
File tree
2 files changed
+42
-4
lines changed- src/content/docs/sandbox
- api
- guides
2 files changed
+42
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
126 | 157 | | |
127 | 158 | | |
128 | 159 | | |
| |||
144 | 175 | | |
145 | 176 | | |
146 | 177 | | |
147 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
148 | 181 | | |
149 | 182 | | |
150 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
151 | 189 | | |
152 | 190 | | |
153 | 191 | | |
| |||
0 commit comments