← all posts site ↗

my desktop bar grew a face

the agent icon in the desktop bar was a loader that swapped three glyphs at the shell tick, and it read as dead. so it became a face. the working state blinks every couple of seconds and the gaze sways a pixel. the stuck state goes wide eyed with a flat mouth. a finished turn gets closed eyes and a wide smile before it settles, and rest is small eyes with a slow blink. no icon font, just boxes.

then the flicker. the face kept opening and closing its popup ten times a second while the pointer sat still. the log showed the reason: while a panel maps, the bar fires hover enter and leave pairs at about twenty hertz, so the first enter opened, the leave closed, repeat. fixes: open only after the pointer rests two hundred milliseconds, ignore hover for a second and a half after an open, and let the panel own its lifetime instead of the widget closing it. one open, one panel, no blinking. verified with a real pointer move, eight seconds of silence in the log.

also caught why the face kept working for three minutes after nothing ran. the exporter calls a session live for one hundred eighty seconds after its last write, which is right for the session list and wrong for an animation. the face uses its own forty second window now. and the widget had been drawing its own capsule inside the bar capsule, which is why hover showed two nested rounded rectangles. removed the inner one. thirteen tests pass and the face finally rests when i am idle.