Skip to content

Harden HTTP bridge previous_response_id continuity recovery#301

Open
JoshuaRileyDev wants to merge 1 commit intoSoju06:mainfrom
JoshuaRileyDev:codex/harden-http-bridge-previous-response-recovery
Open

Harden HTTP bridge previous_response_id continuity recovery#301
JoshuaRileyDev wants to merge 1 commit intoSoju06:mainfrom
JoshuaRileyDev:codex/harden-http-bridge-previous-response-recovery

Conversation

@JoshuaRileyDev
Copy link
Copy Markdown

@JoshuaRileyDev JoshuaRileyDev commented Apr 2, 2026

Summary

  • add a bridge-local previous-response recovery index keyed by (response.id, api_key)
  • recover live HTTP bridge sessions for follow-up requests carrying previous_response_id before fail-closed continuity errors
  • clean up previous-response mappings when bridge sessions close
  • add integration coverage for recovery when request affinity drifts between turns
  • add OpenSpec change artifacts for this behavior update

Validation

  • uv run pytest -q tests/integration/test_http_responses_bridge.py -k "missing_turn_state_alias_with_previous_response_id_fails_closed or recovers_previous_response_without_turn_state_alias or send_failure_returns_previous_response_not_found"
  • result: 3 passed

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