Skip to content

fix(nextcloud-talk): allow bounded parallel room deliveries - #118692

Merged
steipete merged 1 commit into
mainfrom
codex/issue-118649-nextcloud-room-concurrency
Aug 3, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/issue-118649-nextcloud-room-concurrency

Conversation

@steipete

@steipete steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #118649.

Nextcloud Talk durable ingress previously waited for every active delivery to become idle before pumping again. That global barrier serialized independent rooms even when their durable lane keys differed. Remove the global idle barrier while explicitly retaining the shared drain's maximum of 32 active deliveries.

  • Independent rooms can deliver concurrently.
  • Messages that have not yet been adopted remain FIFO within the same room.
  • The 33rd room stays durably pending until one of the 32 active deliveries finishes.
  • Production owner change: +1/-2 lines (net -1); no new config, environment variable, or public API.
  • The original report affects 2026.7.2-beta.7; this does not claim impact on an earlier stable release.

Verification

  • Real durable-SQLite owner harness: 2/2 new regressions passed: independent-room parallelism with same-room preadoption FIFO; 33-room global active-delivery cap of 32.
  • Full Nextcloud ingress owner suite: 13/13 passed.
  • Shared durable-queue tests: 2/2 passed.
  • Full owner changed gates passed: formatting, production typecheck, test typecheck, targeted lint, plugin SDK, SQLite/database checks, and dependency-cycle checks.
  • Independent authenticated high-depth review: clean, confidence 0.98; secret scanner clean.
  • Verification used the real durable SQLite queue/owner harness; no live external Nextcloud server or API is claimed.

Agent Transcript

Redacted codex session transcript
source: [LOCAL_SESSION]
redaction: local paths, emails, phone-shaped strings, token-shaped strings, auth headers, auth query params
omitted: raw tool outputs, system/developer prompts, local paths, secrets, browser/session/auth details
stats: {"agent":"codex","entries":1,"user":0,"assistant":1,"toolCalls":0,"toolOutputsDropped":0,"web":0,"redactions":0,"omittedUnsafe":0,"rawEntries":6}

[assistant]
Reused the existing remote runner to format the Nextcloud regression test; preparing the final same-runner validation pass.

Nextcloud’s room-ordering and 32-delivery-limit regressions pass; formatting is fixed and remaining remote typecheck/lint gates are running.

Nextcloud passed real queue/concurrency regressions, formatting, SDK checks, and production typechecking; test typechecking is still running.

Nextcloud fix passed all real queue tests, both typechecks, lint, formatting, and safety gates; preparing the reviewed founder PR.

Nextcloud fix is committed locally, removes one production line, and is undergoing its final independent review.

Nextcloud fix passed independent review with no findings; publishing a signed founder PR with the complete test evidence.

@openclaw-barnacle openclaw-barnacle Bot added channel: nextcloud-talk Channel integration: nextcloud-talk size: S maintainer Maintainer-authored PR labels Aug 3, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. P1 High-priority user-facing bug, regression, or broken workflow. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 10:00 AM ET / 14:00 UTC.

ClawSweeper review

What this changes

This PR lets the Nextcloud Talk durable ingress start deliveries for different rooms concurrently while keeping same-room ordering and a maximum of 32 active deliveries.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This PR remains necessary: current main still serializes independent Nextcloud Talk rooms behind an explicit global idle wait. The proposed plugin-local change restores the shared monitor’s nonblocking repump behavior, preserves room-lane ordering, and adds durable-SQLite regressions for both concurrency and the 32-delivery ceiling. No blocking patch defect was found; the protected maintainer label and in-progress exact-head CI require human merge handling.

Priority: P1
Reviewed head: e34f628933172a815a6b852948625a1a2d155fed

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-local repair with strong durable-queue coverage and adequate real-behavior proof; remaining work is exact-head CI completion.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR reports successful after-fix execution through the real durable-SQLite queue owner harness for cross-room parallelism, same-room FIFO, and the 32-delivery cap; a live Nextcloud API run is not required to prove this internal queue-scheduling change.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR reports successful after-fix execution through the real durable-SQLite queue owner harness for cross-room parallelism, same-room FIFO, and the 32-delivery cap; a live Nextcloud API run is not required to prove this internal queue-scheduling change.
Evidence reviewed 6 items Current-main regression: Current main explicitly sets waitForDeliveryIdleBeforeRepump: true, causing the monitor to wait for active deliveries before its next claim pass.
Shared monitor contract: The shared monitor defaults the idle wait to false and, when nonblocking, schedules another drain wake after work is started; its stop predicate prevents a new claim when tracked active deliveries reach the configured start limit.
Bounded concurrency owner: The durable drain defaults startLimit to 32 and only starts claims while below that limit; this is the canonical owner of the active-delivery ceiling.
Findings None None.
Security None None.

How this fits together

Nextcloud Talk webhooks are admitted into a durable SQLite-backed ingress queue with a room-specific lane key. The shared channel ingress monitor claims those rows, dispatches them to agent delivery, and records adoption or retry outcomes.

flowchart LR
  Webhook[Nextcloud Talk webhook] --> Queue[Durable SQLite ingress queue]
  Queue --> Lane[Room-specific delivery lane]
  Lane --> Monitor[Shared ingress monitor]
  Monitor --> Delivery[Agent delivery callbacks]
  Delivery --> Outcome[Adopt, retry, or complete outcome]
Loading

Before merge

  • Resolve merge risk (P1) - Required CI checks are still running for the exact PR head; merge only after those checks complete successfully.
  • Complete next step (P2) - No mechanical repair is needed; wait for exact-head CI, then have a maintainer decide whether to merge the protected PR.
Agent review details

Security

None.

PR surface

Source -1, Tests +82. Total +81 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 2 -1
Tests 1 82 0 +82
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 83 2 +81

Review metrics

Metric Value Why it matters
Production versus regression LOC production -1, tests +82 The behavioral repair removes the global idle barrier while adding focused durable-queue coverage for cross-room parallelism, same-room ordering, and the active-delivery cap.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #118649
Summary: This PR is the focused candidate fix for the reported Nextcloud Talk global-idle barrier.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep Nextcloud Talk on the shared nonblocking repump path, with room lanes enforcing same-room FIFO and the durable drain enforcing the 32-delivery ceiling.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep Nextcloud Talk on the shared nonblocking repump path, with room lanes enforcing same-room FIFO and the durable drain enforcing the 32-delivery ceiling.

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

Yes, source-reproducible with high confidence: current main enables the global idle barrier, and the branch’s durable-SQLite queue harness directly exercises the blocked cross-room path and its expected bounded behavior.

Is this the best way to solve the issue?

Yes. The patch corrects the owner plugin’s override rather than changing the shared SDK contract, and its tests cover the room-lane FIFO invariant plus the global 32-delivery limit.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P1: The current behavior can leave an unrelated Nextcloud Talk room waiting behind a long-running room despite available agent concurrency.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR reports successful after-fix execution through the real durable-SQLite queue owner harness for cross-room parallelism, same-room FIFO, and the 32-delivery cap; a live Nextcloud API run is not required to prove this internal queue-scheduling change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR reports successful after-fix execution through the real durable-SQLite queue owner harness for cross-room parallelism, same-room FIFO, and the 32-delivery cap; a live Nextcloud API run is not required to prove this internal queue-scheduling change.

Label justifications:

  • P1: The current behavior can leave an unrelated Nextcloud Talk room waiting behind a long-running room despite available agent concurrency.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR reports successful after-fix execution through the real durable-SQLite queue owner harness for cross-room parallelism, same-room FIFO, and the 32-delivery cap; a live Nextcloud API run is not required to prove this internal queue-scheduling change.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR reports successful after-fix execution through the real durable-SQLite queue owner harness for cross-room parallelism, same-room FIFO, and the 32-delivery cap; a live Nextcloud API run is not required to prove this internal queue-scheduling change.

Evidence

What I checked:

Likely related people:

  • steipete: Git blame attributes the current Nextcloud Talk idle-wait configuration to Peter Steinberger, and commit 938e3d5f20 attributes the shared durable ingress monitor refactor to the same contributor. (role: introduced current behavior and shared-ingress contributor; confidence: high; commits: f6540b0a1f6c, 938e3d5f20e1; files: extensions/nextcloud-talk/src/webhook-spool.ts, src/channels/message/ingress-monitor.ts, src/channels/message/ingress-drain.ts)

Rank-up moves

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

  • Wait for the in-progress required checks to finish successfully on e34f628933172a815a6b852948625a1a2d155fed.

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.

@steipete
steipete merged commit c547f16 into main Aug 3, 2026
99 of 106 checks passed
@steipete
steipete deleted the codex/issue-118649-nextcloud-room-concurrency branch August 3, 2026 14:08
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main: (57 commits)
  fix(media): fall back when providers return empty output (#118660)
  fix(nextcloud-talk): allow bounded parallel room deliveries (#118692)
  test(state): reuse current agent database fixture (#118677)
  fix(scripts): bound check-file-utils git lookup (#111582)
  fix(slack): scope interactive conversation bindings safely (#118662)
  fix(agents): avoid false compaction after mid-turn precheck (#117963)
  fix(ui): show original filename on chat history attachment cards instead of managed UUID suffix (#118628)
  fix(whatsapp): preserve terminal retry exhaustion lifecycle (#118659)
  fix(doctor): audit every agent workspace (#111840)
  fix(release): skip unavailable Buzz on frozen candidates (#118670)
  fix(ui): surface onboarding and pairing clipboard failures (#118651)
  fix(config): stop plugin schemas rejecting the channel key core writes (#117992)
  test(memory): isolate wiki plugin fixtures (#118654)
  fix(line): clear default access token when removing account (#118055)
  feat: enable rich setup controls in custodian chat (#114631)
  test(ui): reuse responsive browser fixtures (#118655)
  chore(tui): stabilize queued-turn admission in Gateway PTY test (#118638)
  fix(xai): classify exhausted credits as billing (#118615)
  fix(otel): fail closed when configured TLS material is invalid (#118648)
  fix(cli): preserve gateway request errors in health JSON (#118645)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* origin/main: (57 commits)
  fix(media): fall back when providers return empty output (openclaw#118660)
  fix(nextcloud-talk): allow bounded parallel room deliveries (openclaw#118692)
  test(state): reuse current agent database fixture (openclaw#118677)
  fix(scripts): bound check-file-utils git lookup (openclaw#111582)
  fix(slack): scope interactive conversation bindings safely (openclaw#118662)
  fix(agents): avoid false compaction after mid-turn precheck (openclaw#117963)
  fix(ui): show original filename on chat history attachment cards instead of managed UUID suffix (openclaw#118628)
  fix(whatsapp): preserve terminal retry exhaustion lifecycle (openclaw#118659)
  fix(doctor): audit every agent workspace (openclaw#111840)
  fix(release): skip unavailable Buzz on frozen candidates (openclaw#118670)
  fix(ui): surface onboarding and pairing clipboard failures (openclaw#118651)
  fix(config): stop plugin schemas rejecting the channel key core writes (openclaw#117992)
  test(memory): isolate wiki plugin fixtures (openclaw#118654)
  fix(line): clear default access token when removing account (openclaw#118055)
  feat: enable rich setup controls in custodian chat (openclaw#114631)
  test(ui): reuse responsive browser fixtures (openclaw#118655)
  chore(tui): stabilize queued-turn admission in Gateway PTY test (openclaw#118638)
  fix(xai): classify exhausted credits as billing (openclaw#118615)
  fix(otel): fail closed when configured TLS material is invalid (openclaw#118648)
  fix(cli): preserve gateway request errors in health JSON (openclaw#118645)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: nextcloud-talk Channel integration: nextcloud-talk maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

[Bug]: Nextcloud Talk durable ingress serializes different rooms until the active delivery is idle

1 participant