Keep the handoff continuation message when its turn is folded away
This commit is contained in:
@@ -3,6 +3,7 @@ package agents
|
||||
import (
|
||||
"context"
|
||||
"log/slog"
|
||||
"strings"
|
||||
|
||||
"g.fc.run/misc/byre/internal/api"
|
||||
)
|
||||
@@ -36,6 +37,10 @@ func isHandoffPrompt(actor, text string) bool {
|
||||
return actor == "byre" && (text == handoffPrompt || text == leadHandoffPrompt)
|
||||
}
|
||||
|
||||
func isContinuation(actor, text string) bool {
|
||||
return actor == "byre" && (strings.HasPrefix(text, handoffPreamble) || strings.HasPrefix(text, leadHandoffPreamble))
|
||||
}
|
||||
|
||||
func (m *Manager) continueFromHandoff(sessionID, handoff string) {
|
||||
ctx := context.Background()
|
||||
err := m.handoff(ctx, sessionID, handoff)
|
||||
|
||||
Reference in New Issue
Block a user