Skip to content

fix: allow catalog continuation after native terminal exit - #191817

Merged
roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-145930
Nov 3, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-145930

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Supersedes #145930, thanks @ericcaiwx-star.

Related: #145637

What Problem This Solves

Fixes an existing native conversation remaining unavailable for Web continuation after its terminal exits because the retained catalog pane still has the provider's earlier canContinue: false result.

User Impact

Users can continue once the provider allows it, without reloading the page. Provider denial still blocks continuation. Loaded transcript pages and the older-history cursor remain intact; no configuration or migration is required.

Why This Change Was Made

The catalog reader now handles the existing Gateway terminal.exit event and reuses its scoped metadata lookup for blocked conversations. A metadata-only read preserves the retained transcript. An unfinished transcript keeps its existing full-read/resume path.

This takes the continuation repair from the original proposal. Transcript reconciliation and new-session discovery remain outside this change. A terminal exit revalidates blocked retained catalogs on the same connection; it does not infer permission from the exit event.

Production delta is +23 lines, reusing the existing reader and event subscription. There is no dead or duplicate owner code to remove safely to offset this small addition. The 102-line regression allocation covers continuation recovery, provider denial, and a hidden unfinished transcript in one parameterized mounted-pane test.

Evidence

  • On main 43c3b45c8e2c, the focused regression fails: terminal exit leaves the catalog at one metadata read instead of two, so continuation stays blocked.
  • With the repair, node scripts/run-vitest.mjs ui/src/pages/chat/chat-pane-catalog-terminal.test.ts ui/src/pages/chat/chat-pane-catalog.test.ts ui/src/pages/chat/chat-pane-catalog-disconnect.test.ts --maxWorkers=1 passes all 29 tests. The final command took 8.33 seconds wall time; the new file's three cases each take under one second. Hosted UI shards completed successfully in 549, 553, and 495 seconds (1,597 whole-job seconds including setup and existing tests).
  • Touched-file typed lint with --tsconfig tsconfig.ui.json, formatting, and git diff --check pass. Broad build/typecheck/test proof is delegated to PR CI.
  • Independent canonical autoreview of the final local change against 43c3b45c8e2c, with complete affected owners supplied, is scoped-clean at P0–P2. No actionable findings.
  • The contributor's code was read through gh pr view/diff and was never checked out or run. This is an independent implementation on current main. Validation uses the production pane lifecycle and Gateway-event boundary in jsdom; no browser or real native CLI/Gateway run is claimed.

Exact-head broad CI passed for cb64e598b6f30833c78f3c1f6cd53224fe18e802; all required gates were green before merge.

Recheck blocked catalog continuation against provider metadata on terminal
exit, preserving retained transcript pages and existing read ownership.

Co-authored-by: ericcaiwx-star <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 3, 2026 10:08
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 3, 2026
@roboclaw-bot
roboclaw-bot merged commit 7280007 into main Nov 3, 2026
94 checks passed
@roboclaw-bot
roboclaw-bot deleted the loop/contributor-pr-145930 branch November 3, 2026 10:16
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…191817)

Recheck blocked native catalog continuation against provider metadata after
terminal exit, preserving retained transcript pages and read ownership.

Supersedes openclaw#145930, thanks @ericcaiwx-star.

Co-authored-by: ericcaiwx-star <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant