Skip to content

fix: use source language in context code fences#236

Merged
ScriptedAlchemy merged 2 commits into
ScriptedAlchemy:masterfrom
spa5k:fix/context-code-fence-language
Jul 2, 2026
Merged

fix: use source language in context code fences#236
ScriptedAlchemy merged 2 commits into
ScriptedAlchemy:masterfrom
spa5k:fix/context-code-fence-language

Conversation

@spa5k

@spa5k spa5k commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • derive Markdown code fence language tags from each context code block's file extension
  • keep recognized Rust fences while labeling TypeScript and Python snippets correctly
  • default unknown extensions to an unlabeled fence

Fixes #143

Tests

  • cargo test context::formatter::tests::
  • cargo test --test graph_suite test_format_context_markdown

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: abad447

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy ScriptedAlchemy merged commit 7b8f1ec into ScriptedAlchemy:master Jul 2, 2026
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.

Code-block fences hardcoded to `rust in tracedecay_context output (mislabels all non-Rust languages)

2 participants