Skip to content

Codex native children: define persistent activity in chat history #166350

Open

Description

@Kimiyu-186

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.

Activity

  1. added
    P3
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    impact:ux-friction
    issue-rating: 🌊 off-meta tidepool
    on Oct 6, 2026
  2. clawsweeper commented on Oct 6, 2026

    @clawsweeper
    Contributor

    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

    Question Recommendation
    Should observed Codex child activities become durable display-only chat-history records, and which identities, statuses, and retention rules should that contract preserve? Define display-only observations: Persist bounded observed facts with stable replay identities while excluding them from future model input and completion-consumption decisions.

    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:

    Likely related people:

    • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • joshavant: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    How this review workflow works
    • 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.
  3. openclaw-barnacle commented on Oct 22, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  4. added
    stale
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3clawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-primpact:ux-frictionissue-rating: 🌊 off-meta tidepoolstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions