Repository navigation
Description
Problem
Native Codex child activity can be observed during a run without remaining visible in OpenClaw chat history after reconnect. A resumed Codex connection can expose typed child activities without the raw spawn_agent / wait tool-call stream. Raw calls and results that were not observed cannot be reconstructed reliably.
This came up while validating dedicated Codex remote hooks for openclaw/openclaw-enterprise#1418. It is separate from enabling the hooks themselves and from deciding when child completion may wake the parent.
Scope to discuss
Should OpenClaw persist the actual typed activities it observed (child started, completed, interrupted or interacted), and how should those appear in history? Decide which child identifiers and status fields are useful, how reconnect/replay avoids duplicate entries, and whether these records are display-only.
A local prototype preserves typed observations without fabricating missing tool arguments or results. It is deferred pending this design discussion; it is not shipped behavior. A completed activity must not be interpreted as proof that the parent read the result.
Verification
Run a native child, read chat.history, reconnect or replace the Gateway, and read it again. Check that supported observations persist once and that any missing raw tool history is represented honestly. If display-only records are chosen, verify they do not enter future model context or affect completion delivery.
Related: #150696 covers ongoing post-yield channel progress and explicitly excludes Control UI history APIs. This issue concerns stored history, not live progress publishing.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Oct 6, 2026
Codex review: this still needs some work. Reviewed October 6, 2026, 7:58 PM ET / 23:58 UTC.
Summary
Keep open as a distinct product-design request. Current main supports live native-child presentation and observed raw tool history, but does not establish the requested persistent typed-activity contract; related progress and completion work covers different behavior.
Reproducibility: not applicable. as an established-behavior bug: this requests a new persistence contract. Source supports the stated live-versus-history distinction, but no native reconnect run was executed.
Maintainer decision needed
Why: Persistence changes the stored-history contract; existing live presentation does not determine model-context inclusion, replay identity, retention, or the meaning of completion.
Next step
Resolve the durable-history contract before implementation; this is not a safe automatic bug-fix candidate.
Review details
Best possible solution:
Prefer bounded, replay-safe display records for observed child activity, owned by existing transcript storage and kept separate from model context and completion-consumption evidence.
Do we have a high-confidence way to reproduce the issue?
Not applicable as an established-behavior bug: this requests a new persistence contract. Source supports the stated live-versus-history distinction, but no native reconnect run was executed.
Is this the best way to solve the issue?
Unclear until the storage and display contract is approved; preserving actual observations without inventing raw calls is a sound direction.
AGENTS.md: found and applied where relevant.
Codex review notes: model internal, reasoning medium; reviewed against 45b18e215b54.
Label changes
Label changes:
No label changes.
Label justifications:
P3: This is a new history-presentation contract requiring design, with no established execution or delivery failure.impact:ux-friction: Observed child activity can disappear from the user's historical view after reconnect.Evidence reviewed
What I checked:
extensions/codex/src/app-server/event-projector-tool-transcript.ts:238, 45b18e215b54)extensions/codex/src/app-server/event-projector-events.ts:457, 45b18e215b54)extensions/codex/src/app-server/transcript-history-projection.ts:183, 45b18e215b54)extensions/codex/src/app-server/event-projector.replay-safety.test.ts:409, 45b18e215b54)docs/plugins/codex-harness.md. (docs/plugins/codex-harness.md:11, 45b18e215b54)codex-rs/app-server-protocol/schema/typescript/v2/ThreadItem.ts:125, a956835d0207)Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon Oct 22, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.