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

Closed

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

Activity

  1. added
    .NET
    on Jul 16, 2026
  2. added
    triage
    on Jul 16, 2026
  3. changed the title [-].NET: [Bug]: I see 1.13 release breaking change which was not classified as such[/-] [+].NET: [Bug]: I see 1.13 release breaking change which was not classified as such, session not being updated when skills used[/+] on Jul 16, 2026
  4. github-actions commented on Jul 16, 2026

    @github-actions
    Contributor

    👋 Hi Oisin Haken (@VaclavK) — thanks for the report!

    Your toolApprovalRequest for load_skill is the expected default behavior introduced in the 1.13 release cycle — commit e3b64fd (PR #6729) is explicitly labeled [BREAKING] and wraps all skill tools with ApprovalRequiredAIFunction by default as a security measure. The options you found (DisableLoadSkillApproval = true, etc.) are the documented opt-out mechanism. Alternatively, you can use AgentSkillsProvider.AllToolsAutoApprovalRule or AgentSkillsProvider.ReadOnlyToolsAutoAprovalRule as auto-approval rules on your agent, which avoids disabling approval entirely while still allowing automatic execution.

    If you still believe there is a framework issue here, please reply with the exact import/class or method you are using, the version, and a minimal snippet that shows the failure. 🙏

  5. VaclavK commented on Jul 16, 2026

    @VaclavK
    Author

    AllToolsAutoApprovalRule

    this is a good pointer

    we had already - prior to decorating these additional flags this in place

       return new ChatClientAgent(chatClient, options)
           .AsBuilder()
           .UseToolApproval(new ToolApprovalAgentOptions { AutoApprovalRules = [autoApprove] })
           .Build();

    with

    Func<FunctionCallContent, ValueTask<bool>> autoApprove = (functionCall) =>
    {
        // Auto-approve all function calls for testing purposes
        return ValueTask.FromResult(true);
    };

    but this clearly had no bearing on skill tool only non-skill tooling

  6. VaclavK commented on Jul 16, 2026

    @VaclavK
    Author

    can I ask what is the recommended strategy to track breaking changes..?

    continuous scanning of this repo for the titles of merges and analysing content per each to understand impact?

  7. added
    skills
    and removed
    triage
    on Jul 20, 2026
  8. moved this to In Progress in Agent Frameworkon Aug 5, 2026
  9. SergeyMenshykh commented on Aug 5, 2026

    @SergeyMenshykh
    Collaborator

    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.

    The agent most likely did not produce a final result - a JSON that can be deserialized into the OrchestrationEnvelope DTO. Instead, it returned a ToolApprovalRequestContent for load_skill, which is the expected behavior when skill tools require approval and no auto-approval rule matched. The session update is not broken; it correctly persisted the conversation state up to that pending approval request. The missing "agent result" is simply the next turn that never happened - the caller needs to send a ToolApprovalResponseContent back to resume execution.

    For the full approval request/response flow, see the tool approval sample.

    but this clearly had no bearing on skill tool only non-skill tooling

    That should not be the case - your auto-approval rule should approve all tools regardless of whether they are skill-related or not. Could you check whether this is still an issue with the latest MAF packages? https://www.nuget.org/profiles/MicrosoftAgentFramework

    If it still doesn't work for you, please create a simple console app that reproduces the problem so we can investigate quickly.

    can I ask what is the recommended strategy to track breaking changes..? continuous scanning of this repo for the titles of merges and analysing content per each to understand impact?

    Currently, the best way is to check the release notes - breaking changes are marked with [BREAKING] in the PR title, which is visible in the release history.

  10. SergeyMenshykh commented on Aug 7, 2026

    @SergeyMenshykh
    Collaborator

    Closing the issue for now. Oisin Haken (@VaclavK) feel free to reopen it if needed.

  11. moved this from In Progress to Done in Agent Frameworkon Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETskills

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions