Skip to content

Stop telling an agent to send a Markdown fold as HTML - #1030

Merged
jorgemanrubia merged 2 commits into
mainfrom
fold-needs-no-html-warning
Nov 13, 2026
Merged

jorgemanrubia merged 2 commits into
mainfrom
fold-needs-no-html-warning

Conversation

@jorgemanrubia

@jorgemanrubia jorgemanrubia commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

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:

Warning: content contains HTML tags and was read as Markdown, the default. Supported tags are kept and the Markdown around them is converted. To send HTML without Markdown conversion, pass --format html.

--format html is 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:

  • HasRichTextHTML leaves 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.
  • The warning still fires for a fold written wholly as HTML, a summary holding other tags, HTML beside a fold, a comment inside a fold, and a fold tag with an attribute.

Tests: seven new cases in TestRichTextHTMLInMarkdownWarns. The two fold cases fail with the richtext.go change 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.

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.
@jorgemanrubia
jorgemanrubia requested a review from a team as a code owner November 12, 2026 12:41
Copilot AI balanced review requested due to automatic review settings November 12, 2026 12:41
@github-actions github-actions Bot added commands CLI command implementations tests Tests (unit and e2e) labels Nov 12, 2026
Copilot AI previously approved these changes Nov 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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 details and summary tags 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 run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to 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

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread internal/richtext/richtext.go Resolved
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 balanced review requested due to automatic review settings November 12, 2026 12:51
Copilot AI dismissed their stale review, a newer Copilot review was requested November 12, 2026 12:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues are reported for the change intended to prevent misleading HTML-format warnings for Markdown folds.

No open issues 🎉

Review effort: Balanced

@jorgemanrubia
jorgemanrubia merged commit ef2b350 into main Nov 13, 2026
32 checks passed
@jorgemanrubia
jorgemanrubia deleted the fold-needs-no-html-warning branch November 13, 2026 23:53
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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands CLI command implementations tests Tests (unit and e2e)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants