LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

VS Code - Agentic Workflow - Two way communication channel causes workflow to not display in designer

Open cam96 opened this issue 3 months ago • 1 comments

Severity

P2 - High (Major functionality broken)

Describe the Bug with repro steps

Summary

After creating an agentic workflow in VS Code and choosing "Two-Way communication channel" under channels, the workflow no longer loads in the designer.

Image

Removing this JSON property from the workflow definition resolves the issue, but prevents from using the two-way communication mechanism of logic app agentic workflows in VS Code.

Image

After removing the json, we can see that it loads correctly.

Image

Reproduction steps

  1. Create a new logic app workspace
  2. Create a new agentic logic app codeless workflow.
  3. Add a "When an http request is received" trigger.
  4. Add a "Say, Hello" prompt into the agent loop.
  5. Specify your model at gpt4.1
  6. Specify your channel as "Allow both input and output channels".
Image
  1. Save
  2. Reopen in designer and it will be empty.

What type of Logic App Is this happening in?

Standard (VSCode)

Are you experiencing a regression?

No response

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "contentVersion": "1.0.0.0",
        "actions": {
            "Default_Agent": {
                "type": "Agent",
                "inputs": {
                    "parameters": {
                        "agentModelType": "AzureOpenAI",
                        "deploymentId": "gpt-4.1",
                        "messages": [
                            {
                                "role": "system",
                                "content": "Act as a rock paper scissors expert.  You will play a game of rock paper scissors with a human.\n\n1. GREETING - Greet the human in a sportsmanlike way.  You can throw in a fun jab or two to show that you will be the winner of the game.\n2. STRATEGY - Come up with a strategy to determine your choice of rock, paper or scissors.  Do not tell anyone the choice you are coming up with.\n3. PLAY THE GAME - Use your strategy to determine whether you are going to choose rock, paper or scissors.  Pick rock, paper or scissors.\n4. ASK OPPONENT FOR THEIR CHOICE - Tell the opponent that you have saved your choice and they can tell you theirs to see the winner.  Wait for the other players choice.\n5. DETERMINE WINNER - Now that you have the both choices, compare the two to determine the winner.  If they are the same, then replay the game from step 2.  If they are different, then determine the winner as follows: rock beats paper, paper beats rock and scissors beats paper.\n6. ANNOUNCE THE WINNER - Respond with the winner back to the players and explain why the players won and lost.  If you won, respond with your strategy and why it made you the winner.  If you lost, respond with information about your strategy and why it made you lose."
                            }
                        ],
                        "agentModelSettings": {
                            "agentHistoryReductionSettings": {
                                "agentHistoryReductionType": "maximumTokenCountReduction",
                                "maximumTokenCount": 128000
                            },
                            "deploymentModelProperties": {
                                "name": "gpt-4.1",
                                "format": "OpenAI",
                                "version": "2025-04-14"
                            }
                        }
                    },
                    "modelConfigurations": {
                        "model1": {
                            "referenceName": "agent-2"
                        }
                    }
                },
                "channels": {
                    "in": {
                        "in-channel-1": {
                            "trigger": {
                                "type": "Request"
                            }
                        }
                    }
                },
                "runAfter": {},
                "limit": {
                    "count": 100
                }
            }
        },
        "outputs": {},
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http"
            }
        }
    },
    "kind": "Agentic"
}

Screenshots or Videos

No response

Environment

  • VS Code Version: 1.103.2

Additional context

No response

cam96 avatar Sep 14 '25 14:09 cam96

Hi @cam96 thanks for letting us know about this. I will triage it and take a look at it

ccastrotrejo avatar Sep 15 '25 17:09 ccastrotrejo