Skip to content

fix(ui): running tools show unknown after history refresh - #185261

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/grand-crab-2
Oct 27, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/grand-crab-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #185254

What Problem This Solves

Fixes running tools showing “Outcome unknown” after chat history refresh, and call-only history being counted as an unknown execution outcome.

User Impact

Known tool activity keeps its purpose and Running state until an outcome receipt. Incomplete history says “No result available” without inventing success, failure, or an unknown outcome. Backing-session replacement still clears the previous session’s live facts.

Why This Change Was Made

A saved invocation was incorrectly sufficient to retire live execution state. Retirement now requires a result or terminal prepared receipt; provisional history remains distinct from execution outcomes across chat, completed-work summaries, and subagent activity.

Server replay-budget retention is unchanged. Missing replay facts do not establish whether a call is running or finished.

Evidence

  • Production history-hydration regression: red with the original retirement owner; green with the fix, including later completion.
  • 276 focused tests and 16 Chromium tests passed. The lifecycle browser scenario uses production progress capture and in-flight snapshot projection, not an injected unknown status or a live external-model run.
  • Initial CI found two stale expectations. The retirement fixture now contains a recorded result, and provisional calls are no longer expected to count as unknown. All 86 tests in those two files passed afterward (3.63 s wrapper wall); production code is unchanged by this CI repair.
  • Core/UI/browser-test typechecks, targeted lint, formatting, and diff checks passed, including supplementary UI test-type shards.
  • Knip production unused-file scan passed with 0 entries. The full-tree scan failed with 20 reports under unchanged scripts/perf/; no changed path was reported. A separate baseline scan was not run. This aggregate failure is retained, not marked green or hidden with an ignore/baseline.
  • Independent AutoReview: scoped-clean P0–P2 on the complete production candidate; assessment did not independently rerun tests. The final test-only correction was reviewed directly.
  • Local focused batches: 110 s, 44 s, and 130 s wall including shared compilation. Full browser batch: 68 s including build/setup; the focused lifecycle scenario takes 2.25 s. Current-head hosted CI is pending.
  • All three published images were verified on the actual PR page: decoded labels, visible bounds, dimensions, matching SHA256 bytes, and inspected rendered screenshots.

Before

Same fixture, with the bounded replay deliberately omitted: incomplete history is incorrectly labeled as an unknown outcome.

Before: provisional history falsely reports an unknown outcome

After

The same view preserves purpose and correctly reports unavailable result data. Known Running facts are separately verified through refresh and reload.

After: provisional history preserves purpose without claiming an outcome

Restored active call and simplification

Running call restored from captured execution facts

The change removes premature live-state retirement and the conflation of missing-page results with execution uncertainty. A shared card-to-activity adapter replaces duplicated conversion policy. Production delta: +70/−26 lines. No new registry, configuration, protocol version, persistence schema, or retention limit.

Worked on by

Work sessions

roboclaw-bot and others added 2 commits October 27, 2026 00:36
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 343e43c6-bb05-4c28-88e6-d160639d4550
@clawsweeper

clawsweeper Bot commented Oct 27, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: M labels Oct 27, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 27, 2026 00:49
@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 Oct 27, 2026
roboclaw-bot and others added 2 commits October 27, 2026 01:04
Use a recorded result for live-card retirement and keep unpaired calls out of unknown-outcome counts.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 84c9c8b5-f46a-4a61-910d-4567d2708192
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 27, 2026 01:11
@roboclaw-bot
roboclaw-bot merged commit d923fa6 into main Oct 27, 2026
135 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/grand-crab-2 branch October 27, 2026 01:15
@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 Oct 27, 2026
…85261)

* fix(ui): keep running tools active through history refresh

Co-authored-by: steipete <[email protected]>

* fix(ui): running tools show unknown after history refresh

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 343e43c6-bb05-4c28-88e6-d160639d4550

* test(ui): reconcile remaining tool outcome fixtures

Use a recorded result for live-card retirement and keep unpaired calls out of unknown-outcome counts.

Co-authored-by: steipete <[email protected]>

* Publish openclaw/grand-crab-2

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 84c9c8b5-f46a-4a61-910d-4567d2708192

---------

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

Labels

agents Agent runtime and tooling 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. docs Improvements or additions to documentation gateway Gateway runtime size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat shows unknown outcomes for running tools after history refresh

1 participant