(block map[string]any)
| 726 | |
| 727 | func appendTranscriptSnapshotEntry(entries []map[string]any, kind, text string) []map[string]any { |
| 728 | text = strings.TrimSpace(text) |
| 729 | if text == "" { |
| 730 | return entries |
| 731 | } |
| 732 | if kind == "user" && len(entries) > 0 { |
| 733 | last := entries[len(entries)-1] |
| 734 | if last["kind"] == kind && strings.TrimSpace(stringFromAny(last["text"])) == text { |
| 735 | return entries |
| 736 | } |
| 737 | } |
| 738 | return append(entries, map[string]any{"kind": kind, "text": text}) |
| 739 | } |
| 740 |
nothing calls this directly
no test coverage detected