Repository navigation
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. |
|
Codex review: needs real behavior proof before merge. What this changesAdds owner-only /fork and /split commands to branch conversation history, place the branch in a channel conversation, and return with /fork --back. Example: An authorized owner sends /fork Harbor in a Telegram forum topic
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Partial Merge readiness⛔ Blocked before merge - 7 items remain Useful unique work remains, but both prior correctness findings are still present. This actively revised proposal is paired with unresolved work by the same author and does not qualify for closure. Priority: P2 Decision needed
Before merge
Findings
Tests
Agent review detailsHow this fits togetherChannel commands enter OpenClaw’s reply system, which selects session history and delegates routing to conversation-binding owners. This change combines existing session-fork operations with channel placement, replay, and return routing. flowchart TD
A[Owner sends fork command] --> B[Check live owner and source route]
B --> C[Select current history or replied-to turn]
C --> D[Existing session fork owner]
D --> E[Channel binding owner]
E --> F[Child topic or current conversation]
F --> G[Replay selected text with live checks]
F --> H[Back restores route or shows source link]
Technical reviewBest possible solution: Choose one supported command surface, compose the existing session and binding owners, and preserve live authority and original route deadlines throughout placement and return. Do we have a high-confidence way to reproduce the issue? Yes for the review findings: source establishes the post-topic persistence revocation window and the generation-less binding deadline extension. No failing runtime execution was performed in this read-only review. Is this the best way to solve the issue? Unclear: reusing canonical session transactions is appropriate, but the native versus plugin surface remains undecided and the current placement and legacy-fencing paths violate their stated invariants. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6b2afbfe981a. Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: The authority review found a durable routing effect reachable after fork authority is revoked; no unrelated supply-chain change was identified. EvidenceSecurity concerns:
What I checked:
PR surfaceSource +1694, Tests +2640, Docs +2. Total +4336 across 65 files. Added test files: 8. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (16 earlier review cycles; latest 8 shown)
Reviewed October 8, 2026, 7:39 PM ET / 23:39 UTC (Revision 17). |
d371158 to
2740423
Compare
28b9112 to
27d92ef
Compare
27d92ef to
2f90a6e
Compare
2f90a6e to
9542d64
Compare
9542d64 to
8d3be19
Compare
Exact-head Telegram Bot API validation transcript (redacted)I reran four isolated, contributor-controlled Bot API scenarios against the packaged
The QA packet also retains three earlier incomplete flat attempts on this same head: one TLS reset before traffic, one uncertain Telegram send with its observed recovery message subsequently deleted, and one Telegram fetch reset after fork/continuation with observed cleanup subsequently completed. None is counted as a pass. The passing flat run used IPv4-first DNS resolution; that is an observation, not a proven cause of the earlier resets. Limits: This is Bot API proof, not the official Telegram Test Server, a human-client run, real Discord transport, or live mid-queue revocation proof. Owner-local production activation is still pending. The PR body states the source/code checks, package integrity, and schema-aware rollback boundary separately. |
8d3be19 to
6a6dbdf
Compare
Upstream reconciliationThe core user outcome has now landed through #190783 ( That merged slice is intentionally narrower than this branch: tip/last-completed forks only, Telegram threaded conversations only, with no reply-to-earlier-turn replay, DM/flat-chat fallback, Discord placement, or Accordingly, this 65-file branch is no longer proposed as the merge path for core |
Related: #157627. This is a standalone built-in command. It neither depends on nor installs the separate reusable plugin capability in #158030.
What Problem This Solves
OpenClaw cannot branch the current conversation at its tip or at an exact replied-to user turn while preserving a route back to the original.
User Impact
Owner-authorized
/fork [title](also/split) creates an independent session from the current tip or a replied-to text user turn. It places the fork in a child conversation when the channel supports it, otherwise switches the current binding./fork --backrestores the prior binding or, from a child topic, returns the source link. Assistant-message and media-bearing reply targets fail closed instead of silently dropping content.Upstream-Compatibility Revision
This revision is based on upstream
9ed1b9d70a88a6bd9701bf9c40cbba556dc87af4. Exact reply cuts now use the canonical agent-executorforkSessionAtMessagetransaction and its commit/publication owner, rather than the earlier parallel reply-cut worker. A small follow-up gives a test-fixture helper a distinct exported name to satisfy the hosted source-contract check. The command, channel placement, and Back behavior remain native-command scope; they are independent of #158030.The port also follows current worker-owned binding and transcript-read paths. It preserves exact source-reply provenance, binding-generation identity, absolute Back deadlines across persistence/restart, and owner/route revocation checks through placement, queued replay, model/tool admission, and delivery. Unsupported channel placement contracts fail closed. Ambiguous external topic creation is not blindly retried, and the no-topic fallback retains one source-chat acknowledgment.
Evidence for This Revision
ecf01c1519613dbbd556d83abc88a9e4d83e1f12on frozen upstream9ed1b9d70a88a6bd9701bf9c40cbba556dc87af4; the prior port head was6a6dbdf6445da9e361fe19dedc9e45504b20b70b.check:changedgates. The separate behavior-proof gate was skipped, not claimed.check:changedpassed its selected source guards, 27 core test-typecheck shards, extension production/test typechecks, all three Knip unused-export scans, core/extension/script lint, import-cycle check, and remaining policy guards. Fullpnpm buildpassed on the same exact head. The hosted source-contract failure is fixed and its export-name checker passes locally. The four agent-runner assertions that failed in hosted shards passed 4/4 on the frozen upstream base and 4/4 on this head with pinned dependencies in the disposable container. Focused native host/replay tests passed 41/41 and generic binding tests 36/36 locally.Hosted CI status: source-contract and the previously failing required-maintenance shard are green on this head. Two unchanged Gateway timing suites failed in separate hosted shards: plugin-reload readers and worktree-writer concurrency. Both suites passed 3/3 on frozen upstream and 3/3 on this exact head in a pinned-dependency disposable container. The native aggregate gate remains red; this fork account cannot rerun failed upstream jobs because GitHub requires repository-admin rights. A maintainer rerun is needed to determine whether these hosted timing failures repeat.
The real Telegram Bot API, restart, and published-version upgrade qualifications recorded on the previous public head
8d3be19do not qualify this rewritten head. They remain historical evidence of the UX, not current-head transport proof. This revision has not changed the installed OpenClaw package or Gateway.Risk and Maintainer Decisions