Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

mid-conversation-effort-example changedbuild-with-claude/mid-conversation-effort-example

Recorded here
Lines+4added
Lines−4removed
From line 1,231 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits11to this page, all time

The whole hunk

from line 1231, old and new numbered
/
lines
from line 1231
12311231 if (DOC_TEST_MODE) {
12321232 $workDir = sys_get_temp_dir() . '/orchestration-' . bin2hex(random_bytes(8));
12331233 if (!mkdir($workDir, 0700)) {
1234 throw new RuntimeException("could not create working directory {$workDir}");
1234 throw new \RuntimeException("could not create working directory {$workDir}");
12351235 }
12361236 file_put_contents(
12371237 $workDir . '/sample.py',
from line 1776
17761776 */
17771777 function drainMessageStream(iterable $events): array
17781778 {
1779 $stringValue = fn ($value) => $value instanceof BackedEnum ? $value->value : $value;
1779 $stringValue = fn ($value) => $value instanceof \BackedEnum ? $value->value : $value;
17801780 $blocks = [];
17811781 $jsonBuffers = [];
17821782 $stopReason = null;
from line 2701
27012701 if (is_string($raw)) {
27022702 try {
27032703 $raw = json_decode($raw, true, flags: JSON_THROW_ON_ERROR);
2704 } catch (JsonException) {
2704 } catch (\JsonException) {
27052705 $raw = str_contains($raw, "\n") ? explode("\n", $raw) : [$raw];
27062706 }
27072707 }
from line 2746
27462746 $runOne = function (string $prompt) use ($client, $model): string {
27472747 try {
27482748 return journaled($prompt, fn () => runSubagent($client, $model, $prompt));
2749 } catch (Throwable $error) {
2749 } catch (\Throwable $error) {
27502750 // Isolation boundary: one bad subagent should not end the run.
27512751 return '(subagent failed: ' . $error::class . ': ' . $error->getMessage() . ')';
27522752 }
Feedback