llm settlement waits on a reply whose request an interrupt already aborted
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- testing
Línea de trabajo
Start by tracing how LLM responses are tracked through settlement and how aborted OpenCode requests are reported by session.step.failed and session.execution.interrupted; the issue does not name source files or tests. Reproduce the streaming reply with a deferred gate, interrupt the session, and check whether settlement still counts the response as active. Done when an aborted response no longer causes settlement to wait for its stream to finish.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Drive 2.4.0, OpenCodeDriver.use program run with opencode-drive run.
A scripted reply that is still streaming when the session is interrupted keeps settlement waiting, so the program fails at the end with LlmSettlementError: timed out waiting for active LLM responses (unusedResponses: 0, unexpectedRequests: 0), even though every session is idle.
yield* llm.serve((request) => {
// hangs until the gate opens
return Stream.make(Llm.text("working ")).pipe(Stream.concat(Stream.fromEffect(Deferred.await(gate)).pipe(Stream.flatMap(() => Stream.make(Llm.text(" released"))))))
})
yield* opencode.session.prompt({ sessionID, text: "wait" })
yield* Effect.sleep(300)
yield* opencode.session.interrupt({ sessionID })
// session.active() is {} from here on; the program ends; settlement waits out settlementTimeout and fails
Expected: once OpenCode aborts the request (the session emits session.step.failed with aborted and session.execution.interrupted), its response stops counting as active. Actual: it stays active until its stream completes, so the only workaround is to open every gate before the program ends.
Seen while recording event streams for interrupt scenarios (a stop mid-reply, mid-tool, mid-subagent). Related wish: an llm helper for "reply that hangs until released" would cover most interrupt tests.
- Lenguaje dominante
- TypeScript
- Estrellas
- 41
- Forks
- 9
- Merge medio
- 4 h
- PR fusionados (30 d)
- 11
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode-drive
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode-drive#107 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
anomalyco/opencode-drive#102 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
anomalyco/opencode-drive#132 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ui.press("pageup") types "pageup" into the composerPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 3/5 Medio día Aptitud para principiantes 58/100
anomalyco/opencode-drive#120 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
anomalyco/opencode-drive#119 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode-drive
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
backnotprop/plannotator#2914 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/vscode-containers#655 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 comentario ·