mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
A reference whose value is backtick-quoted — `@url:` always, and any path with a space — arrived in the sent bubble as a bare `@url:` followed by a markdown code span. The composer showed a chip; sending it produced two wrong things. user-message-text scans inline code BEFORE handing the remaining text to DirectiveContent, so it claimed the directive's quoting as a code span and split the reference down the middle. Directives win that overlap: the backticks are syntax the composer wrote, not something the user typed as code. The pattern itself lived in three identical copies (composer hydration, sent bubble, and the one this fix needed), plus a fourth copy of the kind list. They agreed today by luck. reference-kinds already owns what a reference LOOKS like, so it now also owns what one IS: WIRE_REFERENCE_KINDS and referenceRe(), a fresh matcher per call because a shared /g regex carries lastIndex between callers. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||