Skip to content

fix(workboard): stale board names while a draft is open - #139952

Merged
steipete merged 2 commits into
mainfrom
codex/stable92-workboard-refresh-ready
Sep 6, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/stable92-workboard-refresh-ready

Conversation

@steipete

@steipete steipete commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers can help update the branch when needed.

What Problem This Solves

Fixes an issue where users leaving an unfinished Workboard card draft would see stale pinned board names after navigating Back to another page, even when the Gateway reported a board rename. The stale navigation could persist until the draft was closed.

Why This Change Was Made

Publish board catalog metadata independently of the draft-protected card/task refresh. This keeps navigation current without replacing unsaved text, cached cards, or task links; existing active-write, generation, reconnect, and disposal safeguards remain intact.

User Impact

Pinned Workboard names update while a card draft is open or retained off-page. Users can navigate Back and Forward without losing the unfinished draft. No configuration, schema, or persistent-store changes are required.

Evidence

Latest locally verified candidate: signed merge f17881ebe77a58e5844184591287a55b4faf78bf, preserving published c1ad0d4abdb2facae9d43a4e84b598166841da23 and integrating main 56cd7472a3ce190e866fbe67838fc45705e6b2cd. Its reviewed tree is 6f13a8910dba602b6509b51f26ed6601d624ef4b. Proof used Node 24.20.0, pnpm 12.3.4, Vitest 5.0.0, macOS arm64; source stayed clean and all six postimages remained unchanged after the signed-source checks.

  • Original RED: both draft-timing regressions failed on untouched production code. An existing draft blocked the catalog read; opening a draft during the request prevented the latest board name from publishing. The ordinary Back/rename browser flow retained Operations (ops) instead of Renamed operations.
  • Owner and browser GREEN: 202 Workboard tests, all 9 scenarios in both complete Workboard browser files, and all 18 CLI process-file tests passed. Workboard coverage verifies queued reads, drafts opened before/during an await, metadata publication without overwriting draft/card/task state, and card hydration after the draft closes. The Workboard GUI tests use an isolated mocked-Gateway Chromium harness.
  • Merged-source checks: all 32 changed-gate stages passed, and fresh managed P2 review was scoped-clean. Production remains +4/−5, net −1; tests are +151/−12, net +139. The generated manifest has +2/−2 pointer updates, counted separately. No proof media is committed.
  • Actual asset inputs: the complete 950-input browser bundle inventory was verified against the merged source/dependency graph. Canonical generation and JS/CSS-byte verification produced f3eec7459b609a49d22cde472dc49250fb65bf40f09ce92f2df9db3af1032dce; the old-base pointer was not reused. On the signed clean commit, the whole bundled-asset check confirmed that generated outputs match committed bytes.
  • Signed clean-source proof: the private-QA CI-artifact build passed, followed by the current prebuilt real-Gateway inventory: 31 tests across 18 files passed, no skips. These use isolated real Gateways and synthetic fixtures; this is local proof, not a claim that updated hosted Linux CI or live-provider validation has passed.

CI findings and follow-through

The initial hosted CI run exposed two Workboard integration defects: an omitted regenerated manifest pointer, and an existing E2E assertion that incorrectly required zero catalog RPCs while a draft was open. The combined boards/cards RPC is now allowed for metadata while card/task hydration stays protected. The existing E2E positively observes refreshed metadata, unchanged unsaved notes and cached card content, no extra task reads, then a fresh full load after cancel. The manifest was regenerated canonically on the actual merged inputs. The initial real-Gateway job stopped at dirty-source preflight before tests; the signed clean-source run now clears that guard and passes all 31 cases.

One local post-sign attempt also failed because its artifact output directory was outside the repository. The QA containment guard correctly rejected five cases; 26 passed. Rerunning the complete inventory with the CI-declared .artifacts/control-ui-e2e/real-gateway path passed all 31. No source, assertion, timeout, or guard was changed for that correction.

The hosted CLI shard separately timed out in the orphaned-journal/refused-handoff process test. Its follow-through is diagnostics only: the existing bounded child-output formatter now accompanies the error assertion. The 60,000ms timeout, nonzero-exit, refusal-message, and unchanged-state assertions are preserved. Local tests passed, but the original Linux 24.19 timeout cause remains unresolved; this PR does not claim a runtime timeout fix. Updated exact-head hosted CI is still required.

Original before/after evidence

The original inspected synthetic Apps screenshots are retained unchanged. They show Operations (ops) before the fix and Renamed operations (ops) afterward; they accompany the original reproduction, not a new screenshot claim for the integrated head.

Before

Stale Workboard name before the fix

After

Updated Workboard name after the fix

Reproduction and verification commands

Original RED used base 4e330557ae33e0f003c8b6e17524acd859b1d0de before the production repair; the same browser command was then rerun successfully:

node scripts/run-vitest.mjs extensions/workboard/browser/catalog.test.ts -t 'updates queued board metadata while retaining a draft'
node scripts/run-vitest.mjs ui/src/pages/workboard/workboard-routing.e2e.test.ts -t 'refreshes board navigation after browser Back'

Merged owner, browser, and full changed-scope checks:

node scripts/run-vitest.mjs extensions/workboard/browser/catalog.test.ts extensions/workboard/browser/lib/workboard/index.test.ts extensions/workboard/browser/lib/workboard/live-refresh.test.ts extensions/workboard/browser/widgets/runtime.test.ts src/cli/update-dry-run-state.process.test.ts
node scripts/run-vitest.mjs ui/src/pages/workboard/workboard.e2e.test.ts ui/src/pages/workboard/workboard-routing.e2e.test.ts
node scripts/check-changed.mjs --base 56cd7472a3ce190e866fbe67838fc45705e6b2cd --timed -- extensions/workboard/browser/lib/workboard/loading.ts extensions/workboard/browser/catalog.test.ts extensions/workboard/openclaw.plugin.json src/cli/update-dry-run-state.process.test.ts ui/src/pages/workboard/workboard-routing.e2e.test.ts ui/src/pages/workboard/workboard.e2e.test.ts

Clean signed-source gates:

node --import ./scripts/tsx.mjs scripts/bundled-plugin-assets.mts --phase build --check
OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build:ci-artifacts
OPENCLAW_UI_E2E_ARTIFACT_DIR=.artifacts/control-ui-e2e/real-gateway node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e-prebuilt.config.ts --configLoader runner ui/src/e2e/mcp-app-conformance.e2e.test.ts \
  ui/src/e2e/control-ui-auth-transports.e2e.test.ts \
  ui/src/e2e/usage-sessions-owner-attribution.e2e.test.ts \
  ui/src/e2e/profile-page.real-gateway.e2e.test.ts \
  ui/src/e2e/logs-lifecycle.e2e.test.ts \
  ui/src/e2e/agent-file-lifecycle.real-gateway.e2e.test.ts \
  ui/src/e2e/chat-agent-avatar.real-gateway.e2e.test.ts \
  ui/src/e2e/chat-loading-performance.real-gateway.e2e.test.ts \
  ui/src/e2e/chat-project-media.real-gateway.e2e.test.ts \
  ui/src/e2e/chat-widget-sandbox.real-gateway.e2e.test.ts \
  ui/src/e2e/command-palette-catalog.real-gateway.e2e.test.ts \
  ui/src/e2e/cron-duration-save.real-gateway.e2e.test.ts \
  ui/src/e2e/device-alias-rename.real-gateway.e2e.test.ts \
  ui/src/e2e/session-progress-hovercard.real-gateway.e2e.test.ts \
  extensions/qa-lab/src/control-ui-media-transcript.real-gateway.e2e.test.ts \
  extensions/qa-lab/src/session-host-command-state.real-gateway.e2e.test.ts \
  extensions/qa-lab/src/control-ui-openclaw-delegation.real-gateway.e2e.test.ts \
  extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.ts

The original RED failures were intended behavior failures. The generated-pointer/test-expectation defects and artifact-path invocation error above are recorded separately. These checks do not claim a full-repository test run, repaired Linux timeout, or successful hosted CI for the updated head.

Publish catalog board metadata before the draft-protected card hydration boundary. Preserve active-write and generation fences, unsaved card text, and task freshness ownership.
@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 6, 2026 08:48
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 7:31 AM ET / 11:31 UTC.

ClawSweeper review

What this changes

Refreshes Workboard board names while preserving unfinished drafts and cached card/task data, updates browser regression coverage and generated asset references, and improves one CLI test’s failure diagnostics.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary: current main and v2026.9.2 retain the reported failure. Review of the pinned changes found no blocking correctness defect.

Priority: P2
Reviewed head: f17881ebe77a58e5844184591287a55b4faf78bf

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful regression coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Supplied Chromium mock-Gateway results exercise catalog publication and retained drafts; broader real-Gateway results are supplemental, and linked screenshots were not independently inspected.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Supplied Chromium mock-Gateway results exercise catalog publication and retained drafts; broader real-Gateway results are supplemental, and linked screenshots were not independently inspected.
Evidence reviewed 8 items Current-main defect remains: Current main rejects catalog reads when an unfinished interaction exists and also rejects publication if a draft opens during the request.
Latest-release comparison: The same catalog draft guards are present in v2026.9.2; the requested behavior is not already fixed in that release.
Repair preserves the existing state boundary: The introduced catalog branch publishes normalized boards only after the generation check, then returns before replacing cards, statuses, task links, or freshness state when an interaction is unfinished. Existing active-write exclusion remains.
Findings None None.
Security None None.

How this fits together

Workboard’s browser catalog converts Gateway change notifications into board navigation entries. It shares browser state with the card editor, so metadata refreshes must preserve unfinished edits and task freshness.

flowchart TD
  A[Gateway change notification] --> B[Workboard catalog read]
  B --> C[Validate response and load generation]
  C --> D[Update board metadata]
  D --> E[Refresh sidebar names]
  D --> F{Unfinished interaction?}
  F -->|Yes| G[Preserve draft and cached cards]
  F -->|No| H[Refresh cached cards and links]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -1, Tests +139. Total +138 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 2 6 7 -1
Tests 4 151 12 +139
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 157 19 +138

Review metrics

None.

Technical review

Best possible solution:

Keep board navigation current through the existing catalog flow while retaining draft protection and the separate full-refresh lifecycle.

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

Yes, from source: retain a Workboard draft, navigate Back, and deliver a board-rename notification; current main prevents the catalog from publishing the new name. This review did not execute that flow.

Is this the best way to solve the issue?

Yes. Moving board publication ahead of the existing draft-protected hydration boundary repairs the owning flow without adding another API, configuration option, or persistent state.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1de2ca25c3af.

Labels

Label justifications:

  • P2: Stale Workboard navigation is a bounded existing-behavior defect with no demonstrated loss of draft content.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Supplied Chromium mock-Gateway results exercise catalog publication and retained drafts; broader real-Gateway results are supplemental, and linked screenshots were not independently inspected.

Evidence

What I checked:

  • Current-main defect remains: Current main rejects catalog reads when an unfinished interaction exists and also rejects publication if a draft opens during the request. (extensions/workboard/browser/lib/workboard/loading.ts:66, 1de2ca25c3af)
  • Latest-release comparison: The same catalog draft guards are present in v2026.9.2; the requested behavior is not already fixed in that release. (extensions/workboard/browser/lib/workboard/loading.ts:66, 3928bad9badf)
  • Repair preserves the existing state boundary: The introduced catalog branch publishes normalized boards only after the generation check, then returns before replacing cards, statuses, task links, or freshness state when an interaction is unfinished. Existing active-write exclusion remains. (extensions/workboard/browser/lib/workboard/loading.ts:134, f17881ebe77a)
  • Observable regression coverage: Catalog tests cover drafts opened before and during queued requests. Browser coverage exercises Back, board rename, updated pinned text, and Forward with the original draft; the existing editor scenario now checks metadata publication, unchanged notes/cards, no additional task reads, and hydration after cancellation. (ui/src/pages/workboard/workboard-routing.e2e.test.ts:293, f17881ebe77a)
  • Generated assets and diagnostic-only follow-through: The manifest updates only its generated JS/CSS revision. The CLI hunk adds the existing failure formatter without changing the refusal, exit-status, unchanged-state assertions, or timeout. Workboard package metadata identifies the manifest as a canonical build output. (extensions/workboard/openclaw.plugin.json:223, f17881ebe77a)
  • Captured proof and review continuity: The supplied body reports original failing draft-timing/browser scenarios and passing updated Workboard browser coverage on the pinned head, explicitly using a mocked Gateway. Its broader real-Gateway inventory does not independently demonstrate this rename scenario. Original before/after screenshot links are supplied but were not independently inspected. The previous completed review recorded no findings or published rank-up moves; the production loader is unchanged since that reviewed head. (f17881ebe77a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • tzy-17: 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 (1 earlier review cycle)
  • reviewed 2026-09-06T08:55:08.203Z sha c1ad0d4 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Sep 6, 2026
@steipete
steipete merged commit c1e9c9a into main Sep 6, 2026
162 checks passed
@steipete
steipete deleted the codex/stable92-workboard-refresh-ready branch September 6, 2026 12:02
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc pushed a commit to gaoanze888/openclaw that referenced this pull request Sep 6, 2026
* commit '3ed964c8ca6206d26ecc0b6567ccd1389d9948fc': (36 commits)
  refactor(plugins): unify install config snapshot preparation (openclaw#140081)
  fix: cloud provisioning stays failed after temporary storage recovers (openclaw#140021)
  fix(ci): preflight job outputs exceed 1 MiB on full-plan pull requests (openclaw#140018)
  refactor: consolidate command and provider helpers (openclaw#140072)
  fix(doctor): replace unavailable TUI cleanup advice (openclaw#140074)
  fix(plugins): avoid scoped pack failures and missing runtime entries (openclaw#140016)
  fix: clarify background command timeouts (openclaw#140022)
  fix(workboard): refresh board navigation while retaining drafts (openclaw#139952)
  fix: preserve newer chat drafts when rewind completes (openclaw#140066)
  feat(transcripts): browse and export saved meeting archives (openclaw#139875)
  fix(cron): complete timeout test observation phase (openclaw#140076)
  fix(macos): show the full automation count (openclaw#139692)
  fix: native worker turns fail to load WebSocket transport (openclaw#140071)
  fix(cli): complete quoted Bash option values (openclaw#140034)
  fix(chat): show command instructions while pending (openclaw#140041)
  refactor(cli): use canonical resume result schema (openclaw#140056)
  fix: restore package acceptance across install runtimes (openclaw#140062)
  refactor(auto-reply): keep model-selection fixtures in tests (openclaw#140069)
  fix(plugins): remove owned aliases before uninstalling files (openclaw#140065)
  fix: completed replies hang when context-engine cleanup stalls (openclaw#140023)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 7, 2026
…claw#139952)

Publish catalog board metadata before the draft-protected card hydration boundary. Preserve active-write and generation fences, unsaved card text, and task freshness ownership.
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 cli CLI command changes maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. plugin: workboard rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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