Repository navigation
fix(cli): reject nonexistent transcript summary paths - #128589
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 24, 2026 07:14
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 25, 2026
This was referenced Nov 2, 2026
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.
What Problem This Solves
Fixes an issue where users running
openclaw transcripts path <session>for an active session without a summary would receive a successful command and a nonexistentsummary.mdpath. This silently misled operators and downstream shell commands into treating an unavailable export as real.Why This Change Was Made
Make the plain-text path command honor the same missing-summary contract as its sibling
transcripts showcommand while preserving the documented machine-readablepath --jsonresponse withexists: false. Reuse the path command's existing transcript store for both session lookup and export, removing a redundant helper and a second store opening.User Impact
The normal transcript summary path command now clearly reports when a summary has not been created, while JSON consumers continue receiving the existing availability field. Metadata, raw transcript, session-directory exports, ambiguous selectors, and valid completed summaries retain their existing behavior.
Evidence
path --jsonreportingexists: falseand plainpathrejecting the missing summary. The new plain-text assertion fails against current main because the command resolves successfully with a nonexistent path.node scripts/run-vitest.mjs src/cli/program/register.transcripts.test.ts src/transcripts/store.test.ts: 30 CLI and artifact-owner tests pass across both actual Vitest lanes.node scripts/run-tsgo.mjs -p tsconfig.core.json --incremental --tsBuildInfoFile /private/tmp/openclaw-transcript-core.tsbuildinfoandnode scripts/run-tsgo.mjs -b test/tsconfig/tsconfig.core.test.config-cli.json --builders 1: core production and CLI-test type checks both pass.node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/cli/program/register.transcripts.ts src/cli/program/register.transcripts.test.ts, targetedoxfmt --check, andgit diff --check.