fix(coding-agent): handle empty session titles and session info metadata (#2304)

* fix(coding-agent): handle empty session titles in tree

* fix(coding-agent): ignore session info in summaries

* docs: update changelog for PR #2304
This commit is contained in:
Aliou Diallo
2026-03-17 16:22:04 +01:00
committed by GitHub
parent 2d05e87281
commit 18d90b5c48
5 changed files with 25 additions and 8 deletions

View File

@@ -162,6 +162,7 @@ function getMessageFromEntry(entry: SessionEntry): AgentMessage | undefined {
case "model_change":
case "custom":
case "label":
case "session_info":
return undefined;
}
}

View File

@@ -317,7 +317,10 @@ function findValidCutPoints(entries: SessionEntry[], startIndex: number, endInde
case "custom":
case "custom_message":
case "label":
case "session_info":
break;
}
// branch_summary and custom_message are user-role messages, valid cut points
if (entry.type === "branch_summary" || entry.type === "custom_message") {
cutPoints.push(i);