Skip to content

feat(snippet)#173

Merged
Kewton merged 1 commit intodevelopfrom
feature/issue-168-snippet-inline
Mar 25, 2026
Merged

feat(snippet)#173
Kewton merged 1 commit intodevelopfrom
feature/issue-168-snippet-inline

Conversation

@Kewton
Copy link
Copy Markdown
Owner

@Kewton Kewton commented Mar 25, 2026

Closes # issue/before-changeにスニペット付与 (#168)
🤖 Generated with Claude Code

…#168)

Add inline snippet display for issue and before-change commands, enabling
users to see document summaries without reading each file individually.

Changes:
- Add snippet: Option<String> to BeforeChangeFinding and IssueDocumentEntry
- Add --with-snippet, --snippet-lines, --snippet-chars CLI options
- Add enrich_before_change_with_snippets() and enrich_issue_documents_with_snippets()
- Unify existing enrich functions to convert empty strings to None
- Update human/llm/json formatters for both commands
- issue JSON: --with-snippet off = string[] (backward compat), on = object[]
- Tantivy reader failure falls back to snippet: None (non-fatal)
- Add 14 new tests (formatter + CLI args)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Kewton Kewton merged commit 78a3435 into develop Mar 25, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant