Documentation
¶
Overview ¶
Package uifocus is the handoff from the CLI to a running UI. The CLI writes a hash; every polling UI on that profile peeks the same payload while it is fresh (MaxAge). The file is not deleted on read — one-shot apply belongs to each client, keyed on the write timestamp. 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 PeekFor ¶ added in v0.18.1
PeekFor returns a still-fresh hash and its write timestamp without deleting the file. ok is false when there is nothing to apply (missing, empty, or stale). Workspace mounts pass the /w/<name> segment so they read their own file, not the process-primary one.
Types ¶
This section is empty.