feat(tui): fork slash command for keyboard-friendly session forking (resolves #5599) (#5610)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Ariane Emory
2025-12-18 10:38:19 -06:00
committed by GitHub
co-authored by github-actions[bot]
parent 4bf882ba81
commit 7437ccd6f4
5 changed files with 82 additions and 1 deletions
@@ -24,7 +24,7 @@ export function DialogTimeline(props: {
const result = [] as DialogSelectOption<string>[]
for (const message of messages) {
if (message.role !== "user") continue
const part = (sync.data.part[message.id] ?? []).find((x) => x.type === "text" && !x.synthetic) as TextPart
const part = (sync.data.part[message.id] ?? []).find((x) => x.type === "text" && !x.synthetic && !x.ignored,) as TextPart
if (!part) continue
result.push({
title: part.text.replace(/\n/g, " "),