Repository navigation
ci: harden desktop follow-up verification - #11462
Conversation
Keep merged-PR close events from cancelling exact-SHA macOS evidence and retry transient Electron postinstall downloads in the Linux package smoke. Add workflow contract coverage for both PR #11447 failures.
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7bd691ba13
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 176c4e351b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
omi/backend/routers/desktop_proactivity.py
Line 337 in 0a9bfb8
When both OMI_LLM_GATEWAY_URL and OPENAI_API_KEY are absent, _proactive_provider_request raises the new 503 after _consume_quota has already reserved a request. Because this call is outside the try and every _release_quota path, repeated requests receive no model response but still exhaust the user's daily allowance; select the provider before reserving quota or release the reservation on this failure.
omi/backend/routers/desktop_proactivity.py
Lines 63 to 66 in 0a9bfb8
Whenever OMI_LLM_GATEWAY_URL is absent, this branch changes the request from the governed gateway lane to direct OpenAI without calling the shared fallback emitter; the returned envelope also continues to report fallback_class="unknown". In the beta configuration this change targets, operators therefore cannot distinguish direct-provider traffic, cost, or degraded routing from normal gateway service, despite the repository contract requiring provider-changing branches to emit record_fallback.
AGENTS.md reference: AGENTS.md:L91-L91
For every direct-provider reasoning request, this removes the cache_key supplied by ContextProactivityEngine, even though backend/utils/llm/model_config.py::supports_prompt_cache explicitly identifies prompt_cache_key as supported by GPT-5 models and the repository's live integration tests verify that OpenAI accepts it. Only the gateway-specific breakpoint/options need sanitizing; dropping the key prevents repeated bucket analyses from being routed to the same OpenAI prefix cache, increasing latency and token cost precisely while this fallback is active.
The direct fallback replaces only the model name and therefore omits the provider options that define these lanes: test_desktop_proactive_lanes_are_pinned_and_structured requires reasoning_effort=minimal for extraction and low for reasoning, and the gateway executor normally copies those values into the OpenAI request. In every no-gateway beta request this instead uses the provider default, changing the latency, cost, and reasoning behavior of both operations from the configuration the feature was tested against; include the authoritative per-operation effort in the direct payload.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
What changed and why
Prevent a merged PR's
closedbookkeeping run from cancelling its still-running exact-SHA macOS verifier, and retry the Linux Electron package install when its network-only postinstall download transiently disconnects. These are the two CI failures observed on merged PR #11447.Product invariants affected
none
How it was verified
python3 .github/scripts/test_desktop_swift_ci_contract.py— 26 passedpython3 .github/scripts/test_desktop_windows_ci_contract.py— 1 passedactionlint .github/workflows/desktop-swift-ci.yml .github/workflows/desktop-windows-ci.yml— passedgit diff --check— passedTests
.github/scripts/test_desktop_swift_ci_contract.pynow pins the close-event concurrency boundary that would have caught the cancelled verifier/failed aggregate..github/scripts/test_desktop_windows_ci_contract.pypins bounded retry plus fail-closed exhaustion for the Electron postinstall download.Failure class (fixes)
Failure-Class: none
New guards (only when adding a check or ratchet)
Both guards cite merged PR #11447. They are workflow-specific because one protects GitHub event/concurrency semantics and the other protects Electron's package-download boundary; neither is a product-runtime primitive.
Scoped cleanups
The development backend deploy after #11447 is separately blocked by one missing live Firestore composite index; this PR does not mix index provisioning into CI reliability fixes.