Skip to content

feat(auto-reply): add native conversation fork command - #162287

Open
clawSean wants to merge 2 commits into
openclaw:mainfrom
clawSean:feat/native-conversation-fork
Open

clawSean wants to merge 2 commits into
openclaw:mainfrom
clawSean:feat/native-conversation-fork

Conversation

@clawSean

@clawSean clawSean commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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 --back restores 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-executor forkSessionAtMessage transaction 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

  • Signed head ecf01c1519613dbbd556d83abc88a9e4d83e1f12 on frozen upstream 9ed1b9d70a88a6bd9701bf9c40cbba556dc87af4; the prior port head was 6a6dbdf6445da9e361fe19dedc9e45504b20b70b.
  • Exact-head deterministic pre-push receipt: passed in a disposable Ubuntu/Node 24.16 container with frozen-lockfile dependencies. The receipt passed frozen-base, revision, clean-worktree, merge-tree, changed-scope, diff, dependency-policy, risk-review, hosted-mirror, and check:changed gates. The separate behavior-proof gate was skipped, not claimed.
  • check:changed passed 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. Full pnpm build passed 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 8d3be19 do 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

  • Protected transport IDs are needed for exact reply selection; their archive lifecycle follows existing session retention and is not guaranteed erasure.
  • An API-successful topic creation without a usable topic ID can leave an external orphan; no blind retry is attempted.
  • Focused regressions exercise authority revocation and persistence, but do not claim to reproduce every live concurrent race through a Telegram or Discord network.
  • Maintainers should decide whether a built-in command belongs upstream alongside the separately proposed plugin capability. Neither PR depends on the other.

@clawsweeper

clawsweeper Bot commented Oct 1, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: telegram Channel integration: telegram size: XL labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Adds 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

  • Before: There is no built-in command to create and continue a named conversation branch from that topic.
  • After: A supported child topic receives the branch, and /fork --back shows the source conversation link.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The workflow is useful, but an unresolved authority defect and nonqualifying current-head runtime evidence prevent readiness.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Partial
User problem: Channel users cannot branch a conversation and continue or return within their messaging app.
Reason: The workflow has clear value, but a universal command needs owner direction alongside the optional plugin proposal. The linked request also includes capabilities this native scope does not deliver.

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
Reviewed head: ecf01c1519613dbbd556d83abc88a9e4d83e1f12
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should conversation fork, placement, and return be a built-in command or an optional plugin using a narrowly scoped host capability?
  • Recommendation: Prefer the optional plugin surface: Define the bounded host capability and keep command UX in an independently distributed plugin.
  • Why: No recorded area-owner approval settles the two independent proposals, and repository guidance prefers existing plugin surfaces before universal core commands.

Before merge

  • Add real behavior proof - Authority-chain proof required: show current-head allowed native fork/replay and non-owner, revoked-owner, and reassigned-route rejection before binding commitment and actual provider, tool, and channel effects. Current-head validation is supplemental harness evidence; the author explicitly excludes the earlier Telegram runs, and the inspected images do not show this path. Persisted generation, expiry, and Back metadata also lack a qualifying latest-stable upgrade/restart run. Provide redacted logs or terminal/video evidence without keys, IP addresses, phone numbers, or private endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • [P1] Recheck fork authority at the Telegram binding commit (P1) - For /fork child placement with persistence enabled, the owner or source route can be revoked after createChildForumTopic performs its post-network check but before the queued storage write commits. This callback skips the command/source assertion whenever nativeTopicCreated is true, so it can still persist and publish the fork route. The helper’s earlier check does not close this window. Recheck the supplied fork authority at commit admission, as the Discord path does for fork metadata. This previously reported finding remains unchanged.
  • [P2] Preserve the absolute deadline when fencing legacy bindings (P2) - When the current source binding lacks a generation, preparing /fork rewrites it using remaining ttlMs. Telegram and Discord forward expiresAt instead and reset binding timestamps, so a nearly expired legacy route receives a fresh policy window; generic bindings can also extend expiry by the admission delay. The altered deadline is then saved for Back. Pass legacy.expiresAt through the existing absolute-expiry contract and cover an expiring generation-less source at the real binding owner. This previously reported finding remains unchanged.
  • Resolve security concern: Revoked fork authority can leave durable routing authority - The binding-commit finding can leave a persisted destination that later ordinary channel turns continue using, so stopping the initiating replay alone does not contain the effect.
  • Complete next step - Validate the fork flow on a clean merge with current main, preserving its command-registry and transcript-worker changes.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P1] [P1] Recheck fork authority at the Telegram binding commit — extensions/telegram/src/thread-bindings.ts:370-374
  • [P2] [P2] Preserve the absolute deadline when fencing legacy bindings — src/auto-reply/reply/commands-fork-host.ts:361-363
  • [high] Revoked fork authority can leave durable routing authority — extensions/telegram/src/thread-bindings.ts:372

Tests

  • Low-value test src/auto-reply/reply/commands-fork.test.ts — selects current directly for Telegram DMs without creating a forum topic: Duplicates the earlier direct-chat case with the same input and outcome; remove the duplicate.
  • Low-value test src/auto-reply/reply/commands-fork-host.test.ts — selector-only provenance, media, assistant, and colliding-ID cases: The fixture implements the selection rules itself, so these cases test the mock; remove them or cover missing cases in the real transcript-worker test owner.
  • Missing end-to-end proof: Show current-head native tip and exact-reply fork, continuation and Back, rejection before effects after owner revocation or route reassignment, and a latest-stable upgrade/restart retaining existing binding deadlines.
Agent review details

How this fits together

Channel 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]
Loading

Technical review

Best 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:

  • [P1] [P1] Recheck fork authority at the Telegram binding commit — extensions/telegram/src/thread-bindings.ts:370-374
    For /fork child placement with persistence enabled, the owner or source route can be revoked after createChildForumTopic performs its post-network check but before the queued storage write commits. This callback skips the command/source assertion whenever nativeTopicCreated is true, so it can still persist and publish the fork route. The helper’s earlier check does not close this window. Recheck the supplied fork authority at commit admission, as the Discord path does for fork metadata. This previously reported finding remains unchanged.
    Confidence: 0.99
  • [P2] [P2] Preserve the absolute deadline when fencing legacy bindings — src/auto-reply/reply/commands-fork-host.ts:361-363
    When the current source binding lacks a generation, preparing /fork rewrites it using remaining ttlMs. Telegram and Discord forward expiresAt instead and reset binding timestamps, so a nearly expired legacy route receives a fresh policy window; generic bindings can also extend expiry by the admission delay. The altered deadline is then saved for Back. Pass legacy.expiresAt through the existing absolute-expiry contract and cover an expiring generation-less source at the real binding owner. This previously reported finding remains unchanged.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6b2afbfe981a.

Provenance checked

  • extensions/telegram/src/thread-bindings.ts changes intended behavior with a stated reason (71bb516: Move binding persistence to workers while retaining ordered mutations, acknowledged publication, and the existing synchronous SDK contract.)
  • extensions/discord/src/monitor/thread-bindings.manager.ts keeps the original intent (b310493: Keep network requests outside shared persistence scheduling and retain acknowledged outcomes while rechecking authority for later messages.)
  • src/infra/outbound/current-conversation-bindings.ts keeps the original intent (02ca283: Bound current conversation expiry.)
  • src/shared/thread-binding-lifecycle.ts and Discord expiry projection keeps the original intent (refactor(discord): share prepared binding expiry selection #140643: Use shared earliest-deadline selection while preserving channel timestamp rules, identity, persistence, and expiry fencing.)
  • src/infra/outbound/session-binding-adapter.ts and account-scoped binding mutations keeps the original intent (refactor(conversations): move binding and delivery authority to workers #166259: Move binding mutations to existing workers while preserving live revocation checks and released SDK signatures.)
  • src/auto-reply/reply/queue and followup delivery keeps the original intent (fix(tui): queue prompts while the agent is busy #100123: Keep queued turns under explicit lifecycle ownership through admission, cancellation, overflow, and completion.)
  • src/auto-reply/reply/channel-run-admission.ts and agent execution keeps the original intent (fix: recognize verified team admins as channel owners #153508: Carry current verified owner authority into execution and reject newly privileged work after demotion, unlinking, reassignment, or revocation.)

Testing

Proof path: in-process harness.

Security

Needs attention: The authority review found a durable routing effect reachable after fork authority is revoked; no unrelated supply-chain change was identified.

Evidence

Security concerns:

  • [high] Revoked fork authority can leave durable routing authority — extensions/telegram/src/thread-bindings.ts:372
    The binding-commit finding can leave a persisted destination that later ordinary channel turns continue using, so stopping the initiating replay alone does not contain the effect.
    Confidence: 0.99

What I checked:

  • Pinned introduction and review continuity: Reviewed the merge-base-to-head introduction. The diff from the preceding port head to the reviewed head contains no changes to either file carrying the prior findings; the completed previous review also examined this exact head. (ecf01c151961)
  • Telegram commit authority: After child topic creation, persistence checks the manager and destination row but skips the supplied command/source assertion when nativeTopicCreated is true. The topic helper’s earlier post-network check cannot cover revocation while persistence awaits admission. (extensions/telegram/src/thread-bindings.ts:372, ecf01c151961)
  • Legacy deadline conversion: Legacy fencing supplies remaining ttlMs instead of the original expiresAt. Telegram’s adapter forwards expiresAt, not ttlMs, and recreates boundAt and lastActivityAt, extending the saved route’s effective deadline. (src/auto-reply/reply/commands-fork-host.ts:363, ecf01c151961)
  • Current-main necessity: Current main has backend sessions.fork support but no matching native fork command or conversationFork host. Existing backend operations do not provide the proposed in-channel placement and return workflow. (src/gateway/server-methods/sessions-rewind.ts:148, 6b2afbfe981a)
  • Related product proposals: [Feature]: Plugin-supported cross-channel /fork with reversible in-place fallback #157627 requests a plugin-supported fork, placement, and return capability. feat(plugins): add conversation fork command capability #158030 remains open and explicitly supplies a plugin host capability rather than this built-in command; its rewritten-head behavior proof is also excluded by its author. Neither is a merged superseding implementation.
  • Proof identity and limitations: The supplied body source identity is 56e61790766f524c2a16043d760810621d9eb3111848ee3420bb37253a52c6bf. The body explicitly excludes the earlier 8d3be19 Telegram and upgrade runs from qualification of this rewritten head. The contributor comment confirms those historical scenarios; both prepared images were inspected and show chat navigation rather than native fork execution. (ecf01c151961)

PR surface

Source +1694, Tests +2640, Docs +2. Total +4336 across 65 files. Added test files: 8.

View PR surface stats
Area Files Added Removed Net
Source 43 1777 83 +1694
Tests 21 2648 8 +2640
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 65 4427 91 +4336

Review metrics

Metric Value Why it matters
Public binding contract additions 3 optional fields Generation, absolute expiry, and removal-authority additions require a coherent contract for existing channel adapters.

Root-cause cluster

Relationship: partial_overlap
Canonical: #157627
Summary: The native command and plugin capability address the same channel workflow through different public surfaces; neither currently supersedes the other.

Members:

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded conversation-workflow feature without evidence of an urgent shipped regression.
  • merge-risk: 🚨 compatibility: The patch extends public binding contracts and changes how existing generation-less bindings are rewritten.
  • merge-risk: 🚨 session-state: Fork and Back persist routing state, and legacy fencing currently extends the saved source route’s deadline.
  • merge-risk: 🚨 security-boundary: A native Telegram fork can commit a route after its initiating owner or source route loses authority.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Native fork acknowledgments, child-topic placement, exact-reply continuation, and Back behavior are visible Telegram flows requiring Test Server userbot proof.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-01T15:14:42.487Z sha 2f90a6e33065ae77379afcf38370a4728d3ab345 :: needs real behavior proof before merge. :: [P2] Select incognito replies through their process-held owner
  • reviewed 2026-10-01T15:38:11.763Z sha 2f90a6e33065ae77379afcf38370a4728d3ab345 :: needs real behavior proof before merge. :: [P2] Select incognito replies through their process-held owner
  • reviewed 2026-10-01T17:25:52.840Z sha 9542d64451f83b856f11a70f1fa1da220047fe7f :: needs real behavior proof before merge. :: [P2] [P2] Reject adapters that cannot support generation-fenced Back | [P2] [P2] Move persistent source metadata lookups into the read worker
  • reviewed 2026-10-01T17:52:57.289Z sha 9542d64451f83b856f11a70f1fa1da220047fe7f :: needs real behavior proof before merge. :: [P2] Reject adapters that cannot support generation-fenced Back | [P2] Move persistent source metadata lookups into the read worker
  • reviewed 2026-10-01T18:39:53.837Z sha 8d3be19d276cd042400759b8356bdeab216b1327 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T18:57:44.270Z sha 8d3be19d276cd042400759b8356bdeab216b1327 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-08T21:30:08.447Z sha 6a6dbdf :: needs real behavior proof before merge. :: [P1] [P1] Recheck fork authority at the Telegram binding commit | [P2] [P2] Preserve the absolute deadline when fencing legacy bindings
  • reviewed 2026-10-08T22:43:30.276Z sha ecf01c1 :: needs real behavior proof before merge. :: [P1] [P1] Recheck fork authority at the Telegram binding commit | [P2] [P2] Preserve the absolute deadline when fencing legacy bindings

Reviewed October 8, 2026, 7:39 PM ET / 23:39 UTC (Revision 17).

@clawSean
clawSean force-pushed the feat/native-conversation-fork branch 3 times, most recently from d371158 to 2740423 Compare October 1, 2026 09:46
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Oct 1, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 1, 2026
@clawSean
clawSean force-pushed the feat/native-conversation-fork branch 2 times, most recently from 28b9112 to 27d92ef Compare October 1, 2026 13:19
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Oct 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 1, 2026
@clawSean
clawSean force-pushed the feat/native-conversation-fork branch from 27d92ef to 2f90a6e Compare October 1, 2026 14:55
@clawSean
clawSean marked this pull request as ready for review October 1, 2026 15:01
@clawSean
clawSean marked this pull request as draft October 1, 2026 15:27
@clawSean
clawSean force-pushed the feat/native-conversation-fork branch from 2f90a6e to 9542d64 Compare October 1, 2026 17:13
@clawSean
clawSean marked this pull request as ready for review October 1, 2026 17:13
@clawSean
clawSean marked this pull request as draft October 1, 2026 17:33
@clawSean
clawSean force-pushed the feat/native-conversation-fork branch from 9542d64 to 8d3be19 Compare October 1, 2026 18:28
@clawSean
clawSean marked this pull request as ready for review October 1, 2026 18:29
@clawSean

clawSean commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Exact-head Telegram Bot API validation transcript (redacted)

I reran four isolated, contributor-controlled Bot API scenarios against the packaged 8d3be19d276cd042400759b8356bdeab216b1327 head. The artifact is SHA-256 004162d4da353032387e7c5e26704ff9ba923c6706c033a83014901e456ea878. These are real Telegram network calls using disposable QA bots/groups, not a mocked adapter. Chat IDs, topic links, bot names, run markers, and local message IDs are omitted here.

  1. Flat group — PASS: baseline reply; non-owner /fork returned an authorization error with no binding change or model request; owner /fork changed the session binding; a new-session turn replied in the fork; Gateway PID changed; a post-restart turn stayed in the fork; /fork --back restored the source binding; the final source turn replied. Observed binding transitions: 0 → 1 → 1 after restart → restored. All 14 observed messages were deleted.
  2. Forum child topic — PASS: source-topic turn; same non-owner rejection/no-effect; owner /fork created a distinct child topic; turns before and after Gateway PID replacement landed in the child; child /fork --back returned the source-topic link without deleting the child binding; the source conversation continued. Both run-owned topics and all 14 observed messages were deleted.
  3. Exact replied-to user turn — PASS: baseline, selected earlier user turn, then later source-only turn. Replying to the earlier user message with /fork selected that exact persisted turn; the forked model request included the selected history and excluded the later source-only turn. Post-restart fork and Back/source turns passed. All 19 observed messages were deleted.
  4. Published-version upgrade/rollback — PASS: installed published 2026.9.6 into a disposable prefix, completed a baseline turn, used the native updater with the pinned tarball, and restarted on the same disposable state. Schema markers went from state/agent 18/23 to 20/24; post-upgrade fork, process replacement, Back, and source turn passed. Restoring the matched stock package and pre-upgrade state returned markers to 18/23 on a new PID, and a baseline-context turn still passed. All 18 observed messages were deleted.

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.

@clawSean
clawSean force-pushed the feat/native-conversation-fork branch from 8d3be19 to 6a6dbdf Compare October 8, 2026 21:17
@clawSean

clawSean commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Upstream reconciliation

The core user outcome has now landed through #190783 (b515cc7f9f1f): native /fork [title] for Telegram forum topics, implemented with OpenClaw's existing session-fork transaction and channel conversation-binding owner.

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 /fork --back return stack.

Accordingly, this 65-file branch is no longer proposed as the merge path for core /fork. I am preserving it as implementation/proof history for those broader follow-on contracts and will not rebase or ask maintainers to review the superseded surface without explicit product interest.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: discord Channel integration: discord channel: telegram Channel integration: telegram docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant