fzt: identity label ('personal') appears after first keystroke instead of on load #1

Closed
opened 2026-04-17 19:04:45 -07:00 by nelsong6 · 1 comment
nelsong6 commented 2026-04-17 19:04:45 -07:00 (Migrated from github.com)

Repo affected: fzt-terminal / fzt-browser (but those repos have issues disabled; filed here).

Symptom

On initial render of the fzt terminal on homepage.romaine.life, the identity label personal is not shown at the top of the bordered box. As soon as the user types their first character, personal suddenly appears.

Expected

personal should render from first frame when the user is signed in — it's a static identity display, not a search-state display.

Fix direction

Likely in fzt-terminal's rendering path or fzt core state — State.IdentityLabel is being gated on a search-activity flag rather than IdentityLabel != "". Check drawBorderTopWithTitle in fzt-terminal/tui and the equivalent WASM/DOM rendering in fzt-browser.

**Repo affected:** fzt-terminal / fzt-browser (but those repos have issues disabled; filed here). ## Symptom On initial render of the fzt terminal on homepage.romaine.life, the identity label `personal` is not shown at the top of the bordered box. As soon as the user types their first character, `personal` suddenly appears. ## Expected `personal` should render from first frame when the user is signed in — it's a static identity display, not a search-state display. ## Fix direction Likely in fzt-terminal's rendering path or fzt core state — `State.IdentityLabel` is being gated on a search-activity flag rather than `IdentityLabel != ""`. Check `drawBorderTopWithTitle` in fzt-terminal/tui and the equivalent WASM/DOM rendering in fzt-browser.
nelsong6 commented 2026-04-18 22:41:48 -07:00 (Migrated from github.com)

Resolved. The design shifted from what the issue originally asked for: you didn't want the identity label as ambient chrome at all; you wanted it only via an explicit command, emitting as a transient status (like `::version`).

What landed

  • fzt: removed `State.VersionDisplay` + `UIState.Version` (fzt@c02bc4d). No more persistent identity display mode.
  • fzt-frontend: `:whoami` is now a leaf (was a folder with `on`/`off` children). On select → `s.SetTitle(IdentityLabel)` (fzt-frontend@bd3c4e7).
  • fzt-terminal: dropped the version arg + render block from `drawBorderTopWithTitle` (fzt-terminal@57d8f78). Also exported `ProcessAction` so WASM consumers can route palette selections through `HandleCommandAction` (fzt-terminal@d4bb325).
  • fzt-browser: dropped `ui.version` from the WASM bridge and DOM renderer (fzt-browser@88fa74c). Wired WASM `handleKey` through `tui.ProcessAction` (fzt-browser@46196bf) — before this, every internally-handled palette action (`::version`, `::validate`, `:whoami`) was silently dropping on homepage. Added `fzt.setIdentity(name)` WASM export + `setIdentity` wrapper in `fzt-terminal.js` (fzt-browser@caee431).
  • my-homepage: dropped the `setLabel`-on-load call so no identity appears in the border on page load (my-homepage@412d2f5). Wired `fetchWhoami()` → `setIdentity` so `:whoami` emits the real user name (my-homepage@b2ef55f).

Verified

Live on homepage.romaine.life (`fztBrowser: v0.1.45`):

  • No identity shown in border on load.
  • `:whoami` emits the user's real identity as a title-bar status that gets overwritten by the next status change — matches the `::version` pattern.

Side finding

The `::version`/`::validate`/`::updatetimer` palette actions had been silently dropping on homepage because the WASM path bypassed `processAction`. That existed before this issue but surfaced during verification here. Fixed in the same cascade via the `ProcessAction` export.

Resolved. The design shifted from what the issue originally asked for: you didn't want the identity label as ambient chrome at all; you wanted it only via an explicit command, emitting as a transient status (like \`::version\`). ## What landed - **fzt**: removed \`State.VersionDisplay\` + \`UIState.Version\` ([fzt@c02bc4d](https://github.com/nelsong6/fzt/commit/c02bc4d)). No more persistent identity display mode. - **fzt-frontend**: \`:whoami\` is now a leaf (was a folder with \`on\`/\`off\` children). On select → \`s.SetTitle(IdentityLabel)\` ([fzt-frontend@bd3c4e7](https://github.com/nelsong6/fzt-frontend/commit/bd3c4e7)). - **fzt-terminal**: dropped the version arg + render block from \`drawBorderTopWithTitle\` ([fzt-terminal@57d8f78](https://github.com/nelsong6/fzt-terminal/commit/57d8f78)). Also exported \`ProcessAction\` so WASM consumers can route palette selections through \`HandleCommandAction\` ([fzt-terminal@d4bb325](https://github.com/nelsong6/fzt-terminal/commit/d4bb325)). - **fzt-browser**: dropped \`ui.version\` from the WASM bridge and DOM renderer ([fzt-browser@88fa74c](https://github.com/nelsong6/fzt-browser/commit/88fa74c)). Wired WASM \`handleKey\` through \`tui.ProcessAction\` ([fzt-browser@46196bf](https://github.com/nelsong6/fzt-browser/commit/46196bf)) — before this, every internally-handled palette action (\`::version\`, \`::validate\`, \`:whoami\`) was silently dropping on homepage. Added \`fzt.setIdentity(name)\` WASM export + \`setIdentity\` wrapper in \`fzt-terminal.js\` ([fzt-browser@caee431](https://github.com/nelsong6/fzt-browser/commit/caee431)). - **my-homepage**: dropped the \`setLabel\`-on-load call so no identity appears in the border on page load ([my-homepage@412d2f5](https://github.com/nelsong6/my-homepage/commit/412d2f5)). Wired \`fetchWhoami()\` → \`setIdentity\` so \`:whoami\` emits the real user name ([my-homepage@b2ef55f](https://github.com/nelsong6/my-homepage/commit/b2ef55f)). ## Verified Live on [homepage.romaine.life](https://homepage.romaine.life) (\`fztBrowser: v0.1.45\`): - No identity shown in border on load. - \`:whoami\` emits the user's real identity as a title-bar status that gets overwritten by the next status change — matches the \`::version\` pattern. ## Side finding The \`::version\`/\`::validate\`/\`::updatetimer\` palette actions had been silently dropping on homepage because the WASM path bypassed \`processAction\`. That existed before this issue but surfaced during verification here. Fixed in the same cascade via the \`ProcessAction\` export.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/fzt-terminal#1
No description provided.