[Bug] Fetching workflow update outcome yields incorrect JSON output in result and error cases
Los mantenedores suelen responder en 1 día
@dandavison ya está trabajando en esto.
Desde el 11/6/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Describe the bug
Fetching workflow update result via temporal workflow update execute or temporal workflow update result with -o json yields output that is incorrect in two ways:
- If there is the update failed with an error, no error JSON is produced.
- If the update succeeds, the JSON does not include full result payload details when using the
--no-json-shorthand-payloadsoption (it is effectively silently ignored).
Minimal Reproduction
Failed update
Start this workflow
@workflow.defn
class WorkflowWithUpdate:
@workflow.run
async def run(self) -> None:
await asyncio.Future()
@workflow.update
async def update(self) -> str:
raise ApplicationError("error in update")
temporal workflow start --type WorkflowWithUpdate --task-queue demo
Now try to fetch an update result. The CLI outputs an error message but no JSON error info. It should output detailed structured error chain info including stack traces:
$ temporal workflow -o json update execute --workflow-id 195d41da-784e-406e-a376-53f18a99b1f4 --name update
Error: unable to update workflow: error in update
Successful update
Start this workflow
@workflow.defn
class WorkflowWithResult:
@workflow.run
async def run(self) -> str:
return "workflow-result"
Then fetch the update result. The CLI outputs a JSON document describing the result, but --no-json-shorthand-payloads does not yield full payload details:
$ temporal workflow -o json update execute --workflow-id e97a2ee6-e2c8-49b4-849b-603a084e9cfb --name update
{
"name": "update",
"updateId": "71d71116-338a-4688-b502-a3fa678819e0",
"result": "update-result"
}
$ temporal --no-json-shorthand-payloads workflow -o json update execute --workflow-id e97a2ee6-e2c8-49b4-849b-603a084e9cfb --name update
{
"name": "update",
"updateId": "e8a22eb1-4422-426c-a1e5-025504d6ff97",
"result": "update-result"
}
This is inconsistent with the behavior for a standalone activity (or workflow, etc) result:
standalone activity
$ temporal activity execute -o json -a activity-1 --start-to-close-timeout 1s --type greet --task-queue demo --input '"World"'
{
"activityId": "activity-1",
"runId": "019c95ab-fcaa-7ce1-bbf3-f847a8ee4080",
"status": "COMPLETED",
"result": "Hello, World!"
}
$ temporal activity execute --no-json-shorthand-payloads -o json -a activity-1 --start-to-close-timeout 1s --type greet --task-queue demo --input '"World"'
{
"activityId": "activity-1",
"runId": "019c95ac-2bd9-79fd-be40-65e42be13717",
"status": "COMPLETED",
"result": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "IkhlbGxvLCBXb3JsZCEi"
}
]
}
}
workflow
$ temporal workflow result -o json --workflow-id 2ba765c4-3e1b-4854-b31d-ddcfd37b2598
{
"workflowId": "2ba765c4-3e1b-4854-b31d-ddcfd37b2598",
"runId": "019c959e-0ca9-77c7-8e66-d843ced91424",
"namespace": "dan-sa-demo.a2dd6",
"status": "COMPLETED",
"closeEvent": {
"eventId": "5",
"eventTime": "2026-02-25T16:24:49.131790142Z",
"eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED",
"version": "100265",
"taskId": "266083684",
"workflowExecutionCompletedEventAttributes": {
"result": [
"workflow-result"
],
"workflowTaskCompletedEventId": "4"
}
},
"result": "workflow-result"
}
$ temporal workflow result --no-json-shorthand-payloads -o json --workflow-id 2ba765c4-3e1b-4854-b31d-ddcfd37b2598
{
"workflowId": "2ba765c4-3e1b-4854-b31d-ddcfd37b2598",
"runId": "019c959e-0ca9-77c7-8e66-d843ced91424",
"namespace": "dan-sa-demo.a2dd6",
"status": "COMPLETED",
"closeEvent": {
"eventId": "5",
"eventTime": "2026-02-25T16:24:49.131790142Z",
"eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED",
"version": "100265",
"taskId": "266083684",
"workflowExecutionCompletedEventAttributes": {
"result": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "IndvcmtmbG93LXJlc3VsdCI="
}
]
},
"workflowTaskCompletedEventId": "4"
}
},
"result": {
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "IndvcmtmbG93LXJlc3VsdCI="
}
}
- Lenguaje dominante
- Go
- Estrellas
- 390
- Forks
- 123
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 temporalio/cli
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
temporalio/cli#776 ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] Option to disable metrics in server start-devPosiblemente ocupada @shafiktanbir la tomó hace 11 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
temporalio/cli#1274 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
temporalio/cli#1249 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] Decode workflow histories concurrently with remote codec serversPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 65/100
temporalio/cli#1193 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
temporalio/cli#1178 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de temporalio/cli
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
seriousm4x/UpSnap#1786 ·
-
bug feedback ui/ux
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
peasant-labs/peasant#1307 ·
Los mantenedores suelen responder en 1 día
-
Reformat test names for single-protocol tests to start with Protocol/, i.e. gRPC/ or Websocket/Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
connectrpc/conformance#1211 ·
Los mantenedores suelen responder en 1 día
-
bug effort:s impact:med raised-by:desk risk:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
medici-finance/assay#8342 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
hardening
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
inference-sim/inference-sim#2821 ·
Los mantenedores suelen responder en 1 día