Skip to content

fix: resume after settled-tool context overflow - #128970

Merged
roboclaw-bot merged 3 commits into
mainfrom
roboclaw/fix-128963
Aug 25, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
roboclaw/fix-128963

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #128963

What Problem This Solves

Fixes an issue where long-running embedded-agent sessions could stop with a generic incomplete-turn warning when a settled replay-unsafe tool pushed the next continuation over the model context budget. Automatic compaction was detected but skipped, leaving the session blocked until an operator manually reset or compacted it.

Why This Change Was Made

This separates permission to replay the original attempt from permission to compact and continue from exact, settled current-transcript evidence. A mid-turn overflow may now continue after compaction only when every tool is proven settled, there is no asynchronous activity, and the same session still owns the compaction target. Unsettled, asynchronous, stale, or ownership-changed states remain fail-closed, and exhausted recovery preserves actionable context-overflow guidance with an appropriate side-effect caution.

User Impact

Agents can compact and finish their response after a settled tool call crosses the context threshold without executing that tool again. If safe continuation cannot be proven, users receive a context-overflow recovery action rather than an unrelated generic incomplete-turn warning.

Evidence

  • Regression reproduced before the fix: the settled replay-unsafe mid-turn case expected one compaction and observed zero.
  • node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.shared-integration.test.ts — 71/71 passed.
  • node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/overflow-context-recovery.test.ts src/agents/embedded-agent-runner/run/attempt-recovery.test.ts src/agents/embedded-agent-runner/run/settled-tool-evidence.test.ts — 41/41 passed.
  • Exact CI failure reproduction and fixture repair: node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.shared-integration.test.ts — 25/25 in the failed shard passed after supplying production-required replay metadata.
  • Post-rebase focused coverage passed for settled replay-unsafe continuation, unsettled tools, asynchronous tools, and compaction failure.
  • pnpm tsgo:core — passed.
  • pnpm tsgo:core:test — passed.
  • node scripts/check-changed.mjs -- src/agents/embedded-agent-runner/run/attempt-recovery.ts src/agents/embedded-agent-runner/run/overflow-context-recovery.ts src/agents/embedded-agent-runner/run/overflow-context-recovery.test.ts src/agents/embedded-agent-runner/run.midturn-precheck-retry.test-support.ts — passed.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted — clean; no actionable findings.
  • Exact-head GitHub CI on 944e3abad0d — 185 successful, 42 skipped, 1 neutral, 0 failed or pending.
  • AWS Crabbox live proof run_7bbe58dfae0b — real embedded runner selected route=compact_only at 1,004 tokens over budget with toolResultReducibleChars=0; raw exec ran exactly once, auto-compaction succeeded once, the continuation issued a third provider request, and the final response marker was visible. Lease released after proof.
  • Production delta: +48/-15 (net +33). Test/test-support delta: +196/-1 (net +195). The production growth records the distinct settled-current-transcript authority and enforces session ownership across compaction; it does not weaken original-attempt replay safety.
  • Codex contract check: inspected codex-rs/core/src/session/turn.rs, compact.rs, and compact_remote.rs; completed tool handling precedes compaction and continuation from installed history.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels Aug 25, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 25, 2026 02:31
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 11:22 PM ET / August 25, 2026, 03:22 UTC.

ClawSweeper review

What this changes

The PR lets a fully settled, replay-unsafe tool turn compact its current embedded-agent transcript after a mid-turn context overflow, then continue without rerunning the tool.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No actionable correctness or security finding found. This remains open for explicit maintainer handling because it is maintainer-authored and carries the protected maintainer label.

Priority: P1
Reviewed head: 944e3abad0d5d5fbf331ba081dfa9c89d81e436f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused owner-boundary repair with useful integration and fail-closed coverage; remaining action is the protected maintainer landing decision.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored bot PR is exempt from the external-contributor proof gate; its body nevertheless supplies a linked Crabbox after-fix trace for the settled-tool continuation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored bot PR is exempt from the external-contributor proof gate; its body nevertheless supplies a linked Crabbox after-fix trace for the settled-tool continuation.
Evidence reviewed 6 items Current-main failure boundary: Current main returns before overflow recovery whenever the attempt is replay-unsafe, which prevents the existing compaction owner from handling the reported settled-tool precheck case.
Narrow recovery authorization: The patch admits only a precheck-originated, mid-turn attempt whose exact tool-call batch is proven settled and has no asynchronous activity; later replay-capable paths remain blocked for unsafe attempts.
Transcript and ownership boundary: Compaction is invoked with the active session identity, and the new check rejects continuation when that identity changes while compaction awaits.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.shared-integration.test.ts

Result: FAIL (partial) — step 2 expect_output compacts settled replay-unsafe tools and continues from their recorded result: expected terminal output was not visible within 30 seconds: "compacts settled replay-unsafe tools and continues from their recorded result"

node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.shared-integration.test.tsrunner@runnervm76f27:/tmp/clawsweeper-live-proof-128970-G6NkvB/target
$ node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.shared-integration.test.ts
node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.shared-integration.test.ts
[test] starting test/vitest/vitest.agents-embedded-agent.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-128970-G6NkvB/target

[vitest] still running with no output for 30000ms.











































Assertions:

  • FAIL expect_output: compacts settled replay-unsafe tools and continues from their recorded result

How this fits together

The embedded-agent runner invokes models and tools while retaining an attempt transcript. Its overflow recovery compacts the active session and retries from the compacted transcript, or returns an actionable recovery message when safe continuation cannot be established.

flowchart LR
  A[Tool result settles] --> B[Mid-turn context precheck]
  B --> C{Context overflow}
  C --> D[Verify settled tool batch]
  D --> E[Compact active transcript]
  E --> F[Continue from transcript]
  C --> G[Actionable recovery message]
Loading

Decision needed

Question Recommendation
Should the maintainer accept this bounded change to active-session compaction and continuation semantics? Accept the bounded recovery path: Land after the normal exact-head merge gate, relying on the settled-tool, no-async, and active-session checks plus the supplied focused proof.

Why: The protected maintainer label and maintainer authorship require an explicit human landing decision even though the reviewed patch has no discrete defect.

Before merge

  • Resolve merge risk (P1) - This changes recovery for persisted active-session transcripts after a replay-unsafe tool; an error in the settled-evidence or ownership boundary could resume the wrong session, though focused coverage exercises the changed-session fail-closed case.
Agent review details

Security

None.

PR surface

Source +145, Tests +84. Total +229 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 160 15 +145
Tests 2 85 1 +84
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 245 16 +229

Review metrics

Metric Value Why it matters
Production versus test delta production +48/-15 (net +33); tests/test-support +196/-1 (net +195) The production growth implements a separate settled-transcript authorization boundary; most added lines are targeted regression and fail-closed coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #128963
Summary: This PR is the explicit candidate repair for the reported settled-tool mid-turn overflow behavior.

Members:

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

Merge-risk options

Maintainer options:

  1. Accept the bounded recovery change (recommended)
    The evidence restricts continuation to an exact settled current transcript and rejects active-session replacement, so maintainers can accept the residual session-state risk after normal merge checks.
  2. Request one owner-run confirmation
    Keep the PR open for a maintainer-operated affected-session trace if additional confidence in persisted transcript adoption is needed.

Technical review

Best possible solution:

Keep one generic current-transcript compaction path that never replays settled tools, with session-identity validation before continuation.

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

Yes: current main's replay-unsafe early return prevents the existing overflow recovery owner from running, and the PR's full-runner regression models the exact settled-tool precheck path.

Is this the best way to solve the issue?

Yes: it reuses the existing compaction owner and exact settled-batch evidence instead of adding a replay or parallel recovery path.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P1: The patch addresses an embedded-agent recovery failure that can stop an active workflow immediately after tool execution.
  • merge-risk: 🚨 session-state: Merging changes how a persisted session transcript is compacted, adopted, and retried after an overflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored bot PR is exempt from the external-contributor proof gate; its body nevertheless supplies a linked Crabbox after-fix trace for the settled-tool continuation.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current-main blame attributes the replay-safety guard, settled-tool evidence, and compaction runtime to this recent embedded-runner history. (role: recent area contributor; confidence: high; commits: b91f1ea6e035, a6cb2fbc9f8c, e530b58b44b8; files: src/agents/embedded-agent-runner/run/attempt-recovery.ts, src/agents/embedded-agent-runner/run/incomplete-turn-recovery.ts, src/agents/embedded-agent-runner/run/compaction-runtime.ts)

Rank-up moves

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

  • If desired, have the area owner inspect the supplied affected-session trace before accepting the session-state change.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-25T02:25:58.566Z sha 4c8d57a :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T03:09:08.992Z sha 944e3ab :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. 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. labels Aug 25, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Exact-head evidence completed after the prior review snapshot:

  • 944e3abad0d: 228 checks complete — 185 success, 42 skipped, 1 neutral, 0 failed or pending; openclaw/ci-gate passed.
  • Focused recovery coverage passed, including the formerly failing compact-large shard after repairing its partial test fixture with production-required replay metadata.
  • Direct Codex contract inspection completed in the sibling checkout (codex-rs/core/src/session/turn.rs, compact.rs, and compact_remote.rs): completed tool handling precedes compaction and continuation from installed history.
  • AWS Crabbox live proof passed: https://crabbox.openclaw.ai/portal/runs/run_7bbe58dfae0b — the real embedded runner selected route=compact_only at 1,004 tokens over budget with toolResultReducibleChars=0, executed raw exec exactly once, compacted once, retried, and returned the final marker.

The previous review reported no actionable code or security findings; this rerun is to refresh the evidence verdict against the completed gates.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. labels Aug 25, 2026
@roboclaw-bot
roboclaw-bot merged commit 12e52a1 into main Aug 25, 2026
248 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the roboclaw/fix-128963 branch August 25, 2026 10:46
Rorqualx pushed a commit to Rorqualx/cortex that referenced this pull request Aug 25, 2026
… advance 80)

Resolution (13 raw conflicts; 12 ui resolved by fork-ownership policy):

- pnpm-lock.yaml: regenerated via pnpm install (derived file).
- extensions/openshell/src/openshell-core.test.ts (merge=ours drift): ADOPT-UPSTREAM
  openclaw#129258 fixture dedup + openclaw#120996 tempWorkspace migration + openclaw#126828 canonical-owner
  test (fork's makeTempDir shape + missing test were stale freezes of older upstream
  code, not fork intent). Grafted fork's one genuine delta: required
  SandboxConfig.osSandbox block into createOpenShellBackendSandboxConfig.
- src/agents/cli-runner.reliability.test.ts (merge=ours drift): clean 3-way
  merge-file. Kept fork tests + upstream openclaw#125085 (codex->agent-cli literals,
  watchdog resume tuning test; math verified against merged reliability.ts).
- src/agents/embedded-agent-runner/run/incomplete-turn-recovery.ts: ADOPT-UPSTREAM
  (preflight tsgo-core=1 catch: upstream consumer openclaw#128970 imports
  resolveSettledToolBatchEvidence which merge churn had dropped from the fork
  provider; export surface differs by exactly this extraction; fork toolMetas
  type carries toolCallId?/terminate?/isError?).
- ui/src/ui/markdown.ts: explicit param types on the linkify www plugin callbacks
  (validate/normalize). @types/markdown-it 14.1.2->14.2.0 (upstream dep bump)
  dropped contextual typing for them; the fork-owned ui copy now types them inline
  per linkify-it's Validate/Match signatures (upstream adapted its own ui tree the
  same way). Only ui file needed it; tsgo:test:ui 3->0 locally.

Note: ui tree-hash invariant vs main intentionally broken by this one adaptation —
main's ui does not compile against the new lockfile (baseline 0 was measured with
@types 14.1.2).

No product-collision: no codex/** residuals.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
* fix(agents): compact settled mid-turn tool overflow

* test(agents): provide overflow replay metadata

Co-authored-by: VACInc <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: VACInc <[email protected]>
VACInc added a commit that referenced this pull request Aug 26, 2026
…pending (#129792)

* fix(agents): compact mid-turn overflow while code-mode work is still pending

#128970 let a mid-turn overflow compact and continue only when every lifecycle
item was balanced. A code-mode exec that returns status "waiting" has its
result persisted, but its nested tool keeps a lifecycle item active, so the
gate failed closed: no compaction, a generic "couldn't generate a response"
warning, and the waiting run expired before the operator could resume it.

Continuation resumes from the persisted tool results and never replays the
assistant call, so the transcript is the settlement proof: gate on every
requested tool call having a recorded result. Nested code-mode work stays
owned by the run registry and resumes through `wait`, exactly as across turns.

* fix(agents): keep parked code-mode work fail-closed across a rotated compaction

A parked code-mode run is bound to the session it started in and `wait`
rejects any other session, so a compaction that adopts a successor session
cannot redeem it. When nested tool work is still parked, treat a rotating
mid-turn compaction as a failed recovery and surface overflow guidance instead
of a continuation that would fail on that binding.

* fix(agents): keep post-compaction hooks when a rotated retry is withheld

Withholding the mid-turn continuation after a rotating compaction must not
turn the committed compaction into a failure: maintenance, the after hook,
the compaction count, and the post-compaction guard still run. Only the
retry and the tool-result truncation retry are skipped before surfacing the
overflow guidance.

* fix(agents): admit active-item continuation only for Code Mode runs

Generic tools keep the fully-settled predicate; only a run with Code Mode
engaged may continue while lifecycle items are active, since that is the
one case where the outer exec result is persisted while the parked nested
call stays owned by the code-mode run registry. A generic tool with an
active item stays fail-closed (new regression).

* fix(agents): gate active-item continuation on a recorded Code Mode suspension

codeModeEngaged only says Code Mode controls were enabled for the attempt;
Code Mode can still run direct tools, so a recorded direct-tool result plus
unrelated active lifecycle work could take the weaker branch with no parked
exec to resume. Record the fact where it happens instead: the tool completion
handler marks an exec result that came back "waiting" as codeModeSuspended,
and recovery continues past active items only when the recorded batch carries
that fact. Code Mode enabled with a direct tool active stays fail-closed.

* fix(agents): mark a parked run only for the marked Code Mode exec tool

isExecToolName matches any tool named exec or bash, but only the marked Code
Mode exec owns a resumable run. Carry the marked control-tool identity from
the run's tool list (where the tool objects are known) to the subscription
as codeModeExecToolNames, and record codeModeSuspended only for those tools.
A plain exec returning a waiting-shaped result is no longer marked.

* fix(agents): collect the Code Mode exec identity from the registered tool surface

uncompactedEffectiveTools is the bundle list before the tool catalog creates
the marked Code Mode controls, so the identity set was empty in real Code
Mode runs and the parked-run fact was never recorded. Derive it from the
post-catalog effectiveTools, where the activity wrapper preserves the marker
through copyAgentToolMetadata.

* fix(agents): block rotated retries for every recorded parked Code Mode run

A local yield_control parks the marked exec without creating a nested
lifecycle item, so gating the rotation block on activeCount let that case
retry in the successor session where wait rejects the original binding.
Key the block off the recorded codeModeSuspended fact instead, with a
zero-active-item rotation regression.

---------

Co-authored-by: VACInc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…pending (openclaw#129792)

* fix(agents): compact mid-turn overflow while code-mode work is still pending

openclaw#128970 let a mid-turn overflow compact and continue only when every lifecycle
item was balanced. A code-mode exec that returns status "waiting" has its
result persisted, but its nested tool keeps a lifecycle item active, so the
gate failed closed: no compaction, a generic "couldn't generate a response"
warning, and the waiting run expired before the operator could resume it.

Continuation resumes from the persisted tool results and never replays the
assistant call, so the transcript is the settlement proof: gate on every
requested tool call having a recorded result. Nested code-mode work stays
owned by the run registry and resumes through `wait`, exactly as across turns.

* fix(agents): keep parked code-mode work fail-closed across a rotated compaction

A parked code-mode run is bound to the session it started in and `wait`
rejects any other session, so a compaction that adopts a successor session
cannot redeem it. When nested tool work is still parked, treat a rotating
mid-turn compaction as a failed recovery and surface overflow guidance instead
of a continuation that would fail on that binding.

* fix(agents): keep post-compaction hooks when a rotated retry is withheld

Withholding the mid-turn continuation after a rotating compaction must not
turn the committed compaction into a failure: maintenance, the after hook,
the compaction count, and the post-compaction guard still run. Only the
retry and the tool-result truncation retry are skipped before surfacing the
overflow guidance.

* fix(agents): admit active-item continuation only for Code Mode runs

Generic tools keep the fully-settled predicate; only a run with Code Mode
engaged may continue while lifecycle items are active, since that is the
one case where the outer exec result is persisted while the parked nested
call stays owned by the code-mode run registry. A generic tool with an
active item stays fail-closed (new regression).

* fix(agents): gate active-item continuation on a recorded Code Mode suspension

codeModeEngaged only says Code Mode controls were enabled for the attempt;
Code Mode can still run direct tools, so a recorded direct-tool result plus
unrelated active lifecycle work could take the weaker branch with no parked
exec to resume. Record the fact where it happens instead: the tool completion
handler marks an exec result that came back "waiting" as codeModeSuspended,
and recovery continues past active items only when the recorded batch carries
that fact. Code Mode enabled with a direct tool active stays fail-closed.

* fix(agents): mark a parked run only for the marked Code Mode exec tool

isExecToolName matches any tool named exec or bash, but only the marked Code
Mode exec owns a resumable run. Carry the marked control-tool identity from
the run's tool list (where the tool objects are known) to the subscription
as codeModeExecToolNames, and record codeModeSuspended only for those tools.
A plain exec returning a waiting-shaped result is no longer marked.

* fix(agents): collect the Code Mode exec identity from the registered tool surface

uncompactedEffectiveTools is the bundle list before the tool catalog creates
the marked Code Mode controls, so the identity set was empty in real Code
Mode runs and the parked-run fact was never recorded. Derive it from the
post-catalog effectiveTools, where the activity wrapper preserves the marker
through copyAgentToolMetadata.

* fix(agents): block rotated retries for every recorded parked Code Mode run

A local yield_control parks the marked exec without creating a nested
lifecycle item, so gating the rotation block on activeCount let that case
retry in the successor session where wait rejects the original binding.
Key the block off the recorded codeModeSuspended fact instead, with a
zero-active-item rotation regression.

---------

Co-authored-by: VACInc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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]: Mid-turn overflow skips auto-compaction after settled replay-unsafe tools

1 participant