Commit Graph
3 Commits
Author SHA1 Message Date
FredApps 964a47b51c Reconcile history, gradient, type safety and UI validation behavior 2026-10-29 07:30:56 +01:00
Fabio LussiandClaude Opus 5.5 3c513dabeb control: use document.undo as the cross-namespace hint example
history.undo and history.redo are now registered commands (#3786), so
the test needs an id that stays unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:29:20 +02:00
Fabio LussiandClaude Opus 5.5 c3fc37234c control: suggest near matches for unknown command ids and methods
An unknown id passed to engine.execute (or any path that ends in
EngineError::UnknownCommand) now lists up to three registered ids
close to it: typos, case, a truncated id, the same last segment in
another namespace (history.undo -> edit.undo), plus the documented
engine.commands -> command.list mapping. The headless server and the
desktop control server also say when a protocol method is sent through
engine.execute, or an engine command id is sent as a method, and
suggest near method names. Reuses the spell checker's edit distance.

Fixes #3674

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 22:48:57 +02:00