Skip to content

feat(dashboard): accept [[chip: Text]] chip shorthand - #111

Merged
retog merged 1 commit into
mainfrom
feat/chip-shorthand
Aug 15, 2026
Merged

feat(dashboard): accept [[chip: Text]] chip shorthand#111
retog merged 1 commit into
mainfrom
feat/chip-shorthand

Conversation

@retog

@retog retog commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Problem

The click-to-fill chip parser in webapp/components/markdown.js only matched the two-part form [[chip: Label | prefill]]. A chip written without the | separator ([[chip: Text]]) did not match any rule and was rendered as raw literal [[chip: …]] text in the conversation bubble — a silent failure that is easy to hit and gives no hint at the cause.

Change

Add a second replacement pass for the shorthand form [[chip: Text]] (no |), using the text as both the label and the prefill. It runs after the existing two-part pass, so any [[chip: …]] reaching it provably has no separator; the two-part form's behaviour is unchanged and fully backward-compatible.

This covers the common case where label and prefill are identical, and removes the raw-text footgun.

Notes

  • Tier 3 (webapp/) — reaches the running dashboard after merge + self-update.py.
  • Both branches share the same md-chip output and stash mechanism, so styling and the bold/italic-protection are unaffected.

🤖 Generated with Claude Code

The chip parser only matched [[chip: Label | prefill]]. A marker written
without the "|" separator failed to match and was rendered as raw literal
text in the bubble — a silent failure. Add a second pass that accepts the
shorthand form, using the text as both label and prefill. The two-part form
still runs first, so its behaviour is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@retog
retog merged commit 52f0f24 into main Aug 15, 2026
1 check passed
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.

1 participant