Skip to content

test(config-markdown): lock in unquoted-colon-in-description handling#28085

Draft
PeterPonyu wants to merge 1 commit into
anomalyco:devfrom
PeterPonyu:fix/opencode-25315-subagent-description-colon
Draft

test(config-markdown): lock in unquoted-colon-in-description handling#28085
PeterPonyu wants to merge 1 commit into
anomalyco:devfrom
PeterPonyu:fix/opencode-25315-subagent-description-colon

Conversation

@PeterPonyu
Copy link
Copy Markdown

@PeterPonyu PeterPonyu commented May 18, 2026

Issue for this PR

Closes #25315

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The bug reported in #25315 (v1.14.30: hidden subagents leak into the web UI when their frontmatter description contains an unquoted colon, e.g. description: Reviews changes: returns a verdict.) appears already resolved on current dev. gray-matter parses the multi-token value correctly and mode, hidden, description, and the body are all preserved.

This PR is test-only — no source changes. It adds a fixture test/config/fixtures/subagent-colon-description.md and 5 assertions in test/config/markdown.test.ts so the correct parsing is locked in against future regressions.

How did you verify your code works?

cd packages/opencode && bun test test/config/markdown.test.ts — 42 pass, 0 fail. The 5 new assertions verify mode: subagent, hidden: true, the full unquoted-colon description string, and the body content are all parsed correctly from the fixture.

Screenshots / recordings

N/A — no UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

…anomalyco#25315)

Adds a regression fixture and 5 assertions covering the scenario from
issue anomalyco#25315: a markdown agent file whose frontmatter contains
'description: Reviews changes: returns a verdict.' (unquoted colon).

Confirmed behavior on current upstream/dev: gray-matter parses the
multi-token value correctly, mode/hidden/description are all preserved,
and the body is extracted separately. Test passes with 5/5 assertions.

The bug as reported in v1.14.30 appears already resolved on the current
default branch — this PR locks the correct behavior in so future
regressions don't recur.
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on the search results, I found one potentially related PR:

Related PR:

The current PR (#28085) is test-only and locks in the fix for the unquoted-colon-in-description bug. PR #28086 seems to be testing related frontmatter description propagation behavior, so they may be part of the same feature/fix effort.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Hidden subagents can appear in web UI when their description contains a colon

1 participant