Skip to content

Commit 84b2e4c

Browse files
committed
fix(ui): keep rewind confirmation controls accessible
1 parent f02c309 commit 84b2e4c

4 files changed

Lines changed: 46 additions & 30 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Latest release notes: https://docs.openclaw.ai/releases/2026.8.1
7171

7272
### Fixes
7373

74+
- **Control UI rewind:** keep confirmation buttons above their context menu and preserve the dialog while toggling its confirmation preference.
7475
- **Subagent completion:** recognize visible final answers delivered to internal and nested parent sessions, preventing false delivery failures while preserving external channel delivery checks.
7576
- Codex/Linux: wait for a live app-server process to expose its startup command line within the existing inspection deadline, preserving process identity checks and preventing intermittent startup failures.
7677
- **Cloud session lifecycle:** prevent archive, delete, and restart recovery from deadlocking behind an earlier worker move, keep work admission closed through cleanup, and preserve the same successor for concurrent recovery requests.

‎ui/src/e2e/session-management.archived-actions.e2e.test.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,19 @@ suite.define(() => {
139139
await rewind.click();
140140
await page.locator(".chat-confirm-popover").waitFor({ state: "visible" });
141141

142+
const confirmation = page.locator(".chat-confirm-popover");
143+
const remember = confirmation.getByRole("checkbox");
144+
await remember.check();
145+
expect(await remember.isChecked()).toBe(true);
146+
await remember.uncheck();
147+
await confirmation.getByRole("button", { name: "Cancel", exact: true }).click();
148+
await confirmation.waitFor({ state: "detached" });
149+
expect(await gateway.getRequests("sessions.rewind")).toHaveLength(0);
150+
expect(await initialMenu.isVisible()).toBe(true);
151+
expect(await rewind.evaluate((element) => element === document.activeElement)).toBe(true);
152+
await rewind.click();
153+
await confirmation.waitFor({ state: "visible" });
154+
142155
await gateway.emitGatewayEvent("sessions.changed", {
143156
...session,
144157
archived: true,

‎ui/src/pages/chat/components/chat-message-confirmation.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ function openConfirmedActionPopover(btn: HTMLElement, params: ConfirmedActionPar
260260
dismissPopover();
261261
params.action();
262262
});
263+
// Keep this portaled dialog's clicks from dismissing its owning context menu.
264+
popover.addEventListener("click", (event) => event.stopPropagation());
263265
popover.addEventListener("keydown", containKeyboardFocus);
264266
document.addEventListener("contextmenu", closeOnContextMenu, true);
265267
window.addEventListener("keydown", closeOnEscape, true);

‎ui/src/styles/chat/grouped.css‎

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,8 @@ img.chat-avatar.chat-avatar--logo {
11941194
min-width: 200px;
11951195
max-width: calc(100vw - 48px);
11961196
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
1197-
z-index: 100;
1197+
/* Above the still-connected .chat-reply-context-menu (9999). */
1198+
z-index: 10000;
11981199
animation: scale-in 0.15s ease-out;
11991200
transform-origin: top right;
12001201
}
@@ -1252,21 +1253,20 @@ img.chat-avatar.chat-avatar--logo {
12521253
color: var(--media-foreground);
12531254
}
12541255

1255-
:root[data-theme="dark"] .chat-confirm-popover__yes {
1256-
background: var(--destructive);
1257-
color: var(--destructive-foreground);
1258-
}
1259-
1260-
:root[data-theme="openknot"] .chat-confirm-popover__yes,
1261-
:root[data-theme="dash"] .chat-confirm-popover__yes,
1262-
:root[data-theme="absolutely"] .chat-confirm-popover__yes,
1263-
:root[data-theme="tide"] .chat-confirm-popover__yes,
1264-
:root[data-theme="phosphor"] .chat-confirm-popover__yes,
1265-
:root[data-theme="crt"] .chat-confirm-popover__yes,
1266-
:root[data-theme="manuscript"] .chat-confirm-popover__yes,
1267-
:root[data-theme="rose"] .chat-confirm-popover__yes,
1268-
:root[data-theme="miami"] .chat-confirm-popover__yes,
1269-
:root[data-theme="beacon"] .chat-confirm-popover__yes {
1256+
:root:is(
1257+
[data-theme="dark"],
1258+
[data-theme="openknot"],
1259+
[data-theme="dash"],
1260+
[data-theme="absolutely"],
1261+
[data-theme="tide"],
1262+
[data-theme="phosphor"],
1263+
[data-theme="crt"],
1264+
[data-theme="manuscript"],
1265+
[data-theme="rose"],
1266+
[data-theme="miami"],
1267+
[data-theme="beacon"]
1268+
)
1269+
.chat-confirm-popover__yes {
12701270
background: var(--destructive);
12711271
color: var(--destructive-foreground);
12721272
}
@@ -1275,20 +1275,20 @@ img.chat-avatar.chat-avatar--logo {
12751275
background: var(--danger-solid-hover);
12761276
}
12771277

1278-
:root[data-theme="dark"] .chat-confirm-popover__yes:hover {
1279-
background: var(--destructive-hover);
1280-
}
1281-
1282-
:root[data-theme="openknot"] .chat-confirm-popover__yes:hover,
1283-
:root[data-theme="dash"] .chat-confirm-popover__yes:hover,
1284-
:root[data-theme="absolutely"] .chat-confirm-popover__yes:hover,
1285-
:root[data-theme="tide"] .chat-confirm-popover__yes:hover,
1286-
:root[data-theme="phosphor"] .chat-confirm-popover__yes:hover,
1287-
:root[data-theme="crt"] .chat-confirm-popover__yes:hover,
1288-
:root[data-theme="manuscript"] .chat-confirm-popover__yes:hover,
1289-
:root[data-theme="rose"] .chat-confirm-popover__yes:hover,
1290-
:root[data-theme="miami"] .chat-confirm-popover__yes:hover,
1291-
:root[data-theme="beacon"] .chat-confirm-popover__yes:hover {
1278+
:root:is(
1279+
[data-theme="dark"],
1280+
[data-theme="openknot"],
1281+
[data-theme="dash"],
1282+
[data-theme="absolutely"],
1283+
[data-theme="tide"],
1284+
[data-theme="phosphor"],
1285+
[data-theme="crt"],
1286+
[data-theme="manuscript"],
1287+
[data-theme="rose"],
1288+
[data-theme="miami"],
1289+
[data-theme="beacon"]
1290+
)
1291+
.chat-confirm-popover__yes:hover {
12921292
background: var(--destructive-hover);
12931293
}
12941294

0 commit comments

Comments
 (0)