Fix approval/user-input events using orchestration ID instead of provider thread ID
Replace direct use of context.session.threadId with providerThreadRef(context) in four locations within approval and user-input handlers, consistent with all other event emissions in the file. Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
f34dd0a91f
commit
241180f045
1 file changed
+4
-8
@@ -1995,7 +1995,7 @@ function makeClaudeAdapter(options?: ClaudeAdapterLiveOptions) {
|
||||
requestId: asRuntimeRequestId(requestId),
|
||||
payload: { questions },
|
||||
providerRefs: {
|
||||
...(context.session.threadId ? { providerThreadId: context.session.threadId } : {}),
|
||||
...providerThreadRef(context),
|
||||
...(context.turnState ? { providerTurnId: String(context.turnState.turnId) } : {}),
|
||||
providerRequestId: requestId,
|
||||
},
|
||||
@@ -2034,7 +2034,7 @@ function makeClaudeAdapter(options?: ClaudeAdapterLiveOptions) {
|
||||
requestId: asRuntimeRequestId(requestId),
|
||||
payload: { answers },
|
||||
providerRefs: {
|
||||
...(context.session.threadId ? { providerThreadId: context.session.threadId } : {}),
|
||||
...providerThreadRef(context),
|
||||
...(context.turnState ? { providerTurnId: String(context.turnState.turnId) } : {}),
|
||||
providerRequestId: requestId,
|
||||
},
|
||||
@@ -2116,9 +2116,7 @@ function makeClaudeAdapter(options?: ClaudeAdapterLiveOptions) {
|
||||
},
|
||||
},
|
||||
providerRefs: {
|
||||
...(context.session.threadId
|
||||
? { providerThreadId: context.session.threadId }
|
||||
: {}),
|
||||
...providerThreadRef(context),
|
||||
...(context.turnState
|
||||
? { providerTurnId: String(context.turnState.turnId) }
|
||||
: {}),
|
||||
@@ -2167,9 +2165,7 @@ function makeClaudeAdapter(options?: ClaudeAdapterLiveOptions) {
|
||||
decision,
|
||||
},
|
||||
providerRefs: {
|
||||
...(context.session.threadId
|
||||
? { providerThreadId: context.session.threadId }
|
||||
: {}),
|
||||
...providerThreadRef(context),
|
||||
...(context.turnState
|
||||
? { providerTurnId: String(context.turnState.turnId) }
|
||||
: {}),
|
||||
|
||||
Reference in new issue
Block a user