Skip to content

fix(codex): preserve native thread across compacted session rotation - #138184

Closed
vincentkoc wants to merge 4 commits into
mainfrom
fix/codex-compaction-generation-transition-20260904
Closed

vincentkoc wants to merge 4 commits into
mainfrom
fix/codex-compaction-generation-transition-20260904

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Closes #137914

What Problem This Solves

Fixes an issue where Codex users could lose native conversation continuity when host compaction rotated the OpenClaw session generation and execution stopped after the successor host row was committed but before the Codex binding was adopted.

Why This Change Was Made

Compaction now uses one generic Agent Harness lifecycle seam to stage the predecessor-to-successor transition, commit the companion Codex binding inside the same host SQLite transaction, publish the committed host fact, and complete or reconcile the native transition. A synchronous, non-mutating ownership projection preserves native routing across a persisted transition so model setup, session rows, and chat metadata can reach the asynchronous reconciliation owner after restart.

The projection and asynchronous reconciler share one host-lineage classifier. Strict ordinary binding reads still reject unresolved transitions, and state mutation, leases, waiting, and native compaction remain in Codex dispatch. The change removes the obsolete post-compaction adoption hook. It does not add config, protocol, database schema, migration, or runtime fallback surfaces.

User Impact

Codex sessions retain their native thread across host compaction and session-generation rotation. An interrupted compaction is recoverable on the next admission instead of silently clearing continuity or dead-ending the session.

Evidence

  • Signed exact head: 69a59abf16aba6e40cf06ad7f55643c52337af78 (tree 3529802e4c4a5ef429fb73fbaad3beb7f632ed15; parent 532a3a3278b493dd04bf4e313213557247394a6c; base e0c97ac015d95c3c660adfaaaa0dd083b317cde4).
  • Clean pre-fix reproduction: five initial assertions failed for transient host-isolated native compaction, two abort-listener cleanup paths, exact compact binding CAS, and exact retirement CAS.
  • ClawSweeper follow-up reproduction on the superseded head: 10 focused failures proved the restart-admission gap across transition projection (5), Codex ownership (2), model setup lineage (2), and gateway metadata lineage (1).
  • Focused repair run before the final rebase: 91/91 passed across gateway metadata, model setup, binding projection/reconciliation, and Codex harness ownership.
  • Fresh isolated exact-head regression run: PENDING_REMOTE_RESULT.
  • Exact-head node scripts/check-changed.mjs: PENDING_REMOTE_RESULT.
  • Exact-commit autoreview: PENDING_LOCAL_RESULT.
  • Local ClawSweeper review: PENDING_LOCAL_RESULT.
  • No proof from run 697 or any superseded branch head is reused as current-head proof.
  • Direct upstream contract inspection at openai/codex 8e6a44b428e31f91b21edc97904fcdf4f0931ade:
    • codex-rs/app-server-protocol/src/protocol/common.rs:667 defines thread/compact/start.
    • codex-rs/app-server/src/request_processors/thread_processor.rs:2353 loads the thread and submits Op::Compact.
    • codex-rs/core/src/compact.rs:195 runs native compaction with hooks.
    • codex-rs/core/src/hook_runtime.rs:528 owns hook execution.
  • Production delta: +1303/-622, net +681. Tests/support: +1679/-272, net +1407. Docs: +46/-12, net +34. The production growth is the generic lifecycle contract plus durable owner-state transition, exact binding CAS, shared read-only lineage projection, and restart reconciliation required to close the interruption window without policy bypass, listener leaks, or fallback routing.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc vincentkoc self-assigned this Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling extensions: codex size: XL maintainer Maintainer-authored PR labels Sep 4, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. 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 Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 7:23 AM ET / 11:23 UTC.

ClawSweeper review

What this changes

The PR stages Codex native-thread binding transitions alongside OpenClaw session compaction so an interrupted session rotation can reconcile on the next admission.

Regression provenance

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

Merge readiness

⛔ Blocked before merge - 7 items remain

This PR addresses a real current-main compaction ordering gap and resolves the prior documentation finding, but it adds a documented Agent Harness API whose long-term contract needs maintainer approval before merge.

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

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The state-transition design and focused regression coverage are substantive, but API direction and final exact-head validation are unresolved.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; its body still marks the relevant exact-head focused regression and changed-path runs as pending, which remains a merge-validation gap.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; its body still marks the relevant exact-head focused regression and changed-path runs as pending, which remains a merge-validation gap.
Evidence reviewed 5 items Current-main defect path: Current main persists the successor session row before the later after_compaction hook adopts the Codex binding, leaving the reported interruption window.
Introduced lifecycle API: The PR adds a documented optional Agent Harness lifecycle capability that stages, commits, rolls back, and completes companion state around context-engine compaction.
Atomic successor integration: The introduced successor path prepares the harness mutation and passes it into the host session-row patch, whose commit occurs inside the SQLite transaction.
Findings 1 actionable finding [P1] Obtain approval for the new Agent Harness API
Security None None.

How this fits together

OpenClaw owns durable session generations and context-engine compaction, while the Codex plugin owns the native app-server thread. This change bridges those owners so a successor session can retain and reconcile its native thread binding.

flowchart LR
  A[Codex native thread] --> B[Codex binding state]
  C[OpenClaw session] --> D[Context-engine compaction]
  D --> E[Harness lifecycle bridge]
  B --> E
  E --> F[Committed successor session]
  F --> G[Next session admission]
  G --> A
Loading

Decision needed

Question Recommendation
Should withContextEngineCompaction become a permanent optional Agent Harness API for durable plugin-owned state transitions? Approve the narrow lifecycle API: Keep the typed optional hook and its documented commit/rollback rules, then validate the exact head before merge.

Why: This is documented SDK surface for plugins, not only a Codex-private repair, so its lifetime and compatibility contract require maintainer intent.

Before merge

  • Obtain approval for the new Agent Harness API (P1) - withContextEngineCompaction is a documented optional plugin API with transaction semantics, while this branch only proves its Codex implementation. The repository requires maintainer-visible direction before expanding a plugin contract; approve this long-term seam or keep the repair Codex-local.
  • Resolve merge risk (P1) - The new optional Agent Harness lifecycle API is a compatibility-sensitive plugin contract without maintainer-visible approval of its intended permanence and cross-plugin semantics.
  • Resolve merge risk (P1) - The reviewed PR body marks its exact-head focused regression and changed-path checks as pending, leaving no completed execution result for the final rebased head.
  • Resolve merge risk (P1) - The bug fix has a net-positive production delta; no net-neutral refactor is evident because the repair spans the core session owner and Codex binding owner, but maintainers should explicitly accept the added generic seam.
  • Complete next step (P2) - Obtain maintainer approval for the Agent Harness lifecycle API and complete the pending focused exact-head validation before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P1] Obtain approval for the new Agent Harness API — src/agents/harness/types.ts:487-492
Agent review details

Security

None.

PR surface

Source +748, Tests +1734, Docs +38. Total +2520 across 64 files.

View PR surface stats
Area Files Added Removed Net
Source 35 1464 716 +748
Tests 27 2006 272 +1734
Docs 2 50 12 +38
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 64 3520 1000 +2520

Review metrics

Metric Value Why it matters
Production versus test delta production +1,454/-716 (net +738); tests/support +2,016/-272 (net +1,744); docs +50/-12 (net +38) The bug fix adds a sizeable generic lifecycle and durable-transition implementation, making contract approval and focused validation important before merge.

Stored data model

Persistent data-model change detected: serialized state: src/config/sessions/session-accessor.sqlite-entry.ts, unknown-data-model-change: src/config/sessions/session-accessor.sqlite-entry.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #137914
Summary: This PR is the stated candidate repair for the linked native-thread loss during a compacted session rotation.

Members:

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

Merge-risk options

Maintainer options:

  1. Approve and validate the lifecycle contract (recommended)
    Confirm the optional Agent Harness API is intended for external plugins, then require focused exact-head transition and restart checks before merge.
  2. Keep the lifecycle private to Codex
    Pause this branch and replace the public hook with a Codex-owned repair if maintainers do not want this plugin contract.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
After maintainer approval, run the focused exact-head compaction transition, restart-admission, ownership, and changed-path checks.

Technical review

Best possible solution:

Approve the narrow lifecycle seam only if it is the intended long-term plugin contract, then complete focused exact-head transition, restart-admission, ownership, and changed-path validation before merge.

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

Yes for the source scenario: current main has the successor-row-before-adoption ordering, and the PR adds focused transition and restart tests. Exact-head execution evidence remains pending in the reviewed PR body.

Is this the best way to solve the issue?

Unclear pending maintainer direction: staging the transition at the two state owners is sound, but exposing it as a general Agent Harness API is broader than the Codex-specific repair.

Full review comments:

  • [P1] Obtain approval for the new Agent Harness API — src/agents/harness/types.ts:487-492
    withContextEngineCompaction is a documented optional plugin API with transaction semantics, while this branch only proves its Codex implementation. The repository requires maintainer-visible direction before expanding a plugin contract; approve this long-term seam or keep the repair Codex-local.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: An interrupted compaction can strand or interrupt a Codex native session, and the proposed repair changes its durable lifecycle.
  • merge-risk: 🚨 compatibility: The PR adds a documented optional Agent Harness API whose semantics become a plugin compatibility contract.
  • merge-risk: 🚨 session-state: The patch coordinates durable OpenClaw session generations with persisted Codex thread bindings.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; its body still marks the relevant exact-head focused regression and changed-path runs as pending, which remains a merge-validation gap.

Evidence

What I checked:

  • Current-main defect path: Current main persists the successor session row before the later after_compaction hook adopts the Codex binding, leaving the reported interruption window. (extensions/codex/index.ts:360, c9dc71ec1626)
  • Introduced lifecycle API: The PR adds a documented optional Agent Harness lifecycle capability that stages, commits, rolls back, and completes companion state around context-engine compaction. (src/agents/harness/types.ts:487, cab8004f9ba7)
  • Atomic successor integration: The introduced successor path prepares the harness mutation and passes it into the host session-row patch, whose commit occurs inside the SQLite transaction. (src/agents/embedded-agent-runner/compaction-successor.ts:234, cab8004f9ba7)
  • Direct Codex protocol inspection: The locally inspected Codex checkout defines thread/compact/start, submits Op::Compact, and tests matching context-compaction start/completion notifications. Its local-cache remote does not independently establish upstream repository ownership. (codex-rs/app-server-protocol/src/protocol/common.rs:657, 41e22fee981a63b3698df7ed36bad393cda24715)
  • Prior review finding resolved: The final documentation commit explicitly describes the host-isolated recovery exception, and focused tests preserve pending synchronization until a later unrestricted turn. Public docs: docs/plugins/codex-harness-runtime.md. (docs/plugins/codex-harness-runtime.md:530, cab8004f9ba7)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vito Cappello: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Obtain explicit maintainer approval for the documented Agent Harness lifecycle contract.
  • Run the focused exact-head compaction transition, restart-admission, ownership, and changed-path checks.

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-09-04T10:33:19.986Z sha 773dcca :: blocked before merge. :: [P1] Stage the Codex binding transition for recovery compaction | [P2] Document the host-isolated pending-sync exception
  • reviewed 2026-09-04T11:04:40.893Z sha 69a59ab :: blocked before merge. :: [P2] Document the host-isolated pending-sync exception

@vincentkoc
vincentkoc force-pushed the fix/codex-compaction-generation-transition-20260904 branch from 773dcca to 69a59ab Compare September 4, 2026 10:52
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 Sep 4, 2026

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lifecycle shape is defensible: stage predecessor→successor, commit the companion Codex binding in the same host transaction, expose only a read-only lineage projection during the persisted transition, then let the async Codex owner reconcile native state after restart. That is much safer than a post-commit adoption hook. But this is a very large correctness-sensitive change (+681 production lines) and the PR body still has exact-head regression/check/review results marked pending. I would not land it until those exact-head gates are populated and the interruption matrix is green, especially crash points after host commit but before native reconciliation.

@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

The draft moves native-thread generation transfer to the host successor transaction and removes the best-effort after_compaction adoption hook. That addresses the correct ownership boundary for #137914; the full candidate is not yet verified for landing.

NEEDS-MAINTAINER-DECISION: durable transition design. At reviewed head cab8004f9ba74a8a3d4880b5e3581324d7e243cb, extensions/codex/src/app-server/session-binding-record.ts:305 introduces the persisted version: 2, state: "compaction-transition" representation. session-binding.ts:974 writes it before producer execution, and src/config/sessions/session-accessor.sqlite-entry.ts:554 changes the host/companion transaction and publication boundary. These are material persistent-store changes under the database review checkpoint, even without a SQL table or numeric SQLite schema change. Current-main binding readers accept only version-1 active/cleared records (session-binding-record.ts:288), so interruption followed by an older-reader reopen needs an explicit recovery/downgrade decision and proof.

The related heartbeat PR #136533 records acceptance of a generic lifecycle hook. I am not treating the API-approval bot finding alone as a blocker. That note does not establish acceptance of this candidate's new durable representation, pending-sync state, older-reader behavior, and recovery protocol. Please link the accepted material-store design, or record that decision before implementation/landing continues. The alternative to evaluate is a transaction-owned transfer using the existing canonical binding representation; a runtime-only mismatch fallback or removal of supervision fences is not an adequate repair.

Evidence gathered: on current main ab7cbd81203a65ceed542d9829015b52694ff5b0, node scripts/run-vitest.mjs src/agents/embedded-agent-runner/compact.queued-successor.test.ts passed 25/25. Its commits the successor before observers, with caller abort=true case proves the host successor persists while after_compaction is skipped. The transfer still occurs only in extensions/codex/index.ts:360, and supervised stale-generation reclamation refuses replacement in session-binding.ts:839. This is baseline evidence of the interruption window, not passing evidence for the candidate or a newly authored failing regression.

I personally inspected upstream Codex rust-v0.153.0, peeled commit 41e22fee981a63b3698df7ed36bad393cda24715: codex-rs/app-server-protocol/src/protocol/v2/thread.rs:335 has no dynamic-tool replacement field on thread/resume; codex-rs/app-server/src/request_processors/thread_processor.rs:3572 loads persisted history on cold resume, :3831 resumes that history, and :2347 submits asynchronous native compaction. A resume acknowledgement or compact-start acknowledgement cannot substitute for the host's durable ownership transition.

Cold loading and dynamic-tool availability are separate evidence lanes: current main supports supervised cold resume (thread-lifecycle-warm.ts:205, thread-lifecycle-adoption.ts:245) and preserves canonical native declarations while rebuilding current executors (run-attempt-tool-setup.ts:272, :509). The two reported failures still need report-specific reproduction; this review does not claim every restart/tool change is caused by compaction or fixed by this draft.

Fresh git diff --numstat origin/main...origin/pr-138184: production +1464/-716 (net +748); tests/support +2006/-272 (net +1734); docs +50/-12 (net +38), 64 files. The PR body's +681 production total is stale. A recovery path can justify growth, but the current increase still needs an absorbing-refactor review after the design is accepted.

No candidate code was changed. No Crabbox lease, live app-server proof, candidate changed checks, autoreview, or native landing run was performed after identifying the material-store gate. The draft and issue remain open; the reviewed head is also preserved on fix/codex-compaction-thread-w7. Best-fix verdict remains withheld pending the design decision, complete candidate/sibling review, and exact-head interruption/restart proof.

steipete added a commit that referenced this pull request Sep 5, 2026
…8473)

Recover the same Codex native thread when compaction commits a host successor but interruption leaves the binding at its recorded predecessor. The host already persists previousSessionId atomically; synchronous native ownership and asynchronous admission now use that fact and the existing conditional binding update.

Forward the admitted store and retain the verified host-generation check through ordinary attempts, lifecycle, side questions, native compaction, and manual-resume queue/lease/RPC waits. Carry the recovered generation assertion in private Codex attempt context while preserving the original host-capability object and its core-owned private registrations. Adoption rewrites only the generation fence. Preserve native ownership, catalog refusal, cancellation/reconnect behavior, and unrelated-generation policy. Use the admitted store for manual-resume auth and preserve displaced native ownership across awaited release. Remove the after-compaction adopter and duplicate recovery.

Guard startup binding clears after filesystem waits and settle known compaction rejection before restoration, so revoked authority cannot clear a binding and failed restoration cannot leak its completion watcher. Fence unconfirmed remote retirement and post-agent_end coverage/cleanup against a later host generation. Settle known pre-write rejections without waiting for a nonexistent compaction turn. Inline the single-use coverage wrapper so successor messages stay visible on the next saved-thread resume. Failing-before regressions cover interruption, cold saved-ID resume, other generations/owners, and post-adoption host-only rotation.

Fixes #137914. Thanks to @vincentkoc for the report and the draft in #138184.

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
@vincentkoc

Copy link
Copy Markdown
Member Author

The residual command-authority scope from this draft is now landed in #138820 as squash commit 581c3dbfff81f3761ced403b22bbbedb4d702e6c.

#138820 carries the exact-head stale/current generation proof and green required CI, so this draft is superseded and can close.

@vincentkoc vincentkoc closed this Sep 5, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
…nclaw#138473)

Recover the same Codex native thread when compaction commits a host successor but interruption leaves the binding at its recorded predecessor. The host already persists previousSessionId atomically; synchronous native ownership and asynchronous admission now use that fact and the existing conditional binding update.

Forward the admitted store and retain the verified host-generation check through ordinary attempts, lifecycle, side questions, native compaction, and manual-resume queue/lease/RPC waits. Carry the recovered generation assertion in private Codex attempt context while preserving the original host-capability object and its core-owned private registrations. Adoption rewrites only the generation fence. Preserve native ownership, catalog refusal, cancellation/reconnect behavior, and unrelated-generation policy. Use the admitted store for manual-resume auth and preserve displaced native ownership across awaited release. Remove the after-compaction adopter and duplicate recovery.

Guard startup binding clears after filesystem waits and settle known compaction rejection before restoration, so revoked authority cannot clear a binding and failed restoration cannot leak its completion watcher. Fence unconfirmed remote retirement and post-agent_end coverage/cleanup against a later host generation. Settle known pre-write rejections without waiting for a nonexistent compaction turn. Inline the single-use coverage wrapper so successor messages stay visible on the next saved-thread resume. Failing-before regressions cover interruption, cold saved-ID resume, other generations/owners, and post-adoption host-only rotation.

Fixes openclaw#137914. Thanks to @vincentkoc for the report and the draft in openclaw#138184.

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
@RomneyDa
RomneyDa deleted the fix/codex-compaction-generation-transition-20260904 branch October 22, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. 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.

Codex native thread is lost when compaction rotates session generation

3 participants