Skip to content

.NET: [Bug]: I see 1.13 release breaking change which was not classified as such, session not being updated when skills used #7156

Description

@VaclavK

Description

Upon restructuring our agentic solution set up, we build and release in a mode that started to rely on skills. Previous build set up did not.

Upon the switch we started to see session not updated with agent results and investigation led us to

#6843

This I believe is not classified as breaking change but we could see that skill loading was awaiting approval according to session. The symptom

 {
                    "$type": "toolApprovalRequest",
                    "toolCall": {
                        "$type": "functionCall",
                        "name": "load_skill",
                        "arguments": {
                            "skillName": "flow-classifier"
                        },
                        "informationalOnly": true,
                        "callId": "call_YpVrfC7biu6hWAry8clkuDtv"
                    },
                    "requestId": "ficc_call_YpVrfC7biu6hWAry8clkuDtv"
                }

No agent result was appended to the session.

Setting

   options: new AgentSkillsProviderOptions
   {
       DisableLoadSkillApproval = true,
       DisableReadSkillResourceApproval = true,
       DisableRunSkillScriptApproval = true,
   }

produces up to date result.

What is not yet clear to me is why the agent produced the result and not explicitly setting these things only broke the session update.

Code Sample

var session = await SessionService.GetOrCreateSessionAsync(agentSessionStore, sessionAgent, request.SessionId);

  var result = await agent.RunAsync<OrchestrationEnvelope>(BuildMessage(request), session);

  await SessionService.SaveSessionAsync(sessionAgent, agentSessionStore, session, request.SessionId);

the context for this pattern - #6858

Error Messages / Stack Traces

Package Versions

Microsoft.Agents.AI, 1.13

.NET Version

.net 10

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETUsage: [Issues, PRs], Target: .NettriageUsage: [Issues], Target: All issues that still need to be triaged

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions