Merge branch 'master' into fs-overwrite-diff-bound-v2

This commit is contained in:
Ziya
2026-08-09 01:26:02 -07:00
committed by GitHub
46 changed files with 474 additions and 303 deletions

View File

@@ -7,6 +7,7 @@
config:
baseURL: !!js process.env.DSH_SNAPSHOT_BASE_URL
thinking: disabled
streamIdleTimeoutMs: 150
- id: agent-spine
config:
agents:

View File

@@ -83,12 +83,21 @@ async function deepseekDefaultsServer(): Promise<DeepSeekDefaultsServer> {
request.on('end', () => {
requests.push(JSON.parse(body) as JsonObject)
response.writeHead(200, { 'content-type': 'text/event-stream' })
response.end([
'data: {"choices":[{"delta":{"content":"DEFAULTS_OK"}}]}',
'data: {"choices":[{"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":3,"completion_tokens":1}}',
'data: [DONE]',
'',
].join('\n\n'))
let keepAlives = 3
const write = (): void => {
if (keepAlives-- > 0) {
response.write(': keep-alive\n\n')
setTimeout(write, 60)
return
}
response.end([
'data: {"choices":[{"delta":{"content":"DEFAULTS_OK"}}]}',
'data: {"choices":[{"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":3,"completion_tokens":1}}',
'data: [DONE]',
'',
].join('\n\n'))
}
setTimeout(write, 60)
})
})
await new Promise<void>(resolve => server.listen(0, '127.0.0.1', resolve))
@@ -504,7 +513,7 @@ describe('headless stream-json snapshots', () => {
`)
}, LOADER_SMOKE_TEST_TIMEOUT_MS)
it('logs and sends the DeepSeek adapter maxTokens default through the one-shot app', async () => {
it('keeps provider comments alive and sends DeepSeek defaults through the one-shot app', async () => {
const server = await deepseekDefaultsServer()
try {
const result = await runLoaderSmoke({