fix: archive old transcript files on /new and /reset#14949
Merged
gumadeiras merged 5 commits intoopenclaw:mainfrom Feb 13, 2026
Merged
fix: archive old transcript files on /new and /reset#14949gumadeiras merged 5 commits intoopenclaw:mainfrom
gumadeiras merged 5 commits intoopenclaw:mainfrom
Conversation
757664e to
05b3a98
Compare
27e7309 to
c6bf7fc
Compare
c6bf7fc to
98d422b
Compare
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
98d422b to
2e72a64
Compare
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
92ba340 to
892fe79
Compare
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
gumadeiras
added a commit
to mcaxtr/openclaw
that referenced
this pull request
Feb 13, 2026
210d484 to
4724df7
Compare
Member
zhangyang-crazy-one
pushed a commit
to zhangyang-crazy-one/openclaw
that referenced
this pull request
Feb 13, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4724df7 Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
steipete
pushed a commit
to azade-c/openclaw
that referenced
this pull request
Feb 14, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4724df7 Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
4 tasks
Hansen1018
pushed a commit
to Hansen1018/openclaw
that referenced
this pull request
Feb 14, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4724df7 Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
GwonHyeok
pushed a commit
to learners-superpumped/openclaw
that referenced
this pull request
Feb 15, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4724df7 Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
qoli
pushed a commit
to qoli/openclaw
that referenced
this pull request
Feb 21, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4724df7 Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras (cherry picked from commit 31537c6)
6 tasks
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4724df7 Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras (cherry picked from commit 31537c6) # Conflicts: # CHANGELOG.md # src/auto-reply/reply/session-resets.test.ts # src/gateway/server-methods/sessions.ts # src/gateway/session-utils.fs.test.ts
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4724df7 Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras (cherry picked from commit 31537c6) # Conflicts: # CHANGELOG.md # src/auto-reply/reply/session-resets.test.ts # src/gateway/server-methods/sessions.ts # src/gateway/session-utils.fs.test.ts
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4724df7 Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #14869
Summary
archiveSessionTranscripts()helper insession-utils.fs.tsthat iterates transcript candidates and archives each witharchiveFileOnDisk()sessions.resetRPC handler (TUI/webchat path) after creating the new session entryinitSessionState()(chat channel path) after the session store update when/newor/resettriggers a resetsessions.deleteRPC handler to use the same shared helper (deduplication)Test plan
archiveSessionTranscripts()archives existing transcript file and returns archived patharchiveSessionTranscripts()archives transcript found via explicitsessionFilepatharchiveSessionTranscripts()returns empty array when no transcript files existarchiveSessionTranscripts()skips nonexistent files and archives only existing onespnpm build && pnpm checkpassesGreptile Overview
Greptile Summary
This PR adds a shared
archiveSessionTranscripts()helper to archive on-disk session transcript.jsonlfiles and wires it into the session reset flows (RPCsessions.resetand chat-channel/new//resethandling) so old transcripts don’t accumulate. It also refactorssessions.deleteto use the same helper, keeping transcript archiving behavior consistent across reset and delete paths.The helper builds transcript path candidates from the session store location, explicit
sessionFile, agent transcript location, and the fallback~/.openclaw/sessionspath, then best-effort renames any existing files to.<reason>.<timestamp>suffixes. Tests were added to validate the helper’s behavior across existing/missing files and explicit sessionFile paths.Confidence Score: 5/5
Last reviewed commit: 00b6333
Context used:
dashboard- CLAUDE.md (source)dashboard- AGENTS.md (source)