Skip to content

fix: preserve full transcript history when saving#10

Open
thanhsang95 wants to merge 1 commit intophuc-nt:mainfrom
thanhsang95:fix/Stopping-transcript-saved-only-the-last-short-segment-instead-of-the-full-conversation-
Open

fix: preserve full transcript history when saving#10
thanhsang95 wants to merge 1 commit intophuc-nt:mainfrom
thanhsang95:fix/Stopping-transcript-saved-only-the-last-short-segment-instead-of-the-full-conversation-

Conversation

@thanhsang95
Copy link
Copy Markdown

_trimSegments() was destructively removing old segments from the same array used by getFormattedContent() and getPlainText(), causing only the last ~1200 chars to be saved instead of the full session.

Add separate allSegments array that stores complete history (never trimmed). Save/copy operations now read from allSegments while display rendering continues using the trimmed segments array.

_trimSegments() was destructively removing old segments from the
same array used by getFormattedContent() and getPlainText(), causing
only the last ~1200 chars to be saved instead of the full session.

Add separate allSegments array that stores complete history (never
trimmed). Save/copy operations now read from allSegments while
display rendering continues using the trimmed segments array.
@quanluon
Copy link
Copy Markdown

Please merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants