Documentation
¶
Overview ¶
Package uifocus is the one-shot handoff from the CLI to a running UI. The CLI writes a hash; the desktop app or a serve tab reads and deletes it. The file lives next to the profile's config — not in SQLite — so a sync cannot wipe a pending focus and a snapshot cannot carry one.
Index ¶
Constants ¶
const MaxAge = 2 * time.Minute
MaxAge is how long a focus request stays valid. Older files are ignored so a leftover from yesterday cannot yank the list when the app next opens.
Variables ¶
This section is empty.
Functions ¶
func Take ¶
Take returns a still-fresh hash and deletes the file. ok is false when there is nothing to apply (missing, empty, or stale).
func TakeFor ¶
TakeFor is Take for a named profile. Workspace mounts pass the /w/<name> segment so they do not consume the process-primary file.
Types ¶
This section is empty.