fix(modes): corrected setHookWidget to preserve undefined/null values

- Corrected setHookWidget to preserve undefined/null values instead of converting them to string literals.

Fixes #496
This commit is contained in:
can1357
2026-03-22 01:39:05 +01:00
parent 43977259cf
commit 1bf48ca208
@@ -253,7 +253,7 @@ export class ExtensionUiController {
}
setHookWidget(key: string, content: unknown): void {
this.ctx.statusLine.setHookStatus(key, String(content));
this.ctx.statusLine.setHookStatus(key, content === undefined || content === null ? undefined : String(content));
this.ctx.ui.requestRender();
}