Skip to content

Sync Codex resume history with OpenCodex provider - #7

Merged
lidge-jun merged 2 commits into
mainfrom
codex/history-provider-sync
Jun 21, 2026
Merged

Sync Codex resume history with OpenCodex provider#7
lidge-jun merged 2 commits into
mainfrom
codex/history-provider-sync

Conversation

@Ingwannu

Copy link
Copy Markdown
Owner

Summary

  • repair stale Codex autostart shim state without overwriting the saved original binary
  • refresh Codex's model cache from the active OpenCodex catalog whenever the shim launches Codex
  • map resumable Codex thread history to opencodex during injection and back to openai during restore, while preserving rollout file mtimes so resume ordering stays stable

Tests

  • bun test tests
  • bun run typecheck

@lidge-jun
lidge-jun merged commit 34d4b74 into main Jun 21, 2026
4 checks passed
@lidge-jun
lidge-jun deleted the codex/history-provider-sync branch July 1, 2026 01:50
lidge-jun added a commit that referenced this pull request Jul 12, 2026
…p audit

BLOCKER fixes:
- outbound.ts: detached pump pattern for SSE streaming — frames now reach
  the client as they arrive instead of buffering until upstream EOF; cancel
  calls reader.cancel() instead of the locked stream (#1)
- system-env.ts: transactional launchctl injection with incremental tracking
  and rollback on mid-flight failure (#2)

MAJOR fixes:
- system-env.ts: POSIX single-quote escaping for all user-controlled values
  in the generated shell file, preventing command injection (#3)
- system-env.ts: exported applySystemEnvToggle for runtime ON/OFF lifecycle (#7)
- claude-messages.ts: 120s hard timeout on native passthrough upstream fetch
  using AbortSignal.timeout, returning Anthropic 504 on expiry (#4)
- management-api.ts: reject non-plain-object PUT bodies (null, array, primitive)
  with 400; strict validation for blockedSkills, tierModels, modelMap, and
  autoCompactWindow (integer, range 100k-1M) (#5, #6)
- management-api.ts: call applySystemEnvToggle after systemEnv config toggle (#7)
- cli/claude.ts: override stale loopback ANTHROPIC_BASE_URL with live port;
  warn on gateway-cache and agent-sync failures instead of swallowing (#8, #10)
- gateway-cache.ts: distinguish discovery failure (keep cache) from authoritative
  empty success (write {models:[]}) (#9)

Test fixes: updated assertions for single-quote shell escaping, empty cache
semantics, validation messages, incremental tracking writes, and PUT response
shape.
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.

2 participants