Login
You're viewing the code4lib.social public feed.
  • Nov 13, 2026, 10:24 PM

    Writing a thing to try to guess when a page has the reader's attention, so that it can automatically start and stop various activities that are only appropriate when the reader is present (like automatically marking messages as read, or suppressing notifications)

    💬 1🔄 0⭐ 0

Replies

  • Nov 13, 2026, 10:58 PM

    @owen no no no. you don't get to know what the user is doing. it is criminal that these hooks are made available to web pages by chromium and other garbage js engines in browsers.

    💬 0🔄 0⭐ 0
  • Nov 13, 2026, 10:59 PM

    @thedoh can't tell if serious, but in case you are, here's my rationale from a previous conversation about it (1/2):

    > mulling on it further, attention is a property of the input surface, not the client or the user or their relationship with the service as a whole, and stands in for consciously choosing to take some action when it would be annoying to ask for that level of positive intent

    💬 2🔄 0⭐ 0
  • Nov 13, 2026, 10:59 PM

    @thedoh >
    for example, a user could manually mark messages as read, and that's normal in eg. a mail client, but for a chat application it's reasonable for the input surface/s the user is looking at to take that action on their behalf while they're using it. The same goes for suppressing notifications: they could turn them on or off themselves, but that would be annoying and error-prone.

    💬 1🔄 0⭐ 0
  • Nov 13, 2026, 11:00 PM

    @thedoh **HAVING SAID THOSE THINGS**: I am painfully aware that monitoring for attention, even by proxy, is trivial to turn into a surveillance mechanism. that is one of the open design risks and it is one of the things that might ultimately kibosh this effort.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 13, 2026, 11:01 PM

    @thedoh In the framing we're using, it is intended to be an agency of the user, much as clicking on something is.

    We're trying, very specifically, not to make it an instrumentality of the server or its operators. If it becomes that, then we'll kill it.

    💬 1🔄 0⭐ 0
  • Nov 13, 2026, 11:07 PM

    @thedoh In spite of my initial levity, I do take the "you don't get to do that" position seriously. The reasons for you to take that position are completely sound. There is a very real possibility we don't end up shipping this at all, or that we end up shipping it behind a preference that only turns on _attention tracking_ when the user expresses a positive interest in having it on and in what it will do for them (currently: sync message-read status between devices).

    💬 1🔄 0⭐ 0
  • Nov 13, 2026, 11:12 PM

    @thedoh And, for the sake of both clarity and accountability, the proposed mechanism is this: forge.grimoire.ca/pilcrow/pilc

    "Attended" when the window is in focus and the document is visible, "unattended" at any other time, no other information inspected, let alone considered or collected. I've no wish to ever implement anything that tries to deduce what parts of the page the user is attending to, even under the guise of user agency.

    💬 0🔄 0⭐ 0