loop: don't rename title tool, even with precommit experiment
Doing so breaks various UIs.
diff --git a/loop/agent.go b/loop/agent.go
index 8482bcf..703c8ce 100644
--- a/loop/agent.go
+++ b/loop/agent.go
@@ -936,14 +936,12 @@
}
func (a *Agent) preCommitTool() *llm.Tool {
- name := "title"
description := `Sets the conversation title and creates a git branch for tracking work. MANDATORY: You must use this tool before making any git commits.`
if experiment.Enabled("precommit") {
- name = "precommit"
description = `Sets the conversation title, creates a git branch for tracking work, and provides git commit message style guidance. MANDATORY: You must use this tool before making any git commits.`
}
preCommit := &llm.Tool{
- Name: name,
+ Name: "title",
Description: description,
InputSchema: json.RawMessage(`{
"type": "object",