Repository navigation
fix(junie): import subagents without description and keep hook strictJsonOutput - #3892
Merged
Merged
Conversation
…JsonOutput Junie now documents `description` as optional for subagents, falling back to the first non-heading body paragraph truncated to 1,024 characters, and strips `.agent.md` as well as `.md` when deriving a name. Importing such an agent aborted the run; it now applies the same fallback. The paragraph extraction shared with Junie skills moves to a small util. Junie hooks also gained a per-hook `strictJsonOutput` flag. Add it as a canonical boolean field and pass it through the Junie converter so a round trip no longer drops it. Refs #3888 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
Address review: a YAML null or blank `description` now takes the body fallback instead of aborting or importing empty, the one-line skill wrapper is inlined, and the `continueOnBlock` docs name CodeBuddy Code. Refs #3888 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…nie-upstream # Conflicts: # src/generated/docs-content.ts
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.
Refs #3888
Summary
Follows two of the JetBrains Junie upstream changes listed in #3888.
descriptionis now optional inJunieSubagentFrontmatterSchema, matching the subagents docs. On import, a missing description takes Junie's own fallback: the first non-heading body paragraph, truncated to 1,024 characters. A file with no paragraph imports with no description, which the canonical subagent schema already allows. Before this change, importing such an agent aborted the run. Whennameis missing, the name comes from the file name without.agent.mdor.md, sook.agent.mdnow imports asok, as in Junie.strictJsonOutputis a new canonical boolean hook field, passed through as-is for Junie (~/.junie/config.json). Before, a round trip dropped it (hooks docs). It is documented indocs/reference/file-formats.md.src/utils/markdown-paragraph.ts, so subagents use the same code. Skills behave the same as before.Remaining items in #3888 (not in this PR)
skills/) and for Junie commands. This changes processor discovery and the output paths of nested files, so it needs a design decision.-,[a-z0-9][a-z0-9_-]*).Tests
.agent.mdname stripping,strictJsonOutputin both directions, and the new util.pnpm cicheckpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4