Skip to content

feat(bay): focus the crustacean finder with the / shortcut - #1182

Merged
steipete merged 2 commits into
mainfrom
steipete/bay-finder-slash-shortcut
Sep 2, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/bay-finder-slash-shortcut

Conversation

@steipete

@steipete steipete commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Bay users currently need the mouse or several Tab presses to reach “Where’s my crustacean?” Pressing / from ordinary page content now focuses the finder without inserting a slash.

Why This Change Was Made

The change remains one small listener in dashboard/bay-page.ts, plus the existing hint and observer-guide text. It preserves the original contribution and integrates the current Bay behavior without adding a keyboard registry or another UI module.

User Impact

Users can start searching immediately. The same key keeps its normal behavior in typing controls and on buttons. The shortcut stays inactive during modified/composing/already-handled events or while a detail blade is open; both the initial and Clear hints advertise it.

OpenClaw Bay Impact

The finder is the affected Bay surface. Its public observer behavior, status data, and reference links are unchanged; the browser proof below exercises the actual page and detail blade.

Documentation Impact

Updated the finder description in the active observer guide, docs/openclaw-bay-demo.md. Its existing maintainer owner, page/Worker source of truth, and navigation update trigger still apply.

Evidence

Main, repair, and dashboard TypeScript builds passed; the focused public Bay route test passed (1/1). Precommit and committed-branch Codex reviews were clean at P0 scope. The repository’s required CI runs the full pnpm run check on the updated PR.

Real Behavior Proof

Controlled browser proof on September 2 used macOS with Node 24.20.0, the actual Worker /bay route and artwork in local Wrangler 4.107.0/workerd, and the connected Chrome 152.0.7977.65 profile. Both baseline and candidate received the same synthetic public-status fixture containing openclaw/openclaw#123 and openclaw/clawhub#456. Seven observed checks passed: baseline / leaves page focus; candidate / focuses an empty finder; / types inside the finder; button focus is preserved; search finds the supplied reference; its real detail dialog stays open after /; Clear restores the empty field and shortcut hint. No browser console errors were recorded.

The previous review’s button and Shift findings are addressed by the ancestor-aware button exclusion and explicit event.shiftKey guard. Fresh native proof covers allowed page focus and the excluded input/button/dialog cases. The optional coverage recommendation is satisfied for those rendered paths; Shift’s explicit guard is source-reviewed, because a normal US-layout Shift+/ emits ? and would not prove the alternate-layout / event described by the finding. This proof does not claim that cross-layout case was exercised.

  • Candidate: 690d0a38f4c1a5edc50686cbabc4367a5410c27b, tree f76f07d89f9f38771e0a0420cac35927c3d0beba.
  • Baseline: 56ccb516ab9d24031ed69bf4449b9916d2153367.
  • Bay source SHA-256: 39ac7ecd3190eb047c3e9616810d8b5f3ac4c29bebbf07f1604a6eb291b512a3.
  • Entry: pinned wrangler dev --local, serving the production Worker and artwork with a loopback fixture wrapper; actual Chrome keyboard input and accessibility observations at /bay.
  • Limits: status/API responses are synthetic and confined to loopback; production queue freshness and deployment are outside this UI proof. Modifier/composition/default-prevented and additional form-control guards were reviewed in source. Chrome automation intermittently timed out; native accessibility observations verified each recorded behavior.

Baseline after pressing /:

Baseline Bay finder remains unfocused

After pressing / on the candidate:

Updated Bay finder is focused and empty, with the shortcut hint visible

Pressing / anywhere outside a form control focuses the Bay search box,
and the finder hint advertises the shortcut.
@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 3:23 PM ET / 19:23 UTC.

ClawSweeper review

What this changes

The PR adds a / keyboard shortcut and visible hint that focuses OpenClaw Bay’s public-reference finder outside interactive controls or open detail dialogs.

Merge readiness

✅ Ready for maintainer review

Keep open for maintainer review: current main does not contain the shortcut, and the updated guard resolves the prior button and Shift concerns with sufficient exact-head browser proof.

Priority: P3
Reviewed head: 690d0a38f4c1a5edc50686cbabc4367a5410c27b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation resolves the prior blockers and is backed by strong exact-head browser evidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed production owner is the /bay page’s document-level keyboard handler. The supplied current-head workerd/Chrome proof exercises ordinary page focus, excluded typing and button targets, a real finder search, an open detail dialog, and Clear restoration, with after-fix screenshots showing the finder focused after /; synthetic loopback status data appropriately limits the claim to this UI behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed production owner is the /bay page’s document-level keyboard handler. The supplied current-head workerd/Chrome proof exercises ordinary page focus, excluded typing and button targets, a real finder search, an open detail dialog, and Clear restoration, with after-fix screenshots showing the finder focused after /; synthetic loopback status data appropriately limits the claim to this UI behavior.
Evidence reviewed 6 items Current-head shortcut guard: The introduced listener handles only an unmodified / event, excludes composing/default-prevented events and input, textarea, select, button, and contenteditable targets, then leaves all open dialogs unaffected before focusing the finder.
Prior findings resolved: The current head differs from the earlier reviewed head by adding the Shift guard and ancestor-aware button exclusion; both earlier P2 findings are no longer present.
Current main still lacks the feature: The fetched current-main version has neither the shortcut listener nor shortcut hint; the PR head is not an ancestor of current main.
Findings None None.
Security None None.

How this fits together

OpenClaw Bay is the public observer page for bounded, verified GitHub work. Browser interactions search and open visible references while the page reads status from the Worker API.

flowchart LR
  A[Public status API] --> B[OpenClaw Bay page]
  C[Keyboard input] --> D[Shortcut guard]
  D --> E[Finder input]
  E --> F[Visible reference search]
  F --> G[Reference detail dialog]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Patch scope 2 files; 14 added, 4 removed The implementation is a narrowly scoped Bay keyboard interaction plus its active observer-guide documentation.

Technical review

Best possible solution:

Land the narrow guarded shortcut and its matching observer-guide wording, preserving the existing no-action public Bay boundary.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug reproduction; the relevant evidence is the supplied exact-head browser proof of the newly added keyboard interaction.

Is this the best way to solve the issue?

Yes. A small page-level listener with explicit modifier, interactive-target, and dialog guards is the narrowest maintainable way to provide the finder shortcut.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f5d72d059cae.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed production owner is the /bay page’s document-level keyboard handler. The supplied current-head workerd/Chrome proof exercises ordinary page focus, excluded typing and button targets, a real finder search, an open detail dialog, and Clear restoration, with after-fix screenshots showing the finder focused after /; synthetic loopback status data appropriately limits the claim to this UI behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed production owner is the /bay page’s document-level keyboard handler. The supplied current-head workerd/Chrome proof exercises ordinary page focus, excluded typing and button targets, a real finder search, an open detail dialog, and Clear restoration, with after-fix screenshots showing the finder focused after /; synthetic loopback status data appropriately limits the claim to this UI behavior.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.

Label justifications:

  • P3: This is a small usability enhancement to the public Bay page with no demonstrated service or data impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed production owner is the /bay page’s document-level keyboard handler. The supplied current-head workerd/Chrome proof exercises ordinary page focus, excluded typing and button targets, a real finder search, an open detail dialog, and Clear restoration, with after-fix screenshots showing the finder focused after /; synthetic loopback status data appropriately limits the claim to this UI behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the /bay page’s document-level keyboard handler. The supplied current-head workerd/Chrome proof exercises ordinary page focus, excluded typing and button targets, a real finder search, an open detail dialog, and Clear restoration, with after-fix screenshots showing the finder focused after /; synthetic loopback status data appropriately limits the claim to this UI behavior.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed production owner is the /bay page’s document-level keyboard handler. The supplied current-head workerd/Chrome proof exercises ordinary page focus, excluded typing and button targets, a real finder search, an open detail dialog, and Clear restoration, with after-fix screenshots showing the finder focused after /; synthetic loopback status data appropriately limits the claim to this UI behavior.

Evidence

What I checked:

  • Current-head shortcut guard: The introduced listener handles only an unmodified / event, excludes composing/default-prevented events and input, textarea, select, button, and contenteditable targets, then leaves all open dialogs unaffected before focusing the finder. (dashboard/bay-page.ts:390, 690d0a38f4c1)
  • Prior findings resolved: The current head differs from the earlier reviewed head by adding the Shift guard and ancestor-aware button exclusion; both earlier P2 findings are no longer present. (dashboard/bay-page.ts:391, 690d0a38f4c1)
  • Current main still lacks the feature: The fetched current-main version has neither the shortcut listener nor shortcut hint; the PR head is not an ancestor of current main. (dashboard/bay-page.ts:383, f5d72d059cae)
  • Observer-guide contract: The updated guide accurately limits the shortcut to outside form controls and disables it while a detail blade is open, consistent with the public observer-only Bay contract. (docs/openclaw-bay-demo.md:80, 690d0a38f4c1)
  • Exact-head browser proof: The supplied PR body records an after-fix local Worker/workerd and Chrome run on the current head, including successful allowed-focus, input, button, search, dialog, and Clear scenarios; before/after screenshots directly show the changed visible finder-focus behavior. (690d0a38f4c1)
  • Bay ownership history: Recent history shows sustained Bay ownership through public-reference blade restoration and later dashboard changes, led by Martin Cleary; this supports routing to the current Bay area contributor rather than attributing ownership to the PR author alone. (dashboard/bay-page.ts:201, 68a6dfcfc556)

Likely related people:

  • Martin Cleary: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (7 earlier review cycles)
  • reviewed 2026-08-17T12:39:53.169Z sha a34b5e1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-18T02:59:48.960Z sha a34b5e1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-18T05:23:37.903Z sha a34b5e1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-18T08:14:20.558Z sha a34b5e1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-18T08:52:07.144Z sha a34b5e1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T09:36:01.260Z sha a34b5e1 :: needs changes before merge. :: [P2] Exclude button-focused key presses | [P2] Honor the Shift modifier guard
  • reviewed 2026-08-30T16:52:09.813Z sha a34b5e1 :: needs changes before merge. :: [P2] Ignore the shortcut while a button has focus | [P2] Honor the Shift modifier guard

steipete added a commit that referenced this pull request Aug 17, 2026
…ests everywhere (#1184)

The exact-event review lane delivers GitHub effects directly and skips the
artifact publication job, so its recommended live proofs never dispatched
(observed on #1182, run 32002395638). Both lanes now
share a repair-built candidates CLI, which the conditional build-script
emits in every branch, and dispatch with a host-repo app token.

live_test is now inherited from generic fallback profiles, enabling
terminal-surface live proofs for every openclaw/* and steipete/* target
(including openclaw/openclaw), with browser configs for ClawHub and the
ClawSweeper bay demo. A recommended browser plan for a terminal-only
repository is a logged skip instead of an error.
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 17, 2026
steipete added a commit that referenced this pull request Aug 17, 2026
…1198)

The attach job hydrates the CURRENT record straight from the canonical
store, but repair:publish-main fell back to the intentionally unhydrated
CLAWSWEEPER_STATE_DIR for its three-way baseline, so every publication
looked like a same-section concurrent edit and conflicted
deterministically (#1182 run 32031655761). Each
retry attempt now captures the freshly hydrated record as an explicit
baseline for the unchanged strict fence, matching exact review's
capture-before-mutate idiom.
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 18, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 18, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 18, 2026
Integrate current main while preserving the original shortcut contribution. Keep normal typing, button focus, modifiers, composition, and open dialogs outside the shortcut path. Real Chrome browser proof covers finder focus, typing, search, dialog handling, and Clear.
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. labels Sep 2, 2026
@steipete
steipete merged commit 2bd0613 into main Sep 2, 2026
28 checks passed
@steipete
steipete deleted the steipete/bay-finder-slash-shortcut branch September 2, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant