Repository navigation
Stop telling an agent to send a Markdown fold as HTML - #1030
Merged
Merged
Conversation
A fold written the way the basecamp skill says, <details> and <summary> around Markdown, made the CLI warn that the content held HTML tags and to pass --format html to send it as written. That is the one thing the skill says not to do: --format html stores the post exactly as written, so every paragraph, table, list and fold in it renders touching. Agents that followed the warning, or the writing guide that said the same, posted with no space between blocks. The warning now leaves out raw HTML that holds only a fold's own tags, as it already leaves out mention markup. A fold written as HTML, a summary holding other tags, or HTML beside a fold still warns.
Contributor
There was a problem hiding this comment.
🟢 Approved
No active review issues are reported for the change exempting Markdown folds from the HTML-format warning.
No open issues 🎉
What changed in this PR
Stops Markdown folds from triggering the CLI warning that suggests --format html, aligning the warning with the fold-writing guidance introduced in #1024.
Changes:
- Excludes raw HTML containing only
detailsandsummarytags from warning detection. - Adds five test cases covering Markdown folds and HTML content that should still trigger warnings.
[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or rungh pr ready --undo.
Click "Ready for review" or rungh pr readyto reengage.
| File | Description |
|---|---|
internal/richtext/richtext.go |
Exempts fold-only markup from HTML warning detection. |
internal/commands/richtext_format_test.go |
Tests warning behavior for folds and mixed HTML content. |
Review effort: Balanced
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Scanning raw HTML for tag names let a comment or declaration inside a fold pass as fold markup. Match the whole raw HTML instead: every "<" must open <details>, <summary> or their closing tags, so a comment, an attribute or any other tag keeps the warning.
Copilot
AI
dismissed their stale review, a newer Copilot review was requested
November 12, 2026 12:51
jeremy
added a commit
that referenced
this pull request
Nov 14, 2026
* commit 'ef2b350fa4662d0060c2b5e90bcbe69e32e76dd0': Stop telling an agent to send a Markdown fold as HTML (#1030) Update nix flake and plugin version for v0.30.0 (#1042) Watch a connector in a terminal, and talk to its orchestrator (#1039) Lift the connector's cap on workers, and let a start set one (#1040) Never give the connector's monitor a timeout (#1035) Update nix flake and plugin version for v0.29.0 (#1037) Let assignments notify people with --notify (#1034) Update nix flake and plugin version for v0.28.1 Bind local config trust to approved settings Update nix flake and plugin version for v0.28.0 (#1029) Let the connector do the work itself, on the coding agent you choose (#1026) Build with Go 1.26.11 (#1027) Open a release PR for the version bump instead of pushing it to main (#1025) Update nix flake and plugin version for v0.27.0
jeremy
added a commit
that referenced
this pull request
Nov 23, 2026
…983764 * origin/main: (47 commits) Keep a person's client flag when it is false (#1055) Filter gauge listings by chosen projects (#1049) Say how to recover a broken connect.json, and keep reporting around it (#1053) Support schedule entry drafts, highlights, and join links (#1019) Let auth login reach a beta preview on a private network (#1054) Resubscribe the feed when its socket stays connected and stops delivering (#1056) Open pin-comment repair PRs as the org PR bot (#1052) Stop approving Dependabot PRs with GITHUB_TOKEN (#1048) Send mentions and files back bare when rich text is edited (#1046) Bump the basecamp/mcp toolkit, and title every MCP tool (#1045) Stop telling an agent to send a Markdown fold as HTML (#1030) Update nix flake and plugin version for v0.30.0 (#1042) Watch a connector in a terminal, and talk to its orchestrator (#1039) Lift the connector's cap on workers, and let a start set one (#1040) Never give the connector's monitor a timeout (#1035) Update nix flake and plugin version for v0.29.0 (#1037) Let assignments notify people with --notify (#1034) Update nix flake and plugin version for v0.28.1 Bind local config trust to approved settings Update nix flake and plugin version for v0.28.0 (#1029) ... # Conflicts: # API-COVERAGE.md # skills/basecamp/SKILL.md
jeremy
added a commit
that referenced
this pull request
Nov 23, 2026
…988117 * origin/main: (42 commits) Keep a person's client flag when it is false (#1055) Filter gauge listings by chosen projects (#1049) Say how to recover a broken connect.json, and keep reporting around it (#1053) Support schedule entry drafts, highlights, and join links (#1019) Let auth login reach a beta preview on a private network (#1054) Resubscribe the feed when its socket stays connected and stops delivering (#1056) Open pin-comment repair PRs as the org PR bot (#1052) Stop approving Dependabot PRs with GITHUB_TOKEN (#1048) Send mentions and files back bare when rich text is edited (#1046) Bump the basecamp/mcp toolkit, and title every MCP tool (#1045) Stop telling an agent to send a Markdown fold as HTML (#1030) Update nix flake and plugin version for v0.30.0 (#1042) Watch a connector in a terminal, and talk to its orchestrator (#1039) Lift the connector's cap on workers, and let a start set one (#1040) Never give the connector's monitor a timeout (#1035) Update nix flake and plugin version for v0.29.0 (#1037) Let assignments notify people with --notify (#1034) Update nix flake and plugin version for v0.28.1 Bind local config trust to approved settings Update nix flake and plugin version for v0.28.0 (#1029) ... # Conflicts: # API-COVERAGE.md
jeremy
added a commit
that referenced
this pull request
Nov 24, 2026
…989271 * origin/main: (45 commits) Keep a person's client flag when it is false (#1055) Filter gauge listings by chosen projects (#1049) Say how to recover a broken connect.json, and keep reporting around it (#1053) Support schedule entry drafts, highlights, and join links (#1019) Let auth login reach a beta preview on a private network (#1054) Resubscribe the feed when its socket stays connected and stops delivering (#1056) Open pin-comment repair PRs as the org PR bot (#1052) Stop approving Dependabot PRs with GITHUB_TOKEN (#1048) Send mentions and files back bare when rich text is edited (#1046) Bump the basecamp/mcp toolkit, and title every MCP tool (#1045) Stop telling an agent to send a Markdown fold as HTML (#1030) Update nix flake and plugin version for v0.30.0 (#1042) Watch a connector in a terminal, and talk to its orchestrator (#1039) Lift the connector's cap on workers, and let a start set one (#1040) Never give the connector's monitor a timeout (#1035) Update nix flake and plugin version for v0.29.0 (#1037) Let assignments notify people with --notify (#1034) Update nix flake and plugin version for v0.28.1 Bind local config trust to approved settings Update nix flake and plugin version for v0.28.0 (#1029) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A fold written in Markdown no longer makes the CLI suggest
--format html.Since #1024, the basecamp skill says to write a fold as
<details><summary>…</summary>and</details>around Markdown. Posting one prints:--format htmlis what the skill says not to use for a fold. It stores the post exactly as written, so every paragraph, table, list and fold in it shows touching the next. The coworker writing guide said the same thing until basecamp/coworker#330. Agent posts with folds kept coming out as hand-written HTML with no space between blocks, like the one Jorge flagged.What changes:
HasRichTextHTMLleaves out raw HTML made only of bare<details>and<summary>tags, open or closed, with text between them. It already leaves out mention and attachment markup the same way.Tests: seven new cases in
TestRichTextHTMLInMarkdownWarns. The two fold cases fail with therichtext.gochange reverted, and the comment case fails on the first version of the check; all pass now.go test ./internal/richtext/ ./internal/commands/passes locally.For a person to review and merge.