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
{{ message }}
Repository navigation
Managed config adoption: comment every line of the repos.yaml note, and fix the probe comment #10097
Follow-up from #9986 (fixes #9517). I asked the AI to re-review #9986 after main was merged into it, and it found two issues. By then the PR was in the merge queue, so they weren't fixed there.
1. Multi-line decode errors leave uncommented lines in the suggested repos.yaml block
In internal/repos/managed_config_adoption.go, the combined-block note is built as # note: repos.yaml cannot hold these settings as written: %v, with only one #. But decodeManagedConfig joins field errors with errors.Join (internal/config/managed.go), and yaml.v3 TypeErrors print across several lines. Every line after the first ends up uncommented inside the snippet an operator is told to copy into repos.yaml.
For an overlay with tracker.github.allowed_targetz and create_issues, the note renders as:
# note: repos.yaml cannot hold these settings as written: line 1: tracker: yaml: unmarshal errors:
line 2: field allowed_targetz not found in type config.GitHubTrackingConfig
line 4: unknown field "create_issues": create_issues is no longer supported: …
This is the same leak #9986 closed for dropped keys with strconv.Quote. Keeping create_issues as a key-name failure makes multi-error notes common.
Fix: split the error on newlines and prefix every line with # . Add a test that every note line in the proposed block is commented, like the dropped-key test.
2. A comment overstates what the probe does
The comment above the combined-block probe says every pair was probed on its own. There's no per-pair probe, so the comment should be reworded.
The main problem here, where only the first line of a multi-line strict-decode error gets the # prefix in the suggested repos.yaml snippet, is already tracked in #10091. That issue proposes the same fix: comment every line of the note and add a test that checks every note line is commented. Please follow that issue for the fix.
The second item, the comment above the combined-block probe that claims each pair was probed on its own, is a small rewording in the same block of the same function. It is worth folding into the change for #10091, so it isn't lost when this issue closes. If you'd rather track it separately, reopen this issue or file a new one for just that comment.
Activity
fullsend-ai-triage commentedon Dec 3, 2026
🤖 Finished Triage · ✅ Success · Started 9:07 PM UTC · Completed 9:09 PM UTC
Commit:
a94db02· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.15
fullsend-ai-triage commentedon Dec 3, 2026
The main problem here, where only the first line of a multi-line strict-decode error gets the
#prefix in the suggested repos.yaml snippet, is already tracked in #10091. That issue proposes the same fix: comment every line of the note and add a test that checks every note line is commented. Please follow that issue for the fix.The second item, the comment above the combined-block probe that claims each pair was probed on its own, is a small rewording in the same block of the same function. It is worth folding into the change for #10091, so it isn't lost when this issue closes. If you'd rather track it separately, reopen this issue or file a new one for just that comment.