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 Claude wake already answered in a user turn no longer blocks the thread's queue
#26554
Send to my agent
Closed
juliusmarminge
wants to merge 3 commits into
main
from
fix/issue-26537
·
opened
last month
View on GitHub
Conversation
7
Commits
3
Files changed
2
Impact
Showing
2 changed files
with
87 additions
and
1 deletion
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
81 additions and 0 deletions
+81
-0
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
View file
Expand up
Show all 9,260 lines
@@ -9261,6 +9261,87 @@
9261
9261
),
9262
9262
);
9263
9263
9264
+
it.
effect
.
each
([
"live in the user turn"
,
"buffered before the user turn"
]
as
const
)(
9265
+
"settles a continuation whose opened wake turn a user turn already answered: assistant %s"
,
9266
+
(assistantFrame) =>
9267
+
Effect
.
scoped
(
9268
+
Effect
.
gen
(
function
* () {
9269
+
const
harness =
yield
* makeWakeHarness;
9270
+
const
now =
yield
*
DateTime
.
now
;
9271
+
9272
+
yield
* harness.
runtime
.
startTurn
(
9273
+
makeClaudeTestTurnInput
({
9274
+
threadId
: harness.
threadId
,
9275
+
providerThread
: harness.
providerThread
,
9276
+
now,
9277
+
attemptId
:
RunAttemptId
.
make
(
"attempt-claude-wake-answered-1"
),
9278
+
text
:
"Run the build in the background."
,
9279
+
attachments
: [],
9280
+
}),
9281
+
);
9282
+
yield
*
Queue
.
offer
(harness.
sdkMessages
, wakeTaskStarted);
9283
+
yield
*
Queue
.
offer
(harness.
sdkMessages
, turnOneResult);
9284
+
yield
* harness.
awaitTerminal
(
1
);
9285
+
yield
* harness.
offerAndWait
(wakeNotification);
9286
+
yield
* harness.
offerAndWait
(wakeTurnInit);
9287
+
if
(assistantFrame ===
"buffered before the user turn"
) {
9288
+
yield
* harness.
offerAndWait
(wakeAssistant);
9289
+
}
Home
Search
Explore
Menu