Repository navigation
fix(workboard): stale board names while a draft is open - #139952
Conversation
Publish catalog board metadata before the draft-protected card hydration boundary. Preserve active-write and generation fences, unsaved card text, and task freshness ownership.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 7:31 AM ET / 11:31 UTC. ClawSweeper reviewWhat this changesRefreshes 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 Review scores
Verification
How this fits togetherWorkboard’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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1, Tests +139. Total +138 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* 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) ...
…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.
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 publishedc1ad0d4abdb2facae9d43a4e84b598166841da23and integrating main56cd7472a3ce190e866fbe67838fc45705e6b2cd. Its reviewed tree is6f13a8910dba602b6509b51f26ed6601d624ef4b. 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.Operations (ops)instead ofRenamed operations.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.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-gatewaypath 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 andRenamed operations (ops)afterward; they accompany the original reproduction, not a new screenshot claim for the integrated head.Before
After
Reproduction and verification commands
Original RED used base
4e330557ae33e0f003c8b6e17524acd859b1d0debefore the production repair; the same browser command was then rerun successfully:Merged owner, browser, and full changed-scope checks:
Clean signed-source gates:
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.