This commit is contained in:
afjcjsbx 2026-03-20 20:12:55 +01:00
parent 1c6586681d
commit 827449aff3
2 changed files with 2 additions and 9 deletions

View file

@ -440,13 +440,6 @@ func (al *AgentLoop) publishResponseIfNeeded(ctx context.Context, channel, chatI
}) })
} }
func (al *AgentLoop) pendingSteeringCount() int {
if al.steering == nil {
return 0
}
return al.steering.len()
}
func (al *AgentLoop) buildContinuationTarget(msg bus.InboundMessage) (*continuationTarget, error) { func (al *AgentLoop) buildContinuationTarget(msg bus.InboundMessage) (*continuationTarget, error) {
if msg.Channel == "system" { if msg.Channel == "system" {
return nil, nil return nil, nil

View file

@ -1036,7 +1036,7 @@ func TestAgentLoop_Continue_PreservesSteeringMedia(t *testing.T) {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x90, 0x77, 0x53, 0xDE, 0x90, 0x77, 0x53, 0xDE,
} }
if err := os.WriteFile(pngPath, pngHeader, 0o644); err != nil { if err = os.WriteFile(pngPath, pngHeader, 0o644); err != nil {
t.Fatalf("WriteFile failed: %v", err) t.Fatalf("WriteFile failed: %v", err)
} }
ref, err := store.Store(pngPath, media.MediaMeta{Filename: "steer.png", ContentType: "image/png"}, "test") ref, err := store.Store(pngPath, media.MediaMeta{Filename: "steer.png", ContentType: "image/png"}, "test")
@ -1060,7 +1060,7 @@ func TestAgentLoop_Continue_PreservesSteeringMedia(t *testing.T) {
al := NewAgentLoop(cfg, msgBus, provider) al := NewAgentLoop(cfg, msgBus, provider)
al.SetMediaStore(store) al.SetMediaStore(store)
if err := al.Steer(providers.Message{ if err = al.Steer(providers.Message{
Role: "user", Role: "user",
Content: "describe this image", Content: "describe this image",
Media: []string{ref}, Media: []string{ref},