Skip to content

Fix Kiro authoring JSON completion parity and fixture docs#614

Merged
avifenesh merged 2 commits intomainfrom
feature/address-kiro-followups-612-613
Mar 2, 2026
Merged

Fix Kiro authoring JSON completion parity and fixture docs#614
avifenesh merged 2 commits intomainfrom
feature/address-kiro-followups-612-613

Conversation

@avifenesh
Copy link
Collaborator

Summary

  • treat FileType::KiroAgent as a JSON family for completion insert text
  • add regression tests proving Kiro agent key/value completions insert valid JSON syntax
  • clarify fixture docs that KiroMcp detection only targets .kiro/settings/mcp.json

Validation

  • cargo fmt --check --all
  • cargo test -p agnix-core authoring::tests::
  • cargo test -p agnix-core --lib

Closes #612
Closes #613

Copilot AI review requested due to automatic review settings March 2, 2026 16:38
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the authoring experience for KiroAgent files by ensuring their proper treatment as JSON for code completion, which includes generating valid JSON syntax for both keys and values. Additionally, it improves the clarity of fixture documentation regarding KiroMcp file type detection.

Highlights

  • KiroAgent JSON Completion: Ensured FileType::KiroAgent is correctly identified as part of the JSON family, enabling proper JSON completion behavior.
  • KiroAgent Completion Tests: Added new regression tests to validate that KiroAgent key/value completions generate syntactically correct JSON.
  • Fixture Documentation: Clarified the documentation for fixtures, specifically noting that KiroMcp detection is limited to .kiro/settings/mcp.json.
Changelog
  • crates/agnix-core/src/authoring.rs
    • Included FileType::KiroAgent in the is_json_family check.
    • Refactored test_completion_kiro_agent_value_context to use JSON content and verify JSON-quoted insert text for values.
    • Introduced test_completion_kiro_agent_key_context_uses_json_key_insert to confirm JSON syntax for key insertions.
  • tests/fixtures/README.md
    • Added a note specifying that KiroMcp file-type detection is restricted to .kiro/settings/mcp.json.
Activity
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns Kiro agent authoring completions with JSON syntax and clarifies fixture documentation around Kiro MCP detection, addressing completion parity and fixture-reader confusion.

Changes:

  • Treat FileType::KiroAgent as a JSON family for completion insert text (quoted keys/values).
  • Add regression tests asserting Kiro agent key/value completions insert valid JSON syntax.
  • Update fixture README to clarify that KiroMcp detection only targets .kiro/settings/mcp.json.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/fixtures/README.md Clarifies that only .kiro/settings/mcp.json is detected as KiroMcp; other JSON files in that folder are fixture artifacts.
crates/agnix-core/src/authoring.rs Updates JSON-family detection to include KiroAgent and adds tests validating JSON-formatted completion insert text for Kiro agent files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request correctly updates the is_json_family function to include FileType::KiroAgent, ensuring proper JSON completion behavior for Kiro agents. The accompanying tests validate both value and key completion, confirming that JSON syntax is correctly applied. Additionally, the README.md update provides valuable clarification regarding Kiro MCP file-type detection, improving documentation for fixture artifacts.

@avifenesh avifenesh merged commit 8f728df into main Mar 2, 2026
11 checks passed
@avifenesh avifenesh deleted the feature/address-kiro-followups-612-613 branch March 2, 2026 16:50
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.

Authoring: KiroAgent completions should emit JSON insert text Fixtures README: clarify Kiro MCP invalid examples are not detector targets

2 participants