Skip to content

Conversation

@continue
Copy link
Contributor

@continue continue bot commented Nov 27, 2025

Description

This PR fixes the formatting of Mustache variable syntax in the autocomplete template documentation for consistency. The variables were documented correctly (including the language parameter added in PR #1853), but had extra spaces in the Mustache syntax.

Changes

  • Fixed formatting in docs/reference/json-reference.mdx: changed {{{ prefix }}} to {{{prefix}}} for consistency with Handlebars/Mustache best practices

Context

PR #1853 added the language parameter to autocomplete templates. Upon review, I found that:

  1. The newer documentation in docs/customize/model-roles/autocomplete.mdx already correctly documents all template variables including language
  2. The legacy JSON reference documentation listed all variables but had inconsistent formatting with extra spaces in the Mustache syntax

Checklist

  • Documentation changes only
  • No code changes required
  • Consistent with existing documentation style

This agent session was co-authored by nate and Continue.


Summary by cubic

Fixed Mustache variable formatting in the autocomplete template reference by removing spaces inside variables (e.g., {{{ prefix }}} -> {{{prefix}}}). Aligns the legacy JSON reference with the newer autocomplete docs, including the language variable.

Written for commit 0bf2fc0. Summary will update automatically on new commits.

Remove extra spaces in Mustache variable syntax for consistency.
The documentation already listed all the correct variables including
the 'language' parameter added in PR #1853.

Co-authored-by: nate <nate@continue.dev>
@continue continue bot requested a review from a team as a code owner November 27, 2025 16:20
@continue continue bot requested review from Patrick-Erichsen and removed request for a team November 27, 2025 16:20
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 27, 2025
@continue
Copy link
Contributor Author

continue bot commented Nov 27, 2025

Summary of Documentation Review

I reviewed PR #1853 which added the language parameter to autocomplete templates. Here's what I found:

Current State

Main documentation is already up-to-date: docs/customize/model-roles/autocomplete.mdx correctly documents all template variables including language

Legacy JSON reference is accurate: docs/reference/json-reference.mdx lists all the correct variables including language

Minor Fix Applied

🔧 Fixed formatting inconsistency in the JSON reference doc by removing extra spaces in Mustache variable syntax ({{{ prefix }}}{{{prefix}}})

Conclusion

The documentation for the language parameter added in PR #1853 is already complete and accurate. This PR just improves formatting consistency.

@continue
Copy link
Contributor Author

continue bot commented Nov 27, 2025

Reviewed for AGENTS.md updates. This PR contains only documentation formatting changes (Mustache template syntax) with no impact on build steps, scripts, dependencies, or workflows. No updates to AGENTS.md are needed.

@continue
Copy link
Contributor Author

continue bot commented Nov 27, 2025

No additional test coverage needed - this is a documentation-only change that fixes Mustache variable formatting. Documentation changes are validated through human review rather than automated tests.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@continue
Copy link
Contributor Author

continue bot commented Nov 27, 2025

✅ PR is ready for review once CI checks complete.

This is a documentation-only change that fixes formatting consistency in Mustache variable syntax. No functional changes, no code changes - just removing extra spaces for consistency with Handlebars best practices.

The review from the automated tool found no issues.

@continue
Copy link
Contributor Author

continue bot commented Nov 27, 2025

Documentation Updates

I've added a commit to fix the remaining Mustache template variable formatting issues across the documentation:

Files Updated:

  1. docs/reference.mdx (line 142) - Fixed autocomplete template variables formatting
  2. docs/customize/model-providers/more/morph.mdx (lines 26, 41) - Fixed apply template variables for Morph provider
  3. docs/customize/model-providers/more/relace.mdx (line 19) - Fixed apply template variable for Relace provider

Changes Made:

  • Removed extra spaces inside Mustache/Handlebars template variables
  • Changed {{{ prefix }}}{{{prefix}}} (and similar for other variables)
  • Ensures consistency with the formatting in docs/customize/model-roles/autocomplete.mdx and docs/customize/model-roles/edit.mdx

All documentation now follows Handlebars/Mustache best practices with no spaces inside the triple braces.

The test failure in TUIChat.slashCommands.test.tsx appears to be a flaky
test unrelated to this documentation-only change. This empty commit
triggers a CI re-run to verify.

Co-authored-by: nate <nate@continue.dev>
@continue
Copy link
Contributor Author

continue bot commented Nov 27, 2025

CI Failure Analysis

The CI failure is not related to this documentation change. Investigation shows:

Failed Test

TUIChat - Slash Commands Tests > filters slash commands when typing /log [REMOTE MODE] > works in remote mode

Error: Test expected UI to contain /exi but the screen hadn't updated yet (timing/flaky test issue)

Evidence This Is Pre-Existing

  • This is a documentation-only change (formatting fix in .mdx file)
  • CLI PR Checks are failing frequently on main branch as well
  • The flaky test is in src/ui/__tests__/TUIChat.slashCommands.test.tsx
  • Similar timing-related test failures seen in recent main branch runs

Action Taken

  • Triggered CI re-run with empty commit to verify if it's intermittent
  • This change cannot affect test behavior (documentation only)

If the test continues to fail, this indicates a flaky test that needs to be fixed separately from this documentation PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant