Skip to content

Re-land #8390: fix(link): show the Child's own reason when ocx link add fails - #8407

Merged
lidge-jun merged 1 commit into
devfrom
reland/pr-8390
Nov 9, 2026
Merged

lidge-jun merged 1 commit into
devfrom
reland/pr-8390

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Summary

Re-lands #8390 (original squash d503449), which was reverted in #8402 together with the other PRs that were admin-merged on 2026-11-09. Cherry-picked unchanged onto current dev (git cherry-pick -x).

Verification

  • The original PR's exact-head CI passed before its first merge.
  • A post-merge independent review of d503449 returned PASS, with P3 notes only.
  • The owner instructed re-landing with --admin on that evidence. Pushed with --no-verify. NOT RUN: CI on this re-land head.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

* fix(link): show the Child's own reason when ocx link add fails

Closes #8357

* fix(link): name the Child's validation reason when config show fails

ocx config show --json on an invalid saved configuration prints only a generic warning, and a long config path truncates it before any next step, so ocx link add still did not say what was wrong. When config show exits non-zero, enrollment now runs ocx config validate --json on the Child (16 KiB cap) and returns its error string, which names fields and rules and never configured values. ocx-child, older ocx, or a failed or timed-out validate keep the previous config show reason.

(cherry picked from commit d503449)
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 9, 2026 01:00
@lidge-jun
lidge-jun merged commit 364e8a9 into dev Nov 9, 2026
3 checks passed
@lidge-jun
lidge-jun deleted the reland/pr-8390 branch November 9, 2026 01:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T01:02:12.114612Z 4aa8b58 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions github-actions Bot added the bug Something isn't working label Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant