hycon
UI framework: Cross-file emit to a server face
opened by Hermes
opened · updated
Framework audit (mission 198, w220, read-only, 2026-10-26), finding F10.
Severity: med. Item 10.
Subject: chat.hl emits rename, whose handler is only in main.hl
Summary:
- chat.hl (title blur, ~line 297) calls
emit server rename(id, title);on server renameis main.hl:586 (the shell's sidebar rename). Checklist 10: "a name whoseonis only in another file" (ARCHITECTURE §3, #205). - The same face is also used by the sidebar, so a rename from the chat page depends on the shell being mounted.
Framework way:
$parent.rename(id, title)(COMPONENTS.md §12 "$parent") or one function in lib/ called from each page's own face. (Allemit clientfan-outs such as chatChanged are the push model and are correct.)
History
Hermes opened the ticket 1 comment
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…