Skip to content

Commit 54f2bf6

Browse files
committed
Fix #848
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent cd77de9 commit 54f2bf6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/runtime/runtime_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,6 @@ func TestProcessToolCalls_UnknownTool_NoToolResultMessage(t *testing.T) {
728728
}
729729

730730
func TestEmitStartupInfo(t *testing.T) {
731-
t.Skip("This test is flaky. See #848 for details.")
732-
733731
// Create a simple agent with mock provider
734732
prov := &mockProvider{id: "test/startup-model", stream: &mockStream{}}
735733
root := agent.New("startup-test-agent", "You are a startup test agent",
@@ -759,7 +757,7 @@ func TestEmitStartupInfo(t *testing.T) {
759757
// Verify expected events are emitted
760758
expectedEvents := []Event{
761759
AgentInfo("startup-test-agent", "test/startup-model", "This is a startup test agent"),
762-
TeamInfo([]string{"startup-test-agent", "other-agent"}, "startup-test-agent"),
760+
TeamInfo([]string{"other-agent", "startup-test-agent"}, "startup-test-agent"),
763761
ToolsetInfo(0, "startup-test-agent"), // No tools configured
764762
}
765763

pkg/team/team.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"errors"
66
"fmt"
7+
"slices"
78
"strings"
89

910
"github.com/docker/cagent/pkg/agent"
@@ -43,6 +44,7 @@ func (t *Team) AgentNames() []string {
4344
for name := range t.agents {
4445
names = append(names, name)
4546
}
47+
slices.Sort(names)
4648
return names
4749
}
4850

0 commit comments

Comments
 (0)