Skip to content

ui: show a compact read-sync indicator when Mac is locked - #168

Merged
nixfred merged 1 commit into
nixfred:mainfrom
jefehoser:compact-read-sync-indicator
Nov 23, 2026
Merged

nixfred merged 1 commit into
nixfred:mainfrom
jefehoser:compact-read-sync-indicator

Conversation

@jefehoser

Copy link
Copy Markdown
Contributor

What

Replace the four-line red error banner for queued/locked-Mac read syncs with a compact, muted status pill beside mark all read:

  • TypeScript classification (read-sync.ts, collector.ts): Added isScreenLockedError() and classifyReadSync(). When read intents are queued behind a locked Mac screen (or retrying without a hard error), BlipOutput emits a structured readSync notice (pending, reason, label, detail) and leaves error empty.
  • Hard errors unchanged: Real failures (Accessibility/Full Disk Access denied, state write failure, missing read-state snapshot, or a mixed queue containing any non-locked error) stay in error and keep the red alert banner.
  • Compact indicator (BlipView.qml): Renders a small muted pill (↻ Read sync paused (N) or ↻ Read sync pending (N)) on the left side of the existing mark all read row (zero extra vertical space). Hovering shows a PanelToolTip with the full detail; clicking toggles a muted inline detail note underneath, which resets when the notice clears or the surface closes.
  • Host & IPC (BarWidget.qml): Stores readSync separately from lastError, surfaces read_sync=<reason>(<n>) in IPC status while keeping healthy=true, and includes a compact line in the bar tooltip.
  • Docs & demo harness (CLAUDE.md, README.md, scripts/demo/DemoShell.qml): Documented the readSync split and added a readsync IPC toggle to DemoShell.qml for synthetic UI verification.

Why

When a gateway Mac's screen locks under push_read=thread, Blip already keeps messages flowing, suppresses the local blue dot, queues the read update durably in pendingReads, and flushes it automatically once the Mac is unlocked. Showing a four-line red ⚠ imsg-read: ... block at the top of the panel made a normal, recoverable pause look like a broken bridge.

A compact muted pill with hover/click detail keeps the panel calm while still telling the user that read state hasn't reached Messages/iPhone yet and preserving the Lock Screen fix hint on demand.

How it was verified

  • bun test: 932 pass, 0 fail (37 files, 15,983 assertions), including new unit tests for isScreenLockedError() / classifyReadSync(), end-to-end collector lifecycle tests for locked → queued → unlocked recovery, and QML invariant tests in ui.test.ts.
  • python3 scripts/test-read-ui.py: 6 pass, 0 fail.
  • omarchy plugin validate ., qmllint BarWidget.qml BlipView.qml, and git diff --check: all clean.
  • Inspected grim screenshots from DemoShell.qml (synthetic data only) in both narrow popout and wide split-view layouts to verify alignment, wrapping, and width bounds alongside mark all read.
  • Deployed locally and verified against a locked gateway Mac: pill appears with queued read count, clears on unlock, and IPC reports online=true healthy=true.
  • No real send/receive tests were performed against any contact or group.
  • Invariants preserved (CLAUDE.md updated): pendingReads durability/backoff/--through semantics, canMarkAllRead row gate, theme hoverFill discipline, Text.PlainText rendering, and zero message content on disk.

@jefehoser
jefehoser requested a review from nixfred as a code owner November 22, 2026 05:21
When read updates are queued behind a locked Mac screen (or retrying
without a hard error), classifyReadSync() now emits a structured
readSync notice instead of populating BlipOutput.error.

BlipView renders a small muted pill beside 'mark all read' with a hover
tooltip and click-to-expand detail rather than the four-line urgent red
banner. Hard failures (Accessibility/Full Disk Access denials, state
write failures, missing snapshot) stay in error and keep the red alert.
BarWidget reports read_sync=<reason>(<n>) in IPC status and keeps the
read-sync queue, backoff, and mark-all gate invariants unchanged.
@jefehoser
jefehoser force-pushed the compact-read-sync-indicator branch from 934bf0f to 4f29b60 Compare November 22, 2026 05:26
@nixfred
nixfred merged commit fc0e3de into nixfred:main Nov 23, 2026
1 check passed
nixfred added a commit that referenced this pull request Nov 23, 2026
WHAT: Tim Pearson (ttiimmaahh) moves Blip's text up one step on a semantic ramp
like Omarchy's own panels: bubble text, the composer, thread and contact names,
empty states, the search and new-message fields and Contact Review are `body`;
previews, times, sender names, day dividers, attachment chips, tapbacks, the reply
banner, notes and errors are `bodySmall`; only fine print (receipts, bubble
metadata, the version tag, section headers, "Esc closes", avatar initials) stays
`caption`. After the change body is used 17 times, bodySmall 32, caption 9
(caption was the dominant token, 34 uses). Voice-message and sticker labels stay
caption because their boxes are fixed size. Font family, colours and layout are
unchanged and ui_font_size still scales the same ramp. CLAUDE.md gains the
invariant "Blip's type ramp is body-led".
WHY: Blip followed the desktop text-size knob yet read about 20% smaller than the
shell around it at every scale. The cause was token choice, not scaling and not
the font (SF Pro vs the theme mono differ by about 4% of x-height), so the only
way out had been ui_font_size, which opts out of the desktop knob entirely.
VERIFIED: PR CI green; the author ran 930 bun tests and the QtTest scripts and has
run the ramp on his own machine since September. Before/after screenshots at
base-size 12 read in the PR (names 11px to 12px, previews and times 10px to
11px, bubble text 11px to 12px). Three new "type ramp" tests fail on main's QML
and pass here. Merged with #168 and #169: one ui.test.ts conflict (both append a
describe block at the end of the file), resolved by keeping both. Door
classifier: two-way.
CONTEXT: second PR of Tim's companion pair; the read-sync pill from #168 was
brought onto the ramp in the next commit.

LR-T: blip, ui, type-ramp, fonts, pr-170, ttiimmaahh
LR-D: blip, qml
LR-K: blip-body-led-type-ramp-170, blip-2-8-0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BXN1v5rSKpVomPJvPhZCng
nixfred added a commit that referenced this pull request Nov 23, 2026
WHAT: CHANGELOG gains the 2.8.0 section (2026-11-23) with a short "Before you
update" block on top (nothing changes on the Mac, text is one step larger by
default, ui_font_size still means bubble text, the read-sync pill is covered by
tests but not yet seen drawn). manifest.json and the README version badge go
2.7.0 -> 2.8.0 and the README test badge goes 927 -> 937 passing, the real count.
WHY: Fred, 2026-11-23: "process all PR/Issues including 170 and write a big
thankyou to him and then make a new offical release." Since 2.7.0: nine commits,
three merged PRs from two outside people (#168 Danny Cecil; #169 and #170 Tim
Pearson), no file under bridge/ or scripts/blip-setup touched. Minor version
because the default type size is a visible change for every user.
VERIFIED: full CI recipe on gus at b08baca, the tree before this commit: bun test
937 pass 0 fail, the twelve QtTest and Python UI suites, every bridge/mac and
bridge/linux suite, py_compile, bash -n and shellcheck all pass. The
ui.test.ts version-agreement test passes with the three files in step.
OPEN: nothing here was rendered on a desktop by me; the read-sync pill (#168) has
no screenshot anywhere and is said so in the notes.
CONTEXT: staged by path, the three release files only. TRIAGE-2026-10-02.md and
pitch_deck_content.md stay untracked and are not part of the release.

LR-T: blip, release, 2.8.0, changelog, version, contributors, ttiimmaahh
LR-D: blip, release, github
LR-K: blip-2-8-0-release-2026-11-23, blip-release-after-2-7-0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BXN1v5rSKpVomPJvPhZCng
@nixfred

nixfred commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Merged in fc0e3de, and shipped today in Blip 2.8.0.

Thank you, Danny, for this one and for the kind note on #40: it means a lot, and Blip is better for how much of it is yours (this is your ninth merged PR).

A normal, recoverable pause (the gateway Mac's screen is locked, so the read update waits in pendingReads and drains on unlock) was being drawn as four lines of red error, which made a healthy bridge look broken. You split it properly instead of just recolouring it: classifyReadSync() in read-sync.ts decides, the collector emits a structured readSync notice and leaves error empty for the locked case, and everything that is a real failure (Accessibility or Full Disk Access denied, a state write failure, a missing snapshot, and any non-locked error in a mixed queue) still goes to the red banner. status reports read_sync=locked(N) with healthy=true. The queue's durability, backoff and --through rules are untouched, which is the thing I would have worried about most, and your lifecycle tests (locked, queued, unlocked) cover it.

Checked: bun test on the merged tree, 937 pass and 0 fail, plus scripts/test-read-ui.py and the other QtTest suites on gus. Your pill test fails on 2.7.0's BlipView.qml and passes here (I put the old file back to see).

What I have not done, so you know exactly where this stands: I have not seen the pill drawn. There is no screenshot of it in the PR, and I have not yet had a locked gateway in front of me. One note for later, no action needed: after #170 the ramp puts notes and errors at bodySmall, and the pill text is caption, one step smaller than "mark all read" beside it. I left it exactly as you wrote it. If it looks small on your desktop, a one-line PR to move it up is welcome.


Generated by Claude Code

nixfred added a commit that referenced this pull request Nov 23, 2026
…8 notes, Post 9 draft)

WHAT: CHANGE.log gets the 2.8.0 release entry and one entry each for #170, #169
and #168 (name, GitHub, X, what was verified, what was not), plus Tim Pearson in
the verified PEOPLE list. CONTRIBUTORS-X.md gets his row, Danny Cecil's count 8 -> 9,
and @ttiimmaahh_ (and the missing @jasona) in the paste block. WEEKLY-NOTES.md gets
a new 2026-W48 section, and Danny's 17 Nov reply on #40 quoted under W47 where it
belongs. X-POSTS.md gets row 9 and docs/x-post-2026-11-23.txt holds the draft,
which Fred reads and posts.
WHY: Fred, 2026-11-23: "process all PR/Issues including 170 and write a big
thankyou to him and then make a new offical release." The standing chain is
merge, visible thank-you on the PR, then CHANGE.log, roster and weekly notes the
same turn. Tim Pearson's handle is @ttiimmaahh_ with a trailing underscore, which
is easy to get wrong; verified from his GitHub profile and social accounts and
by `x user` on gus, 2026-11-23.
VERIFIED: comment sweep since 17 Nov found one note (Danny, #40); audit of all
128 merged PRs found none without a thank-you; PRs 168, 169, 170 show MERGED;
release https://github.com/nixfred/blip/releases/tag/v2.8.0 is Latest; tag v2.8.0
on a251d5f is on origin and forgejo. Issue comments posted on #125 (status) and
#78 (the #36 hold was already met).
OPEN: the #168 pill has not been seen drawn; Tim has not answered the opt-out
question on #170; 2.7.0 never had its own announcement post.

LR-T: blip, docs, change-log, weekly-notes, contributors, 2.8.0, ttiimmaahh
LR-D: blip, docs, github
LR-K: blip-2-8-0-release-docs-2026-11-23, blip-tim-pearson-ttiimmaahh

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BXN1v5rSKpVomPJvPhZCng
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.

2 participants