mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
Three defects in the commit engine, all from treating the scope as loose text: Tab-descend rebuilt the token as a bare `@apps/desktop/`, silently widening an explicit @folder: browse back to files and forcing the committed chip to re-guess its kind from a trailing slash. It now carries the scope down. Backspace only handled a path, so at `@folder:` it fell through to character deletion and nibbled back out through the directive syntax one key at a time. It now drops the scope as one unit, mirroring Tab's one-key descent. The rebuild fallback sliced tokenLength off the END of the draft, which assumed the trigger was the last thing in the editor — a pick made mid-message chopped the trailing prose off and stranded a partial `folder:` in front of the chip. rebuildAroundCaret splits around the caret instead, and is shared with the ascend path and the edit composer rather than hand-rolled three times. Also drop the chip's auto-inserted trailing space when the caret already has whitespace after it, so a mid-sentence pick doesn't leave a double space. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||