Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
Artifacts
Releases
CI
Agents
Settings
fix(server): a streamed reply or reasoning block no longer stores every snapshot of its text
#36362
Send to my agent
Open
juliusmarminge
wants to merge 3 commits into
main
from
refs/pull/36362/head
·
opened
3 weeks ago
View on GitHub
Conversation
8
Commits
3
Files changed
3
Impact
Showing
3 changed files
with
170 additions
and
1 deletion
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
2 additions and 1 deletion
+2
-1
apps/server/src/orchestration-v2/FoundationPersistence.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/FoundationPersistence.test.ts
View file
Expand up
Show all 411 lines
@@ -412,9 +412,10 @@
412
412
published.
map
((stored) => stored.
event
.
id
),
413
413
[
"batch-first"
,
"batch-second"
],
414
414
);
415
+
// The second streaming snapshot of the message replaces the first in the log.
415
416
assert.
deepEqual
(
416
417
yield
* store.
read
({
afterSequence
: highWater }).
pipe
(
Stream
.
runCollect
),
417
-
published,
418
+
published.
slice
(
1
),
418
419
);
419
420
}).
pipe
(
Effect
.
provide
(
Layer
.
fresh
(layerTest)),
Effect
.
scoped
),
420
421
);
Expand down
Show all lines
118 additions and 0 deletions
+118
-0
apps/server/src/persistence/OrchestrationEventStore.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/persistence/OrchestrationEventStore.test.ts
View file
Expand up
Show all 294 lines
@@ -295,6 +295,124 @@
295
295
}),
296
296
);
297
297
298
+
// Every snapshot the paragraph filter passes is appended holding the full text so far.
299
+
it.
effect
(
300
+
"stores snapshots of a long stream whose combined text stays within a few times its final text"
,
301
+
() =>
302
+
Effect
.
gen
(
function
* () {
303
+
const
store =
yield
*
OrchestrationEventStore
.
OrchestrationEventStore
;
304
+
const
sql =
yield
*
SqlClient
.
SqlClient
;
305
+
const
now =
yield
*
DateTime
.
now
;
306
+
const
threadId =
ThreadId
.
make
(
"thread:long-stream"
);
307
+
const
reasoning = (index:
number
, text:
string
, streaming =
true
) =>
Home
Search
Explore
Menu