Skip to content

fix(ui): give each agent correct cron, model, and pagination ownership - #116771

Merged
steipete merged 1 commit into
mainfrom
codex/auto-qa-uiagents
Jul 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/auto-qa-uiagents

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Scope agent cron jobs, scheduler totals, and next wake to the selected agent, including implicit default-agent ownership.
  • Preserve canonical in-flight cron state across same-connection Gateway snapshots and repeated refreshes; prevent permanently wedged loading states.
  • Use the existing chat.metadata {agentId} owner for genuinely agent-scoped model catalogs and make catalog failures visible/retryable.
  • Expose agent jobs after the first 50 through the existing scheduler pagination behavior; the 51st job is actually reachable.
  • Extract one shared pagination component and its component-owned stylesheet for both the scheduler and Agents routes; remove duplicated/stale pagination ownership.

Verification

  • Agents owner, actual clickable pagination, global scheduler sibling, and shared style ownership: 88 tests passed.
  • Independent whole-surface final review inspected account isolation, implicit default ownership, scoped totals/wake, stale responses, concurrent refresh, actual 51st-row access, component-owned styles, and scheduler/run-history siblings; no blockers.
  • Targeted repository oxlint, formatting, uniqueness checks, and git diff --check pass.
  • Automated autoreview is unavailable because the mandatory TruffleHog binary is missing; equivalent independent manual diff and secret review completed.

Root causes fixed

5 distinct UI Agents ownership, refresh, model, and pagination defects.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 31, 2026
@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 7:16 AM ET / 11:16 UTC.

ClawSweeper review

What this changes

Scopes the Agents Control UI’s cron lists, scheduler totals, next wake time, model catalog, and pagination to the selected agent, while extracting the cron pagination UI shared with the scheduler route.

Merge readiness

⛔ Blocked until real behavior proof is added - 4 items remain

Keep this PR open. The selected-agent ownership repair is a plausible, focused fix and the branch is mergeable, but the PR still lacks an after-fix runtime artifact for the multi-agent Control UI behavior; its maintainer label also requires explicit human handling rather than cleanup automation.

Priority: P1
Reviewed head: 50d621485a781ee412fa3e1bb667c861c4cdf318

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and covered by targeted tests, but missing real behavior proof remains a merge gate for this external PR.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: The PR body documents tests and manual review, but contains no redacted after-fix live Control UI artifact showing the multi-agent ownership and pagination behavior. Add a recording, live output, or redacted logs; updating the PR body should trigger a fresh review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body documents tests and manual review, but contains no redacted after-fix live Control UI artifact showing the multi-agent ownership and pagination behavior. Add a recording, live output, or redacted logs; updating the PR body should trigger a fresh review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 4 items Proposed ownership boundary: The supplied branch diff routes cron jobs, scoped totals, next-wake state, model-catalog state, and retry behavior through the Agents page before rendering the selected agent’s panels; pagination is shared with the global scheduler view.
Focused regression coverage: The supplied diff adds Agents-page and view coverage for per-agent cron state, loading behavior, model-catalog ownership, and pagination, plus an E2E expectation that model data uses chat.metadata with the selected agent id.
Real behavior proof remains absent: The PR body reports 88 tests and static checks, while the previous completed ClawSweeper review explicitly found no redacted after-fix runtime artifact for switching agents, scoped cron data, or pagination.
Findings None None.
Security None None.

How this fits together

The Control UI receives Gateway snapshots and RPC responses, stores them in Agents-page state, and renders configuration and cron panels for the currently selected agent. This PR changes the ownership, refresh, and pagination boundary between those shared Gateway results and the per-agent views.

flowchart LR
  A[Gateway snapshots and RPC responses] --> B[Agents page state]
  B --> C[Selected agent ownership]
  C --> D[Cron jobs and scope statistics]
  C --> E[Agent model catalog]
  D --> F[Agents cron panel]
  D --> G[Shared pagination component]
  G --> H[Scheduler route]
  E --> I[Agent overview panel]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body documents tests and manual review, but contains no redacted after-fix live Control UI artifact showing the multi-agent ownership and pagination behavior. Add a recording, live output, or redacted logs; updating the PR body should trigger a fresh review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Merging changes to selected-agent refresh ownership without direct runtime evidence could still leave stale cron or model state visible after agent switches or repeated Gateway snapshots.
  • Resolve merge risk (P1) - The required real behavior proof is missing; tests, mocks, and static checks do not demonstrate the multi-agent UI flow in a running Control UI.
  • Complete next step (P2) - The branch needs contributor-supplied real behavior proof and protected-label maintainer review, not an automated repair PR.
Agent review details

Security

None.

PR surface

Source +241, Tests +378. Total +619 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 9 346 105 +241
Tests 4 505 127 +378
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 851 232 +619

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: ui/src/components/cron-jobs-pagination.node.test.ts, vector/embedding metadata: ui/src/e2e/model-alias-display.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Add direct multi-agent UI proof (recommended)
    Before merge, provide a redacted recording, terminal-backed live run, or equivalent artifact that shows agent switching preserves isolated cron and model state and can reach the 51st cron job.
  2. Pause for maintainer validation
    If direct contributor proof cannot be supplied, a maintainer can manually reproduce the two-agent flow and record the observed outcome before accepting the session-state risk.

Technical review

Best possible solution:

Preserve the owner-boundary approach, then attach redacted after-fix Control UI proof showing agent switching, scoped cron totals and next wake, a scoped model catalog, and access to a job beyond the first 50 rows before maintainer merge review.

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

No high-confidence live reproduction was established in this review. The supplied source diff and focused tests make the selected-agent ownership path source-reproducible, but do not replace an observed current-main UI failure.

Is this the best way to solve the issue?

Unclear. Scoping state at the Agents-page owner boundary and reusing the existing scheduler pagination component is a maintainable direction, but direct runtime proof is still needed to confirm that Gateway refresh and agent-switch behavior are fully covered.

AGENTS.md: unclear because the file could not be read completely.

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

Labels

Label justifications:

  • P1: Incorrect selected-agent cron or model ownership is a broken Control UI workflow for multi-agent operators.
  • merge-risk: 🚨 session-state: The patch changes in-flight and cached per-agent UI state derived from shared Gateway snapshots and refreshes.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body documents tests and manual review, but contains no redacted after-fix live Control UI artifact showing the multi-agent ownership and pagination behavior. Add a recording, live output, or redacted logs; updating the PR body should trigger a fresh review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Proposed ownership boundary: The supplied branch diff routes cron jobs, scoped totals, next-wake state, model-catalog state, and retry behavior through the Agents page before rendering the selected agent’s panels; pagination is shared with the global scheduler view. (ui/src/pages/agents/agents-page.ts:294, 50d621485a78)
  • Focused regression coverage: The supplied diff adds Agents-page and view coverage for per-agent cron state, loading behavior, model-catalog ownership, and pagination, plus an E2E expectation that model data uses chat.metadata with the selected agent id. (ui/src/pages/agents/agents-page.test.ts:1, 50d621485a78)
  • Real behavior proof remains absent: The PR body reports 88 tests and static checks, while the previous completed ClawSweeper review explicitly found no redacted after-fix runtime artifact for switching agents, scoped cron data, or pagination. (50d621485a78)
  • Protected review state: The supplied GitHub context lists the maintainer label. Repository policy keeps protected-label PRs open for explicit maintainer handling even when other cleanup conditions might apply.

Likely related people:

  • steipete: Authored the current focused UI ownership repair and is the only concrete area signal available in the supplied PR history; current-main feature-history attribution could not be independently completed in this read-only environment. (role: recent relevant contributor; confidence: low; commits: 50d621485a78; files: ui/src/pages/agents/agents-page.ts, ui/src/pages/agents/panels-status-files.ts, ui/src/pages/agents/view.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach a redacted after-fix recording or terminal-backed live artifact covering two-agent switching, cron totals, model ownership, and the 51st row.
  • Keep any proof free of API keys, IP addresses, phone numbers, non-public endpoints, and other private data.

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 (1 earlier review cycle)
  • reviewed 2026-07-31T10:35:08.999Z sha b332da1 :: needs real behavior proof before merge. :: none

@steipete
steipete force-pushed the codex/auto-qa-uiagents branch from b332da1 to 50d6214 Compare July 31, 2026 11:12
@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 Jul 31, 2026
@steipete
steipete merged commit c75e435 into main Jul 31, 2026
173 of 177 checks passed
@steipete
steipete deleted the codex/auto-qa-uiagents branch July 31, 2026 11:47
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to yetval/openclaw that referenced this pull request Aug 1, 2026
* commit 'd8f229f2e6c39e2dc694730c2efc479e4fb3871e': (59 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
pull Bot pushed a commit to liudf0716/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (52 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
sunlit-deng pushed a commit to sunlit-deng/openclaw that referenced this pull request Aug 1, 2026
* commit 'd8f229f2e6c39e2dc694730c2efc479e4fb3871e': (60 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit '4e7fffdb98ce4d3e6fd69859bedd584cf474ec53': (59 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (52 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit '4e7fffdb98ce4d3e6fd69859bedd584cf474ec53': (60 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
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 merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant