Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 30, 2026, 1:10 PM ET / 17:10 UTC. Summary PR surface: Source +213, Tests +79. Total +292 across 40 files. Reproducibility: not applicable. as a bug reproduction; this is a feature PR for a new Control UI sidebar rename affordance. Source inspection confirms current main has server-backed label editing elsewhere but no sidebar recent-session rename control. Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Proof path suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one canonical server-backed Control UI rename flow that preserves the 512-character label contract, keeps stable selectors and row-specific accessible labels, resolves conflicts, and includes real browser proof. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction; this is a feature PR for a new Control UI sidebar rename affordance. Source inspection confirms current main has server-backed label editing elsewhere but no sidebar recent-session rename control. Is this the best way to solve the issue? No, not yet: reusing Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f284ce3b4df7. Label changesLabel justifications:
Evidence reviewedPR surface: Source +213, Tests +79. Total +292 across 40 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
…el patch (openclaw#90655) Adds an inline rename affordance to sidebar session rows. Renames go through the existing sessions.patch label path (patchSession), so the label is stored server-side and stays the single source of truth — the Sessions page, other browsers, and the gateway all see the same name. There is no client-only localStorage override. Details: - The rename button is a sibling of the session link, not nested inside the <a> (a button inside an anchor is invalid and ambiguous for keyboard/AT users). - Escape cancels the edit; a guard prevents the trailing blur from re-committing the canceled draft. - Empty input clears the custom label (patch label: null); patchSession refreshes the session list so the row re-renders from the server label. - The "Rename session" string is localized (sessionsView.rename) and i18n bundles are regenerated. Tests cover the server-patch commit, the button-not-nested-in-link markup, and the Escape-then-blur cancel path. Closes openclaw#90655
fc64e01 to
7c9fe21
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Summary
Adds an inline rename affordance to the Control UI sidebar session rows so a
session can be relabeled without opening the Sessions page (issue #90655).
What changed since the first revision
The first revision stored renames in a browser-only
localStoragemap, which thereview correctly flagged as a second source of truth: sidebar labels could
disagree with the Sessions page, other browsers, and the gateway.
This revision routes renames through the existing
sessions.patchlabel path(
patchSession(state, key, { label })), the same path the Sessions-page editorand the thinking/fast toggles already use. The label is persisted server-side and
the session list refresh re-renders the row from the server label — the single
source of truth. The
localStoragestore is gone entirely.Also addressed from the review:
<button>is now a sibling of thesession
<a>, not a child (a button inside an anchor is invalid markup andambiguous for keyboard/screen-reader users). The row is a
position: relativewrapper; the button overlays the right edge and is revealed on hover/focus.
trailing
blurfrom re-committing the canceled draft.sessionsView.rename, andthe i18n locale bundles +
.i18nmetadata are regenerated.patch label: null).Verification
node scripts/run-vitest.mjs ui/src/ui/app-render.assistant-avatar.test.ts→17 passed, including new cases: rename commits via
sessions.patchwith thelabel; the rename control is not nested inside the
<a>; Escape-then-blurcancels without patching.
node --import tsx scripts/control-ui-i18n.ts check→ all locales clean.pnpm tsgo:test:ui→ clean.oxfmt --check/oxlintclean on changed files.main(re-implemented on top of it).Real behavior proof
sessions.patchand re-renders from the server label; no client-only override.
UI typecheck.
sessions.patchRPC is called with{ key, label }.sessions.patchand the row reflects the new server label after refresh.
and inline editor styling (logic and markup are covered by the jsdom tests; a
maintainer can request Mantis visual proof before merge).
Closes #90655