Skip to content

fix(ui): keep sessions visible when deletion is a no-op - #105778

Merged
steipete merged 1 commit into
mainfrom
codex/fix-session-delete-result
Jul 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-session-delete-result

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users deleting a session would see it removed locally when the Gateway accepted the request but reported that no deletion occurred. Batch deletion could likewise report no-op targets as deleted and clear their model overrides.

Why This Change Was Made

The Control UI now treats the Gateway's deleted result as the canonical outcome for both single and batch deletion. Optimistic removal, navigation, and model-override cleanup run only after a confirmed deletion.

User Impact

Sessions remain visible and usable when a lifecycle race or already-missing target makes deletion a no-op. Batch results contain only sessions the Gateway actually deleted.

Evidence

  • corepack pnpm test ui/src/lib/sessions/index.test.ts — 17 passed on Blacksmith Testbox tbx_01kxccbyhyy8z8xbhve827geen.
  • corepack pnpm test ui/src/e2e/session-management.e2e.test.ts — 11 existing Chromium cases passed; the new no-op case initially reproduced the failure and passes after the fix.
  • Focused source-blind Chromium contract — the rendered Sessions row remains visible after { deleted: false }, and the request targets the selected key.
  • corepack pnpm check:changed — passed on the same Testbox.
  • Fresh Codex autoreview — clean; no accepted or actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 13, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof:

  • Blacksmith Testbox tbx_01kxccbyhyy8z8xbhve827geen: corepack pnpm test ui/src/lib/sessions/index.test.ts — 17/17 passed.
  • Chromium: corepack pnpm test ui/src/e2e/session-management.e2e.test.ts — 11 existing cases passed; focused no-op deletion case passed after the regression locator was corrected.
  • Source-blind browser contract: confirming deletion against a Gateway { deleted: false } response leaves the rendered session row visible and targets the selected session key.
  • corepack pnpm check:changed — passed, including UI/core test types and lint.
  • Fresh Codex autoreview — clean; no accepted or actionable findings.

Known proof gaps: none for the touched Control UI/Gateway response boundary.

@steipete
steipete merged commit 0ba1e5c into main Jul 13, 2026
101 of 104 checks passed
@steipete
steipete deleted the codex/fix-session-delete-result branch July 13, 2026 00:17
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 13, 2026
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 maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant