Repository navigation
fix: follow-ups from the 2026-11-30 issue run (convert preserveUnowned*, fold warning for localRoot, OpenCode V2 stderr docs) - #4034
Merged
Conversation
- convert honours preserveUnownedMcpServers and preserveUnownedHooks, as generate does. - A fold target whose root file holds an appended localRoot body or a simulated section no longer counts as folding nothing, so a later target that overwrites it gets the fold warning. - Qualify the OpenCode V2 postToolUse stderr notes for the Bun Shell fallback. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…ulated-section flag Address review of #4034: - foldedNothing now treats an appended localRoot body as lost only when the file's last writer does not carry it (pi,agentsmd stays quiet). - No fold target has additionalConventions, so the simulated-section half is removed; RulesProcessor exposes getAppendedLocalRootBody() instead. - The fold warning mentions an appended localRoot body. - Document which rulesync.jsonc options convert honours. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
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.
Closes #4031
Summary
Resolves the three follow-ups left from the 2026-11-30 issue run.
converthonourspreserveUnownedMcpServers/preserveUnownedHooks.rulesync convertpassed neither option, so converting into an existing.codex/config.tomlreplaced the wholemcp_serverstable and converting hooks replaced hand-written handlers even with the options on.convertnow passes both, as it already passespreserveUnmanagedRuleContent.docs/guide/configuration.mdand the convert section ofdocs/reference/cli-commands.mdsay so.localRootbody.foldedNothingtreated a fold target that resolved only the root andlocalRootrules as having folded nothing, so its file was handed to the selection watch, which stays quiet unless some target narrowed withinclude. But a fold target appends thelocalRootbody to the root file (append-to-root), and a later writer that keeps that body in its own local file drops it.RulesProcessornow records the body it appended (getAppendedLocalRootBody()).foldedNothingis false when the file's last writer does not carry that body, so the fold-root overwrite warning names the loss and the reorder that fixes it. The warning text now mentions "(and any appended localRoot body)". Example:pi,rovodevwith a root rule and alocalRootrule. rovodev writes the local body toAGENTS.local.mdand winsAGENTS.md, so pi loses the local body.mainprinted nothing; now the fold warning fires.pi,agentsmdstays quiet, since agentsmd appends the same body (new e2e test).postToolUsestderr docs. The 1 MiB cap and the 1 s background-output cut-off hold on the Bun CLI (exec) path only. On the Bun Shell fallback, stderr is not capped, and a timed-out command writes its stderr only when it eventually ends. The note indocs/reference/file-formats.mdand the generator comment now say so (checked against__rulesyncRunCommandinopencode-style-generator.ts).Design decisions
converthonours the config options rather than documenting that it ignores them:convertwrites into the same destination filesgeneratedoes, and it already honourspreserveUnmanagedRuleContent, so following the same keys is the least surprising choice. Both options stay off by default, so default output is unchanged.codexcli, butcodexcliis not acollisionPolicy: "fold"target, sofoldedNothingis never consulted for it. The fix and the test use a real fold target (pi).collisionPolicy: "fold"target hasadditionalConventions, so a fold target never adds one. That part is not implemented, which keeps the change to what can actually happen.mainprinted when only the winner's own TOON list differed is now silent) is a behavior note, not a change request; nothing changes for it.🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4