bytechefhq / bytechefhq/bytechef

[bug]: additional + node loaded in a condition

Open
#4,060 1 comment 0 reactions 0 assignees View on GitHub
bug frontend
Dominant language
Java
Stars
1k
Forks
170
Avg merge
11h 25m
Merged PRs (30d)
115

Description

### Describe the bug

Image

### Steps To Reproduce
```
{
"label": "test2",
"description": "Out-of-hours Gmail auto-response with AI urgency triage + log to Google Sheets + create Asana task",
"inputs": [],
"triggers": [
{
"label": "New Email",
"name": "trigger_1",
"type": "googleMail/v1/newEmail",
"parameters": {
"topicName": "customer-inbox",
"format": "FULL"
}
}
],
"tasks": [
{
"label": "Outside working hours?",
"name": "condition_1",
"type": "condition/v1",
"parameters": {
"rawExpression": true,
"expression": "{{ !( (dayOfWeek(now) >= 1 && dayOfWeek(now) <= 5) && (hour(now) >= 9 && hour(now) < 17) ) }}",
"caseTrue": [
{
"label": "AI urgency classification",
"name": "openAi_1",
"type": "openAi/v1/ask",
"parameters": {
"model": "gpt-4o-mini",
"format": "SIMPLE",
"systemPrompt": "You classify incoming customer emails received outside working hours. Return ONLY JSON.",
"userPrompt": "Classify urgency for this email.\n\nSubject: {{trigger_1.subject}}\nFrom: {{trigger_1.from}}\nBody: {{trigger_1.bodyPlain}}\n\nReturn JSON with keys: urgent (boolean), reason (string), suggested_reply (string).",
"response": {
"responseFormat": "JSON",
"responseSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"urgent\": {\"type\": \"boolean\"},\n \"reason\": {\"type\": \"string\"},\n \"suggested_reply\": {\"type\": \"string\"}\n },\n \"required\": [\"urgent\", \"reason\", \"suggested_reply\"]\n}"
}
}
},
{
"label": "Log to Google Sheets",
"name": "googleSheets_1",
"type": "googleSheets/v1/insertRow",
"parameters": {
"spreadsheetId": "SPREADSHEET_ID",
"sheetName": "FollowUps",
"valueInputOption": "RAW",
"isTheFirstRowHeader": true,
"row": {
"Timestamp": "{{now}}",
"From": "{{trigger_1.from}}",
"Subject": "{{trigger_1.subject}}",
"Urgent": "{{openAi_1.response.urgent}}",
"Reason": "{{openAi_1.response.reason}}",
"MessageId": "{{trigger_1.id}}"
}
}
},
{
"label": "Create Asana task",
"name": "asana_1",
"type": "asana/v1/createTask",
"parameters": {
"data": {
"workspace": "ASANA_WORKSPACE_ID",
"project": "ASANA_PROJECT_ID",
"name": "{{openAi_1.response.urgent ? '[URGENT] ' : ''}}{{trigger_1.subject}}",
"notes": "From: {{trigger_1.from}}\nMessageId: {{trigger_1.id}}\n\nReason: {{openAi_1.response.reason}}\n\nBody:\n{{trigger_1.bodyPlain}}"
}
}
},
{
"label": "Urgent?",
"name": "condition_2",
"type": "condition/v1",
"parameters": {
"rawExpression": true,
"expression": "{{openAi_1.response.urgent}}",
"caseTrue": [
{
"label": "(Urgent) Reply acknowledging escalation",
"name": "googleMail_2",
"type": "googleMail/v1/replyToEmail",
"parameters": {
"id": "{{trigger_1.id}}",
"to": [
"{{trigger_1.from}}"
],
"bodyType": "plain",
"body": "Thanks for your message. This looks urgent, and we’ve alerted a human who will follow up as soon as possible.\n\n— Automated response"
}
}
],
"caseFalse": [
{
"label": "(Not urgent) Auto-reply",
"name": "googleMail_3",
"type": "googleMail/v1/replyToEmail",
"parameters": {
"id": "{{trigger_1.id}}",
"to": [
"{{trigger_1.from}}"
],
"bodyType": "plain",
"body": "{{openAi_1.response.suggested_reply}}"
}
}
]
}
}
],
"caseFalse": []
},
"metadata": {
"ui": {
"dynamicPropertyTypes": {}
}
}
}
]
}
```

### Expected behavior

it shouldn't do that

### Version

latest

### OS

ubuntu

### Browser

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. First reproduce the workflow from the supplied JSON and identify when the additional node appears or fails to load under the condition; then trace the condition task-loading path. Done means the workflow loads only the intended nodes and a regression test covers this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.