Skip to content

fix(agents): respect stop requests during final reply delivery - #131772

Closed
steipete wants to merge 1 commit into
mainfrom
codex/issue-128008-terminal-outcome
Closed

steipete wants to merge 1 commit into
mainfrom
codex/issue-128008-terminal-outcome

Conversation

@steipete

@steipete steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Related historical context: #128008 and merged #128695. Current-main integration: #127836.

Status: non-landable, test-first cancellation baseline

This revision integrates the complete twelve-file diagnostic candidate onto pinned main b5946cfcc1623f0b423c556126ddfe960f9d3fce, preserving all31 Session regression cases and upstream's dedicated Gateway runtime shard. Session Base/Prompting production remains byte-identical to the published caf02b3b8035880b1431598b4582a0149fa8d721 baseline; the unpublished logical-controller repair is not applied. Four original-order defects have actual failing CI evidence, while three additional boundary reproductions and two first-reason controls remain unexecuted. Do not merge this diagnostic baseline.

Ownership boundary and test change

The independent #127836 integration remains intact: one logical prompt stays active across retry and compaction gaps, public terminal facts drive exact steering-occurrence cancellation, and deferred-flush failure does not suppress finalization. No upstream test or queue policy is discarded.

Actual baseline failures show that an early handoff snapshot misses cancellation during awaited agent_end callbacks, a failed continuation can settle while a foreign core successor is active, and aborting an idle retry delay can still permit queued continuation. The unchanged Gateway fixture separately records B's failed disposition. These remain production blockers, not successful repair claims.

The existing retry table now also covers real disposal with queued input and synchronous public abort from auto_retry_start. It keeps the original 503 response, ten-second fake-clock delay, normal retry and empty-queue controls. The queued/disposal rows establish provider, active-retry, core-idle and queue facts before interruption. The unqueued retry-start callback instead records provider1 and core-idle; it does not require retry-controller or queue state at that notification. Disposal must leave the exact queued input dormant without a second provider request; it must not emit to listeners it has already removed. The reentrant abort case requires the original prompt to fulfill before any ten-second clock advancement, with fulfillment and rejection observation installed beforehand. Its cleanup joins the actual prompt, abort and observer before restoring real timers.

The existing post-compaction table adds a real direct-core successor acquired by the public settlement listener. It proves that B is distinct, live and unaborted, then checks that A does not publish an extension settlement into B's lifecycle. Both public and extension terminal assertions remain. The new first-reason table uses real agent_end and a pre-registered waitForIdle reaction: A retains its first handoff reason, while a later independently acquired B receives its own caller's stop reason. It does not fabricate an awaited flush; final flush is synchronous.

Source prediction on unchanged production is seven failing and 24 passing cases. The three incremental predicted failures are disposal with queued retry input, abort at retry-start notification, and public-to-extension successor reentry. Both first-reason controls are expected to pass. Those numbers are not an execution result. A strengthened public-terminal assertion may fail before the historical extension assertion in the pre-public successor case; prior later-assertion execution is not assumed.

A parked intermediate implementation exposed a new predecessor-to-successor reason-transfer regression during review. It was not published. Both production files were restored exactly to the public baseline before this test-only candidate. All source, review findings and preservation records remain retained. No public API, SDK, authorization, configuration, persistence or protocol change, production seam, timeout increase or forced replay is introduced.

The already-proved private deferred-manager repair remains unchanged: record cancellation, restart or supersession on the exact existing ReplyOperation before aborting the derived signal. Canonical methods preserve first reason, upstream, terminal, frozen, stale-expiry and retired-successor behavior; command callers without an operation remain supported.

Relative to pinned main b594, the PR has twelve changed files: runtime +27/-21 (net +6), prerequisite tooling +6, tests +1367/-66. The main integration adapts the planner test and carries upstream changes; it adds no new Session production repair. This is diagnostic staging, not acceptance of the final production shape.

Canonical main integration

Published d025f0e9232844ff8fe3bcfca3014214c735c9fc could not attach CI because its test-planner expectation conflicted with current main. An older pinned preview was clean, but the actual server main b594 had one concrete planner-test conflict; no test failure or GitHub fault is inferred from that attachment state.

Upstream ef18511a0a56bda63bc7dad8097d87ed0d3975ff makes one dedicated Gateway runtime shard prepare the runtime, instead of doing that in each ordinary stripe. This integration preserves that canonical planner and consumer discovery. The test now keeps three strict ordinary stripes without runtime preparation and one strict dedicated-runtime entry with an independent literal inventory: active-memory, concurrent-streams and terminal-cancellation. The full/compact inventory also includes gateway-support-export-runtime. Completeness, uniqueness, and preparation checks remain; the expected inventory is not derived from the production resolver. The unchanged Gateway fixture must execute in that actual runtime shard on the new hosted candidate.

The initial resolved merge and all old public history were preserved, then all twelve candidate changes were reconstructed on a real b594 parent. The complete resulting Git tree is byte-identical to the saved resolved merge, including every upstream file. This is a clean-parent representation, not a partial index or sequencer/hook override; normal precommit checks must still scan every introduced file. No alternate index, fabricated sequencer marker, narrowed guard scan or hook override is part of this reconstruction.

Actual public-baseline evidence

CI33225898567 executed merge 6ece55f65705e30142b509cfbc08e3e4b3f322f9, parents 9b1bc3bb93e6a004a534c4f485f26d34c911b02a and caf02b3b8035880b1431598b4582a0149fa8d721. The complete run had 163 successful jobs, 17 skipped and three failures: the Session shard, Gateway shard and aggregate gate.

The Session shard ran the previous 26-case file: 22 passed and four failed. The newly established idle-retry abort-with-queued-input case failed provider count, two instead of one, after real public abort and original-prompt join. Later dormant-queue, transcript, retry-ended and settlement assertions did not execute. Normal retry and abort-without-queued-input passed; the three prior late-callback/foreign-successor failures remained. The selected group had 2,337 passing, four failing and two skipped tests. Real handoff adoption passed.

The Gateway core-3 shard failed the unchanged 135-second B-disposition bound; the whole fixture took 146,469 ms. Normal control delivered two intended replies. Aborted A reached its typed native-lane join and intended third reply. B was skipped after a missing exact pending-entry cancellation and accepted-unconfirmed warning; the wire remained at three intended replies, without an extra generic error. B's later final/history/provenance and strict-four-wire assertions were not reached.

A possible hidden continuation after the embedded observer unsubscribes could remove B's queued occurrence before transcript cleanup rejects its write. That sequence is source-inferred, not directly observed in the raw log. One logged embedded start cannot rule out a later unobserved core loop. The conservative no-replay policy and every Gateway assertion remain unchanged; eventual recovery must be demonstrated by that same fixture.

The exact executed object and parents were inspected. Critical Session/core/retry/transcript owners and the executed test sources match the published caf02/previous 26-case baseline, not the new 31-case test file. Thirteen other context/metadata deltas, including the actual runner/dependency changes, were separately read and qualified; this is not an all-package or entire-checkout parity claim.

Review state

The fresh complete twelve-file diagnostic-integration P2 review completed eleven default automatic passes with exit0, no findings in any raw report, and helper status scoped-clean for that selected diagnostic-integration scope. Minimum confidence was 0.61. All eleven reports explicitly retained cross-batch owner limitations: the first specifically validated the ordinary/dedicated Gateway inventory, while still lacking complete ReplyOperation-to-native-abort and build-admission-to-worker relations; other batches could not independently verify complete planner or Session/Core relationships. These are complementary source assessments, not eleven complete integrated reviews or a production-completeness certificate. All reports and limitations are preserved. The243 whole-file inputs and all276 bindings, complete candidate tree and historical records were unchanged after review, and the recorded owned processes were gone. Known production cancellation blockers remain; the31-case fixture has not run.

Before this review, the genuine default formatter check passed on all twelve complete files using32 threads (201ms reported formatting time); pre/post source and relevant configuration stayed unchanged. This check made no source edits and does not substitute for normal commit guards, hosted tests or runtime proof.

AI-assisted. Independent source review accepted the complete 31-case test and its public-baseline contracts. The historical narrow test-authoring review completed three default automatic passes with exit0 and no findings in any raw report; the helper recorded scoped-clean only for the complete actual one-file test-authoring delta. Minimum confidence was 0.35. The first pass reviewed the supplied lifecycle source and found no authoring defect; the second and third explicitly lacked the complete test/fixture/Session/Core owners within their complementary batches and could not independently validate those boundaries. Those limits and all reports remain preserved, not promoted into a whole-PR certificate. That historical packet contained 101 whole-file semantic evidence inputs, and all 134 bindings plus preserved earlier artifacts were rechecked unchanged afterward. The full PR remains nonclean and non-landable; the final production repair still requires fresh whole-PR review and actual hosted proof.

Earlier complete reviews remain intact. The immediately preceding eight-pass review produced 22 raw findings, 19 after exact duplicate grouping, with exit1 and minimum confidence 0.93. Its disposal, retry-start, foreign-reason and public-to-extension findings were retained and source-adjudicated; they motivated these test-first controls and the withdrawal of the unpublished reason-transfer implementation. The prior seven-pass review retained 22 production findings, and the older eight-pass baseline review retained its three findings, including a source-disproved concurrent-test hang prediction. No report has been erased, filtered into a clean certificate or cosmetically rerun.

Older 882/cb7 CI passed all 166 successful/17 skipped jobs, seven manager controls, seven cancellation-composition cases and the strict four-reply Gateway flow. That success is historical after material upstream integration. Earlier 0eb failures and e464's cleanup-test authoring mistake, subsequently corrected and passing at882, remain disclosed.

Limits and next proof

The five added cases and strengthened public-terminal oracles are unexecuted. After an authentic hosted baseline, the combined Session owner repair needs complete independent/static review, unchanged Gateway recovery, all sibling regressions, exact-head green CI and normal maintainer preparation.

The Gateway evidence uses the real built Gateway with local provider and Telegram HTTP fixtures, not an authenticated live account or video. B's immediate ACK alone does not establish acceptance. Native prompt/abort join is not every outer cleanup. A single immediate agent.wait snapshot reported status: ok; final cancellation projection remains a separate producer-fact follow-up, not a consumer-status remapping.

The original drained-queue loss was separately fixed by #128695. Canonical CodeMode completion coverage from #131869 superseded the obsolete observer diagnostic; the original 1719-ms observation has no newly established cause here. This PR claims no credit for those upstream changes.

#128008 is related historical context; this PR does not change its disposition or establish full queued-occurrence resolution.

@clawsweeper

clawsweeper Bot commented Aug 28, 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 gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: L maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 12:59
@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. 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. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

The branch records stop reasons on the existing reply operation and adds Session and built-Gateway regressions for cancellation during final reply delivery.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful reproduction work and a focused cancellation repair remain a deliberately incomplete landing candidate.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor gate is exempt for this maintainer-owned baseline. Its built-Gateway fixture covers real routing and delivery owners with local HTTP fixtures, but the captured integrated run fails B recovery and the latest Session cases are unexecuted; successful integrated validation remains a merge blocker. No stored-data contract changes.
Patch quality 🧂 unranked krab (1/6) 1 actionable review finding remain.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open as maintainer-owned diagnostic work. The previous Session-owner blocker remains on the unchanged head, and no verified merged replacement resolves the final-delivery behavior.

Priority: P1
Reviewed head: d0cfae1fe012e2032a64b8bcffbd03489a75a4ee

Before merge

  • Complete the Session owner repair before landing these regressions (P1) - The introduced successor and settled-successor rows require A to stop publishing terminal events after independent core run B acquires the session. However, unchanged agent-session-prompting.ts:66-78 unconditionally publishes public settlement and then extension settlement, including after the public listener starts B. These assertions therefore cannot pass on the submitted production. This is the still-unfixed prior blocker: retain the assertions and repair the Session lifecycle owner before landing.
  • Resolve merge risk - The latest Session cases and full Gateway recovery scenario need successful execution after the integrated repair; historical passing proof predates material integration.
  • Resolve merge risk - GitHub currently reports merge conflicts; the refreshed candidate needs review against its actual resolved production owners.
  • Complete next step - Complete the Session-owner repair, resolve the current conflicts, and establish passing integrated cancellation and Gateway recovery evidence before merge.
  • Improve patch quality - Complete Session cancellation and successor-safe terminal ownership without weakening the added regressions.
  • Improve patch quality - Demonstrate passing original-order Session cases and the unchanged Gateway recovery flow on the resolved candidate.

Findings

  • [P1] Complete the Session owner repair before landing these regressions — src/agents/sessions/agent-session-loop-next-turn.test.ts:190-193
Agent review details

How this fits together

The reply runner connects channel messages to an agent session and delivers its output. Session lifecycle events determine whether queued input continues, hands off, or settles after cancellation.

flowchart TD
  A[Channel message] --> B[Reply operation]
  B --> C[Embedded agent session]
  D[Stop request] --> B
  B --> E[Deferred cancellation owner]
  E --> C
  C --> F[Continuation or settlement]
  F --> G[Channel reply delivery]
Loading

Technical review

Best possible solution:

Give the Session owner one cancellation lifecycle across callbacks, retry, compaction, and finalization, with successor-safe terminal publication and preserved queued-input identity.

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

Yes, source establishes the pinned-head successor-settlement failure through the added post-compaction cases. This review did not execute them; historical hosted failures are separate evidence.

Is this the best way to solve the issue?

No, the deferred reply-operation repair is appropriately placed but incomplete. Cancellation and terminal publication also need repair at the Session owner; downstream status remapping or weakening the regressions would leave the invariant broken.

Full review comments:

  • [P1] Complete the Session owner repair before landing these regressions — src/agents/sessions/agent-session-loop-next-turn.test.ts:190-193
    The introduced successor and settled-successor rows require A to stop publishing terminal events after independent core run B acquires the session. However, unchanged agent-session-prompting.ts:66-78 unconditionally publishes public settlement and then extension settlement, including after the public listener starts B. These assertions therefore cannot pass on the submitted production. This is the still-unfixed prior blocker: retain the assertions and repair the Session lifecycle owner before landing.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3381c042de97.

Merge-risk options

Maintainer options:

  1. Complete and validate the integrated repair (recommended)
    Repair Session ownership while retaining the new assertions, resolve conflicts, and demonstrate the original-order regressions and Gateway recovery on the resulting candidate.
  2. Keep diagnostic staging paused
    Retain the branch as a reproduction baseline until the owner repair and integrated recovery evidence are ready.

Security

None.

Evidence

What I checked:

  • Pinned introduced changes: Reviewed the merge-base-to-head production, tooling, and test hunks. The original head has the recorded parent b5946cf; no pinned test merge is available, so endpoint drift was not treated as a proposed removal of main behavior. (d0cfae1fe012)
  • Exact reply-operation cancellation: The deferred manager calls the captured operation's canonical cancellation methods before aborting native work. The execution caller supplies that same operation, whose methods preserve terminal, frozen, and retired-owner state. (src/agents/embedded-agent-runner/run/deferred-lifecycle-owner.ts:98, d0cfae1fe012)
  • Unrepaired Session finalization: Session finalization clears logical prompt activity and publishes public settlement followed by extension settlement without checking whether an independent core successor acquired the session. The introduced successor cases require those events to be suppressed. (src/agents/sessions/agent-session-prompting.ts:66, d0cfae1fe012)
  • Core lifecycle contract: Agent Core awaits terminal listeners before clearing its active run. Once idle, a distinct direct-core prompt can acquire a new signal; the Session wrapper therefore cannot infer continued ownership merely from its own outstanding promise. (packages/agent-core/src/agent.ts:591, d0cfae1fe012)
  • Current-main necessity check: Current main still publishes public then extension settlement without a successor ownership check. It now prevents queued continuation after a failed model request, so the older idle-retry failure must not be assumed unchanged wholesale. (src/agents/sessions/agent-session-prompting.ts:113, 3381c042de97)
  • Captured discussion and proof coverage: Recovered the complete body and verified SHA-256 ec80724121764b379d95cb32a524befc5b2f91d9c110fff7fe1d02da8b8749bb matches the supplied snapshot. It explicitly retains historical passing proof, reports integrated baseline failures, and states the latest 31-case fixture is unexecuted and non-landable. (d0cfae1fe012)

PR surface

Source +6, Tests +1301, Other +6. Total +1313 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 4 27 21 +6
Tests 7 1367 66 +1301
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 6 0 +6
Total 12 1400 87 +1313

Review metrics

Metric Value Why it matters
Production versus regression coverage runtime net +6; prerequisite tooling +6; tests net +1301 Runtime growth supplies the missing exact reply-operation cancellation boundary; most growth is regression coverage, while Session production remains unrepaired.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The underlying stop-during-delivery failure can stall or suppress accepted channel input, independently of CI status.
  • merge-risk: 🚨 automation: The introduced successor assertions run unconditionally against Session production that still publishes the forbidden settlement events, making the submitted baseline fail its regression suite.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The intended repair affects visible reply delivery and queued-message disposition when a user stops during final delivery.

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-08-29T00:10:59.145Z sha f7d9e62 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T01:23:09.372Z sha caf02b3 :: found issues before merge. :: [P1] Complete the Session-owner repair before merging this baseline
  • reviewed 2026-08-29T03:53:12.386Z sha d025f0e :: found issues before merge. :: [P1] Repair the remaining Session finalization owner
  • reviewed 2026-08-29T04:31:48.862Z sha d025f0e :: found issues before merge. :: [P1] Repair the remaining Session finalization owner
  • reviewed 2026-08-29T06:27:52.448Z sha d0cfae1 :: found issues before merge. :: [P1] Repair the remaining Session finalization owner
  • reviewed September 5, 2026, 4:06 AM ET / 08:06 UTC sha unknown :: blocked before merge. :: [P1] Complete the Session-owner repair before enabling these regressions
  • reviewed September 21, 2026, 10:49 PM ET / September 22, 2026, 02:49 UTC (Revision 15) sha unknown :: blocked before merge. :: [P1] [P1] Complete the Session-owner repair before enabling these regressions
  • reviewed 2026-09-26T21:58:04.812Z sha d0cfae1 :: blocked before merge. :: [P1] Complete the Session owner repair before landing these regressions

Reviewed October 3, 2026, 2:39 AM ET / 06:39 UTC (Revision 17).

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 28, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 28, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 29, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Aug 29, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 29, 2026
Diagnostic-only baseline. Preserve the existing cancellation-owner repair, all Session boundary regressions, and the canonical dedicated Gateway runtime inventory. Session production repair and exact-head hosted proof remain pending.
@steipete
steipete force-pushed the codex/issue-128008-terminal-outcome branch from d025f0e to d0cfae1 Compare August 29, 2026 06:17
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 29, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Sep 5, 2026
@VACInc

VACInc commented Sep 22, 2026

Copy link
Copy Markdown
Member

VACInc follow-up: #154872, merged as 3fbca4b, is adjacent stop behavior only. It handles already-queued pre-stop input and its false missing-warning completion; it does not cover stop timing during final-reply delivery, deferred lifecycle, or run termination. Keep this PR open.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Sep 27, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Closing this explicitly non-landable cancellation baseline. It preserves useful failing cases but deliberately omits the Session owner repair, and current lifecycle code has changed since it was prepared. Any remaining stop-during-final-delivery defect should be addressed with a focused current-main fix that retains the relevant regression cases; #154872 alone does not resolve it.

Closed in a sweep of maintainer PRs open longer than a week. Reopen with a current reproduction if this still matters.

@steipete steipete closed this Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. 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. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants