Skip to content

Commit 2b53d3c

Browse files
committed
Remove redundant pre-LLM title_manually_set check
1 parent a8904c2 commit 2b53d3c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

apps/code/src/renderer/features/sessions/hooks/useChatTitleGenerator.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,12 @@ export function useChatTitleGenerator(taskId: string): void {
6565

6666
const run = async () => {
6767
try {
68-
if (getCachedTask(taskId)?.title_manually_set) {
69-
log.debug("Skipping auto-title, user renamed task", { taskId });
70-
return;
71-
}
72-
7368
const result = await generateTitleAndSummary(content);
7469
if (result) {
7570
const { title, summary } = result;
7671
if (title) {
7772
if (getCachedTask(taskId)?.title_manually_set) {
78-
log.debug(
79-
"Skipping auto-title, user renamed task during generation",
80-
{ taskId },
81-
);
73+
log.debug("Skipping auto-title, user renamed task", { taskId });
8274
return;
8375
}
8476
const client = await getAuthenticatedClient();

0 commit comments

Comments
 (0)