Merge commit '4cca942ed6ce3087d3cbe0f95a48209e51241254' into codex/product-providers-pr2-claude-code
This commit is contained in:
@@ -130,7 +130,7 @@ export class CodexAppServerWire {
|
|||||||
* @param signal - unpublished-start cancellation.
|
* @param signal - unpublished-start cancellation.
|
||||||
*/
|
*/
|
||||||
async initialize(signal: AbortSignal): Promise<void> {
|
async initialize(signal: AbortSignal): Promise<void> {
|
||||||
const response = object(await this.guarded(this.transport.request('initialize', {
|
object(await this.guarded(this.transport.request('initialize', {
|
||||||
clientInfo: {
|
clientInfo: {
|
||||||
name: 'deepseek-harness',
|
name: 'deepseek-harness',
|
||||||
title: 'DeepSeek Harness',
|
title: 'DeepSeek Harness',
|
||||||
@@ -141,7 +141,6 @@ export class CodexAppServerWire {
|
|||||||
requestAttestation: false,
|
requestAttestation: false,
|
||||||
},
|
},
|
||||||
}, signal), signal), 'initialize response')
|
}, signal), signal), 'initialize response')
|
||||||
string(response.userAgent, 'initialize userAgent')
|
|
||||||
this.transport.notify('initialized')
|
this.transport.notify('initialized')
|
||||||
await this.guarded(this.transport.flush(), signal)
|
await this.guarded(this.transport.flush(), signal)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -934,8 +934,8 @@ describe('run lifecycle and quiescence', () => {
|
|||||||
const child = fakeChild()
|
const child = fakeChild()
|
||||||
const starting = startCodexRun(request(), runSpec(child))
|
const starting = startCodexRun(request(), runSpec(child))
|
||||||
const initialize = await child.peer.nextMethod('initialize')
|
const initialize = await child.peer.nextMethod('initialize')
|
||||||
child.peer.respond(initialize, { userAgent: '' })
|
child.peer.respond(initialize, null)
|
||||||
await expect(starting).rejects.toThrow('initialize userAgent')
|
await expect(starting).rejects.toThrow('invalid initialize response')
|
||||||
expect(child.terminate).toHaveBeenCalledTimes(1)
|
expect(child.terminate).toHaveBeenCalledTimes(1)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user