Skip to content

fix(active-memory): wire Codex request identity and retain timeout retries - #1

Open
lordratner wants to merge 2 commits into
sercada:fix/active-memory-current-requestfrom
lordratner:contrib/147193-codex-producer-timeout-retry
Open

lordratner wants to merge 2 commits into
sercada:fix/active-memory-current-requestfrom
lordratner:contrib/147193-codex-producer-timeout-retry

Conversation

@lordratner

Copy link
Copy Markdown

Summary

This is a focused contribution on top of cbd7816e, the current head of openclaw#147193.

It keeps the producer-owned request contract from openclaw#147193 and completes the tracked Codex path, while separating the unrelated timeout-budget policy change.

Commit 1: wire the real Codex producer

  • Pass params.prompt as currentUserMessage before context projection.
  • Pass currentUserTurnIdempotencyKey as currentUserMessageId.
  • Add a real Codex preparation-path regression proving that a large projected-history envelope remains separate from both the admitted request and its native identity.

The relevant producer is tracked in this repository at:

extensions/codex/src/app-server/run-attempt-prompt.ts

Accordingly, the original PR description's statement that the Codex producer is in a separate unavailable repository should be corrected. Suggested replacement:

The tracked Codex producer is updated in this contribution to pass the admitted request and native request identity before continuity/context projection. Other harness producers may continue omitting the optional fields until they can supply equivalent producer-owned values.

Commit 2: keep timeout retries independent

  • Restore the existing behavior that waits for timed-out recall cleanup and then permits one replacement attempt in the same run.
  • Restore the regression covering recovery after a rejected replacement.

This avoids coupling the request-boundary fix to a separate “one recall budget per run” policy. If terminal timeout retention is still desired, it can be reviewed independently with its own rationale and runtime evidence.

Validation

  • Active Memory focused suite: 216 passed
  • Codex context-engine suite: 36 passed
  • Prompt-hook relay suite: 12 passed
  • Total focused tests: 264 passed
  • Core TypeScript check: passed
  • Extensions TypeScript check: passed
  • Formatting check for all four changed files: passed

No installed runtime, Gateway configuration, or production service was changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant