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 delegated task waiting for an approval notifies its idle parent
#35433
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/35433/head
·
opened
3 weeks ago
View on GitHub
Conversation
5
Commits
2
Files changed
3
Impact
Showing
3 changed files
with
128 additions
and
10 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
28 additions and 9 deletions
+28
-9
apps/server/src/orchestration-v2/DelegatedTaskQuestionReactor.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/DelegatedTaskQuestionReactor.ts
View file
Show all 3 lines
@@ -4,12 +4,14 @@
4
4
type
OrchestrationV2DomainEvent
,
5
5
type
OrchestrationV2RuntimeRequest
,
6
6
type
OrchestrationV2Subagent
,
7
+
ProviderRequestKind
,
7
8
type
RuntimeRequestId
,
8
9
type
ThreadId
,
9
10
}
from
"@t3tools/contracts"
;
10
11
import
*
as
Context
from
"effect/Context"
;
11
12
import
*
as
Effect
from
"effect/Effect"
;
12
13
import
*
as
Layer
from
"effect/Layer"
;
14
+
import
*
as
Schema
from
"effect/Schema"
;
13
15
import
type
*
as
Scope
from
"effect/Scope"
;
14
16
import
*
as
Stream
from
"effect/Stream"
;
15
17
Show all 3 lines
@@ -19,6 +21,10 @@
19
21
import
*
as
Orchestrator
from
"./Orchestrator.ts"
;
20
22
import
*
as
ProjectionStore
from
"./ProjectionStore.ts"
;
21
23
24
+
const
isApprovalKind =
Schema
.
is
(
ProviderRequestKind
);
25
+
const
notifiesParent = (kind:
OrchestrationV2RuntimeRequest
[
"kind"
]) =>
26
+
kind ===
"user_input"
||
isApprovalKind
(kind);
27
+
22
28
export
class
DelegatedTaskQuestionReactor
extends
Context
.
Service
<
23
29
DelegatedTaskQuestionReactor
,
24
30
{
Show all 13 lines
@@ -38,6 +44,9 @@
38
44
if
(task.
childThreadId
===
null
)
return
;
Home
Search
Explore
Menu