You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaces blind fixed-interval heartbeat polling with dual-threshold activity-aware stall detection: 10 min (600s) silence stall threshold + 30 min (1800s) hard ceiling by default.
Tracks real Codex progress (item/started, item/completed, streaming text/reasoning/command/file deltas, plan/updated & patchUpdated schema-bounded digests, and blocking approvals/questions) using three orthogonal monotonic (performance.now()) clocks (turnRunningSince, lastProgress, lastDeliveredContact) that refresh cleanly after every confirmed supervisor wakeup.
Added --stall-timeout <sec> (0..1800, 0 disables silence detection) to codex-ctl.mjs wait, with strict /healthcapabilities.stallWatchdog === true negotiation and bidirectional compatibility with older v1.4.0 daemons.
Includes sanitized diagnostic metadata (timeoutReason: "stall" | "max_wait", silentSec, lastActivityKind, lastActivityAt, allowlisted activeItems, and sanitized lastNonRetryableError.code) in timeout wakeups and status summaries.
Unwaited Hook / Inbox Background Watchdog:
Runs an independent background watchdog (CODEX_BRIDGE_BG_STALL_SEC=600, CODEX_BRIDGE_BG_MAX_RUN_SEC=1800) for active turns with no attached foreground wait, delivering deduplicated inboxOnlyturn_watchdog notifications via existing PreInvocation / Stop hooks and codex-ctl.mjs inbox (keeping the fixed security-isolated hook templates untouched).
Enforces a single-writer alert slot per turn with fg_timeout_receipt lease confirmation (auto 5s / manual 30s), seamlessly handing off failed foreground EPIPE deliveries to the background inbox without duplicate storms.
Portable 11-Group Watchdog Verification Suite (tests/verify-watchdog.mjs):
Covers unit scheduling/sanitization, active streaming suppression, silent stall detection, EPIPE handoff, multi-waiter slot contention, full-queue self-eviction, turn isolation & 0.169.1 cancel payloads, unwaited Hook/Inbox delivery, --force rescheduling, and mixed-version compatibility.
Replaced native OS <select> with a custom accessible session dropdown featuring live status dots, dynamic relative timestamps, two-line workspace/model/count metadata, full keyboard navigation, viewport height clamping, and poll-stable menu focus/scroll.
Added O(1) incremental DOM bubble appends (skipping redundant DOM rebuilds when hidden tool writes don't affect visible messages), GPU-composited directional spring pop-in animations, synchronized easeOutQuart bottom push-up scrolling (untouched while reading history; immediately cancellable by wheel/touch/pointer/keyboard), smooth reversible max-height expand/collapse transitions, and prefers-reduced-motion support.
Added exact itemId correlation (inFlightDraftItemIds / completedMessageItemIds) and activeTurnFinalized tracking so streaming drafts settle in-place without replaying entrance animations or flashing brief post-final_answer ghost "running" bubbles.
Sidecar Panel Collapsible Long Bubbles (sidecars/codex_panel/app.js, styles.css, index.html):
Caps tall non-tool chat bubbles at 260px (with a 56px hysteresis buffer so short overflows stay natural) using a theme-aware bottom fade mask and a minimalist 显示更多 / 收起 toggle with zero inner scrollbars.
Preserves expanded bubble state and keyboard focus across poll re-renders, anchors scroll cleanly on collapse (keeping the toggle visible in short viewports), links buttons via aria-controls, and adapts smoothly to panel width/height resizes.
Codex 0.169.1 App-Server Protocol Hardening:
Strict threadId + turnId scoping prevents late notifications or superseded turns from resurrecting completed turns or poisoning active stall timers.
Enforces single-reply authority on server requests with exact 0.169.1 retirement/cancel payloads ({ permissions: {}, scope: "turn" } for permissions, { decision: "abort" } for legacy approvals, { decision: "cancel" } for v2 approvals, -32602 on malformed requests) and distinguishes non-blocking item/tool/requestUserInput (isBlocking: false).
Upgraded POST /wait validation to strict non-coercing JSON integers and two-phase disconnect cleanup across multi-thread teardown.
Tracks thread-level (model, effort) separately from active-turn snapshots (activeTurnModel, activeTurnEffort), reading reasoningEffort from thread/start|resume|fork, clearing stale effort on cross-model switches, and preventing same-turn appends or rejected turn/start responses from relabeling an already-running turn.
Upgraded sidecar log parsing to a two-pass per-turn index with explicit effortExplicit/committed/turnConfigApplied handling, atomic live-bubble scope resolution, and ETag inclusion of effort / lastModelSub so follow-up turns and legacy logs consistently display their true reasoning effort.
Upgrade Notes
Finish active tasks and run codex-ctl.mjs stop (and restart Antigravity once to reload the updated Sidecar panel) so the bridge restarts on the v1.4.1 daemon advertising capabilities.stallWatchdog: true.