Skip to content

Setting context: fork in a skill results in run_skill loop #2267

@stinuz

Description

@stinuz

Describe the bug
When using a skill with context:fork it ends in run_skill loop. The skill works fine however without the context:fork.

Version affected

docker-agent version v1.37.0
Commit: 4292f97

How To Reproduce

Detailed steps to reproduce the behavior:

Add a skill to call, start docker agent with a default simple prompt and invoke the skills.
For example use the following example time skill:

name: time
description: "Print out the current time."
context: fork

Your final response is just the time in Europe/Berlin

Start a default prompt with a random model and prompt: what is the current time ?
Now docker agent will keep on printing
Calling run_skill(
name: "time"
task: "Provide the current local time in Europe/Berlin."
)

Expectation

The tool should be called once and finish

OS and Terminal type
Default terminal on Mac Os x

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentFor work that has to do with the general agent loop/agentic features of the appkind/bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions