Revert "fix: title gen when first msg(s) are shell invocations (#4874)"

This reverts commit 17e8322c29.
This commit is contained in:
Aiden Cline
2025-11-28 12:18:02 -06:00
parent 17e8322c29
commit 0e280017e6
2 changed files with 3 additions and 5 deletions

View File

@@ -283,7 +283,7 @@ export namespace SessionPrompt {
session: await Session.get(sessionID),
modelID: lastUser.model.modelID,
providerID: lastUser.model.providerID,
message: msgs.find((m) => m.info.role === "user" && !m.parts.every((p) => "synthetic" in p && p.synthetic))!,
message: msgs.find((m) => m.info.role === "user")!,
history: msgs,
})
@@ -1466,7 +1466,6 @@ export namespace SessionPrompt {
content: "Generate a title for this conversation:\n",
},
...MessageV2.toModelMessage([
...input.history,
{
info: {
id: Identifier.ascending("message"),