8000 Say inbox: another local program can hand Blink one line (off by default) by amy95031 · Pull Request #4 · Arthur031221/Blinkling · GitHub
[go: up one dir, main page]

Skip to content

Say inbox: another local program can hand Blink one line (off by default) - #4

Draft
amy95031 wants to merge 2 commits into
Arthur031221:mainfrom
amy95031:say-inbox
Draft

amy95031 wants to merge 2 commits into
Arthur031221:mainfrom
amy95031:say-inbox

Conversation

@amy95031
Copy link
Copy Markdown

Draft, because the bubble has not been seen in a running Blink yet. Please treat it as a proposal to look at rather than something ready to merge.

What it is for: I have a small local helper (Dots) that knows when a Claude session is waiting for me or when my morning notes are ready, and I would like Blink to be the one who says it. This adds a way for another program on the same computer to hand Blink one short line, with up to three buttons, and learn what happened to it.

How it works: off by default (sayInbox in settings.json, "Lines from other apps" in Settings). Off, nothing is created and nothing is watched. On, Blink looks at <user data>/say/inbox/ once a second, deletes a file as it reads it, shows the text beside itself, and writes the result (button, dismissed, timeout or not_shown) to say/outbox/. The format is in docs/SAY-INBOX.md.

The text is set with textContent only. It is never treated as markup, never run, and never sent to a session. Showing a line does not take focus and does not bring Blink out if it is hidden.

This branch sits on top of #3 (the idle chatter switch), so the first commit here is that one; the second commit is the say inbox (19 files, +1285/−2).

Checks run (macOS, Node 22, BLINKLING_REMOTE=0):

  • npm run lint, npm run format:check: pass
  • npm run desktop:check (desktop tests and tsc): pass
  • npm run test:features, npm run build:plugin, npm run test:plugin, npm run validate:plugin: pass
  • npm test: 629 pass, 2 fail, the same two that fail on main on this machine (bridge/src/provider-cli.test.ts, /private/var/… against /var/…).

Not run: npm run test:e2e, npm run test:extension, and the bubble itself in Electron. Its position follows the idle line and its clickable area follows the permission bubble, but that is from reading the code.

Things you may want different:

  • The folders are under app.getPath("userData"). One line in shell.mjs (directory) changes that.
  • mood and from are read and checked but not used yet.
  • One line at a time: a second line while one is on show is answered not_shown, not queued.
  • A click elsewhere does not close the line; only a button, the ×, or the timeout does. Esc is not wired.

🤖 Generated with Claude Code

amy95031 and others added 2 commits November 30, 2026 08:28
After a quiet minute Blink says a line from the edge, and until now nothing
could stop that. Settings has a new switch, "Idle chatter", on by default so
nothing changes for anyone who does not touch it. Off, Blink never says a
line, and a line on show when the switch is turned off goes away at once.

The choice is `idleGrumble` in settings.json, next to `costumeEffects`, and
follows the same path: the store keeps it, the settings controller tells the
shell, the shell sends it with the state every window gets, and Blink's
window counts "off" as busy, which is what already keeps the grumbler quiet.
A settings.json written before the switch existed reads as on.

All nine languages have the label and the hint.

Tests: the store default, a kept choice, a wrong type and an older file; the
controller's state, refusal and what it tells the shell; the grumbler kept
busy for an hour, and turned off with a line on show; and one test that
reads shell.mjs and the renderer for the wiring between them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A program on the same computer puts <id>.json into say/inbox under the
user data folder. Blink deletes it on reading, which is the receipt,
shows the text with up to three buttons beside itself, and writes what
happened (button, dismissed, timeout or not_shown) to say/outbox.

The switch (sayInbox) is off by default; off, nothing is created and
nothing is watched. The text is set as text only and is never sent to a
session. The format is in docs/SAY-INBOX.md.

The reading and answering (desktop/say) are tested. The bubble in
Blink's window follows the permission bubble and has not been run in
Electron yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0