Repository navigation
fix(ui): keep waiting time owned by the active turn - #139972
Conversation
|
🦞👀 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. |
…9700) * fix(sqlite): prevent writes after failed nested rollback * test(gateway): derive history fixture state from its producer
Keep reusable sandbox lifetimes with the backend, join command finalizers, and retain their cleanup failures while requiring host tree settlement. Reject unsupported owned PTY requests before spawning so exec falls back once. Use procfs for Linux group retirement without a fixed ps executable path. Follow-up to openclaw#135868 after openclaw#139517 and openclaw#139657. Move the three related exec-runtime test roots to the existing tools typecheck graph, preserving the 720-root cap and complete coverage.
…penclaw#124476) Co-authored-by: lijing <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
) Capture the worker synchronously for this detection invocation and gate only that instance. Preserve the timeout, retry assertions, unrelated-worker negative control, and cleanup. The original CI log does not identify the worker intercepted by the global gate. The controlled negative case proves the fixture mechanism without claiming that unobserved identity or a production lifecycle defect.
Only enabled one-shots own automatic retry scheduling. A forced invocation while global heartbeats are paused records its outcome without re-enabling the disabled job or scheduling another run.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…139924) Stop OAuth fallback after catalog discovery times out while allowing an in-flight credential refresh to finish safely. Refs openclaw#137033.
|
Codex review: blocked before merge. Reviewed September 6, 2026, 11:01 AM ET / 15:01 UTC. ClawSweeper reviewWhat this changesThe PR ties the Control UI waiting timer to the active chat turn and adds regression coverage for failed sends, delayed activity, acknowledgment, and reconnect. Merge readiness⛔ Blocked before merge - 4 items remain This remains a useful, focused fix: current main still admits unrelated timestamps into the waiting timer. No blocking correctness finding was identified, and the updated browser evidence addresses the earlier proof request. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI combines queued messages, active-run state, streamed text, and tool activity into the chat transcript. Its progress owner selects the identity and start time used by the visible waiting indicator. flowchart LR
A[Queued messages] --> D[Select active turn]
B[Active run state] --> D
C[Stream and tool activity] --> D
D --> E[Match timing to turn]
F[Same-turn cached time] --> E
E --> G[Visible waiting timer]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep elapsed-time selection in the existing progress owner, preserving same-turn continuity and retryable failed rows while excluding unrelated timing. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a concrete path: retain an older failed send, submit a new turn, and current main includes the old timestamp in its minimum. The PR reports matching browser observations; this review did not execute the application. Is this the best way to solve the issue? Yes, the focused repair uses the existing timing owner and existing run identities without changing delivery, persistence, configuration, or provider contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f28cd9b2148. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
* fix(tooling): preserve native TypeScript loading under Bun * fix(tooling): use supported Bun source imports
…9812) Correct stale scanner-gated cleanup and collection-backup claims, preserve the separate capture workflow, and link canonical skill precedence and refresh guidance. Runtime behavior and configuration shape are unchanged.
…penclaw#139664) * fix(linux): keep widget replies connected and correctly placed Carry bounded Canvas descriptors through live Gateway delivery, finalization and cancellation. Keep Quick Chat attached to its native window and let GTK own primary and widget geometry. Preserve external browser links while allowing Dashboard widget frames to load in the app. Consolidate Rust widget, queue, identity and RTC ownership; update safe dependencies and the pinned Watch compiler. Remove 141 production Rust lines while preserving credential serialization and the Watch C ABI. Validation: reviewed through P2; 135 desktop tests on macOS, 146 Linux test executions and native build; Gateway owner regressions and changed gates; Watch debug/release tests and four-architecture C linkage. * fix(linux): preserve compact sizing and native browser links * fix(linux): dismiss widget replies after unhandled Escape * fix(linux): ignore stale Quick Chat blur events
Give the shared Watch status type one legacy decoder implementation. Preserve snapshot wire and persistence shapes, semantic status precedence, localized fallback text, and staggered iPhone/Watch compatibility.
…9900) * fix(agents): preserve exact session model identities Resolve model references through one collector that prefers exact model IDs before unambiguous case-insensitive matches. Stop ambiguous references before fuzzy selection or custom-model construction instead of choosing the first provider or a differently cased model. Preserve qualified-provider precedence, raw slash IDs, human names, version ordering, thinking suffixes, custom models and glob scopes. Remove duplicate folded lookup branches and document the session SDK contract. Refs openclaw#130706. Production code decreases by 28 lines. * fix(agents): preserve canonical session model references Share registered-provider scope preparation across reference lookup and CLI selection. Preserve full tuple spelling across slash boundaries, exact model IDs, literal components and thinking suffixes. Ambiguous references must not choose an owner through fuzzy ranking or custom-model fallback. Keep all duplicate names as aliases while returning the registry-first model object. Consolidate suffix, version ordering and fallback selection, removing the overwritten provider map and first-slash inference path. Check complete literal IDs before interpreting thinking suffixes; explicit provider selection keeps its existing override. All 55 owner tests and typed lint pass. The complete matching cut adds seven production lines after removing duplicate paths. Refs openclaw#130706.
Share scoped activation, enablement, registration planning and manifest-record preparation between runtime and CLI metadata loading while retaining their distinct entrypoint policies. Retire the private required-setup option left behind when read-only channel loading moved to per-manifest setupSource guards. Keep manifest-record construction private and cover build-version normalization through the preparation owner. Preserve activation reasons independently of enablement, scope-before-import behavior, setup trust boundaries, manifest trust and control UI metadata, and source-root channel policy during normalized config reuse. No public CLI, plugin SDK, configuration, dependency or persistence contract changes.
|
Thanks @NianJiuZst! The original repair history and contributor credit are preserved. Bug: An older failed send could make a newly submitted message immediately show the old waiting time. Fix: The existing progress owner selects identity and timestamps for the current turn. Matching acknowledgment, stream, tool, and reconnect activity keep that turn's elapsed time. Failed messages retain their recovery controls.
Real Gateway reload continued from 8s to 13s; streamed output continued to 18s and completion cleared progress. Native keyboard Retry sent the retained original message and reached a complete answer. Only provider HTTP was mocked in that lane. The separate controlled Gateway fixtures cover foreign activity, unknown identity, recovery and session/run isolation. Real before · Real after · Exact-head CI Runtime proof retains its actual 1d20fe1 build identity. The final 7706c1c head only removes the obsolete static assertion allowance. Exact-head CI passed; no CI exception was used. Earlier setup failures and incomplete review results remain in the retained proof history. |
Keep the existing progress owner tied to the active turn. Older failed messages retain their recovery controls without backdating later sends; matching acknowledgment, stream, tool, and reconnect facts preserve continuity. Verified compiled Control UI and real Gateway before/after, controlled interruption and foreign-activity probes, independent behavior assessment, and exact-head review and CI. Preserve the original contributor's repair history. Closes openclaw#139950 Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #139950
What Problem This Solves
A new Control UI message can immediately show minutes of waiting because an older failed send or delayed activity from another run supplies its timestamp.
Why This Change Was Made
Keep identity and timing selection in the existing working-progress owner. A submitted send owns the acknowledgment gap. Once the run is known, queue, stream, and tool timestamps must match it. Recovery rows cannot identify unknown work, but matching durable timestamps remain available after reconnect.
User Impact
Newly submitted turns start their own timer. Acknowledgment, streaming, tools, and reconnect preserve the same turn's elapsed time. Older failed messages retain their error and Retry action. A queued message may include its own queue residence; it cannot inherit another message's age. No delivery, retry, storage, provider, protocol, or configuration change.
Evidence
Real Control UI → Gateway → provider HTTP fixture: baseline new turns immediately show 7s and 40s; the candidate shows 1s. A candidate turn advances from 8s before reload to 13s after reload and 18s during streamed output. Completion clears progress. The retained failure then resends and completes through the real Retry button using keyboard activation. Gateway rejection, acknowledgment, user echo, stream, history, and completion are real; only provider HTTP is mocked.
Real Gateway before · Real Gateway after. Original controlled browser captures below remain separate evidence.
Runtime evidence uses the unchanged
1d20fe1b367548afc552d243dbdaadc85e595263build. Final head7706c1c0c7fd2c0cfa052cf2ef32201f0ea2dfe9only removes the now-obsolete assertion-baseline allowance; no runtime, dependency, or build input changes. Original build identity is preserved.Built Control UI in Chromium with the maintained mock Gateway: baseline
8029fcccab8b8dab85fab7f9c96a36f640abf531shows 10m on a newly submitted second turn and 20m on a third while the original failed row remains visible. Candidate1d20fe1b367548afc552d243dbdaadc85e595263shows 1s for each new submission.Same-turn acknowledgment keeps the visual row. Stream/tool activity advances to 5s, and matching reconnect/reload retains 5s. Completion clears working progress; Retry sends the original failed message.
A delayed older preamble before acknowledgment backdates the baseline to 10m. The candidate stays at 1s before and after acknowledgment.
Independent browser acceptance covers unknown active identity, separate sessions and run namespaces, future queued sends, retained unconfirmed input beside independently active work, and restored waiting-idle input. The waiting-idle lane proves restoration behavior, not the producer transition into that state. Local delivery still pauses behind unconfirmed sends.
Hosted candidate build, full UI suite, mocked browser shards, and corrected timing-field lint pass in staging CI. Non-UI staging failures remain recorded; they are not claimed green or waived. Final PR checks remain a landing gate.
Fresh source review, pinned formatting, and
git diff --checkpass. Regression coverage protects retained failures, matching recovery timing, foreign activity, anonymous-to-identified continuity, and later-turn reset.Before
After
The proof reproduces concrete failure paths, not the unknown prerequisites of the reporter's photographed conversation. Controlled Gateway fixtures cover interruption and foreign-activity variants; the additional real Gateway lane proves the failed-send producer and normal later-turn flow. Neither lane uses live provider credentials. Setup failures and earlier incomplete review results are retained; the initial real-runtime package needed its matching workspace templates before provider turns could complete.
Reported by @noelillinger. Original repair by @NianJiuZst; contributor history and credit are preserved.