Skip to content

Commit 37430cf

Browse files
committed
Set a title to the sub-session
So that the runtime doesn't try and set a title for these Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent 5f6e940 commit 37430cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/runtime/runtime.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ func (r *Runtime) handleTaskTransfer(ctx context.Context, sess *session.Session,
719719
slog.Debug("Creating new session with parent session", "parent_session_id", sess.ID, "tools_approved", sess.ToolsApproved)
720720
s := session.New(session.WithSystemMessage(memberAgentTask), session.WithUserMessage("", "Follow the default instructions"))
721721
s.SendUserMessage = false
722+
s.Title = "Transferred task"
722723
s.ToolsApproved = sess.ToolsApproved
723724

724725
for event := range r.RunStream(ctx, s) {

0 commit comments

Comments
 (0)