fix(omp): follow up source-preservation hardening for #1365 - #1392
Merged
Conversation
Contributor
📝 WalkthroughWalkthroughThe PR adds OMP model capability export, native OpenAI Responses selection, source-preserving OMP YAML mutations, fragment-scoped integration drift checks, and structured chat-completions request-size error responses. ChangesOMP export and model capabilities
OMP source-preserving integration lifecycle
Chat-completions request limits
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant ManagementRows
participant OMPConfigBuilder
participant IntegrationWriter
participant OMPYamlFile
ManagementRows->>OMPConfigBuilder: provide model modalities and reasoning metadata
OMPConfigBuilder->>IntegrationWriter: build managed OMP provider fragment
IntegrationWriter->>OMPYamlFile: apply source-preserving upsert or removal
OMPYamlFile-->>IntegrationWriter: patched source or unsafe refusal
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
|
✅ Deterministic PR hygiene checks passed. |
Wibias
force-pushed
the
maint/pr-1365-coderabbit-inline-comment
branch
from
August 10, 2026 02:48
a4ab7b9 to
d6e9ecd
Compare
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up / maintainer superset for #1365.
This branch is based directly on #1365 head
a328f438eca6810f068e4c30f47e3d5547b180fcand carries the full #1365 change set plus the remaining validated CodeRabbit source-preservation fix.Additional fix over #1365
CodeRabbit correctly found that nested inline comments inside the managed
providers.opencodexmapping were not rejected. YAML parsing drops those comments from the semantic fingerprint, so a later stale refresh or disable could replace/remove the managed source range and silently delete user-owned inline comment text.The follow-up fix:
childEnd()fail closed when a deeper managed line contains an inline commentAdditional commits over #1365:
57cc6915b886b1310433c6fe070ae58aa58c9d36— reject nested inline comments before managed-range replacement/removala4ab7b97856f21bfd403b86f7dda59f79bf94dc6— add refresh and disable regressionsRelationship to #1365
#1365 has
maintainer_can_modify: false, so the validated fix could not be pushed to the contributor branch. This PR is therefore intentionally a superset, not an independent feature PR.Review notes
A full review of the #1365 changes found no additional code-level blocker beyond the inline-comment preservation hole. The OMP model-level
openai-responsesoverride and canonicalthinking.efforts/defaultLevelshape match current upstream OMP schema, routed models remain on Chat Completions, and the structured translator-budget 413 path is bounded and covered.Validation / gates
dev83dbe5de3bca9f1011a48ce7899a6c2501ccdde2.5 ahead, 0 behindwith the merge base exactly matching currentdev.d6e9ecd0c3917012814d90801162756278498068.Summary by CodeRabbit
New Features
Bug Fixes
Documentation