GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(pm-console): notifications that say what happened and carry buttons that answer by dezren39 · Pull Request #14223 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

What this changes

A notification said that something had happened and opened the app. Now it says what happened and carries what can be done about it.

  • Buttons. Each message has up to two, most useful first:
    • a reply from the fleet: Reply (a line typed on the notification itself where the device can take one; where it cannot, the thread is opened) and Close it;
    • something only the owner can do: I did it and Open;
    • a unit that failed: Restart it and Look;
    • new questions: Look at them.
  • Details. The body is the reply itself, what to do and on which item, which unit and what it is for.
  • A button that does something does it the way the app does anything. The service worker writes it down on the device, sends it under a name, and with no connection it is kept and sent later, never twice. With the app closed a notification in the same place says what became of it ("Done.", "Kept on this device…", or that it could not be done); with the app open, the app says it.
  • A message too long for one push is cut to fit, not refused. There was no bound: a body of twenty thousand characters was sealed and posted as twenty thousand bytes, which a push service refuses (it takes 4096, RFC 8030 section 7.2). It is now cut to the longest start that fits, in whole characters, marked as cut, buttons kept.
  • The Android app shows the site's notifications as its own, so it has the buttons too.

How it was checked

  • The service worker's file is run against a stand-in for the browser's worker scope: the buttons shown (two at most, a text one where asked for, things that are not buttons left out), what pressing each does (one request, as the app would send it), a typed reply, no text given, no connection, the platform turning it down, the app open.
  • The notifier's messages are compared whole, buttons included, and once more as they reach a phone after the trip through the push service's own encryption.
  • The cut is measured on what is really posted against the 4096 bytes and read back the way a phone reads it, for characters of one, two and four bytes and one that JSON writes as two.
  • Faults planted one at a time, restored after each: 14 in the buttons (all caught), 8 in the cut (all caught). One more, cutting by code unit and not by character, cannot change the result (half a character costs more bytes written out than the whole one) and is said so in the design record.
  • bun test 532 pass; types; formatting; the self-check; the Worker built and run in its real runtime, 53 of 53 smoke checks.

Not seen

A real phone showing the buttons: that takes a real push to a subscribed device.


Generated by Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
claude added 3 commits November 24, 2026 02:45
@claude
feat(pm-console): a notification says what happened and carries butto…
f31b228
…ns that answer it

A notification said that something had happened and opened the app.

- Each message has up to two buttons: on a reply from the fleet,
  "Reply" (a line typed on the notification where the device can take
  one; where it cannot, the thread is opened) and "Close it"; on
  something only the owner can do, "I did it" and "Open"; on a unit
  that failed, "Restart it" and "Look".
- The body says enough to act on: the reply itself, what to do and on
  which item, which unit and what it is for.
- A button that does something does it the way the app does anything:
  the service worker writes it down on the device, sends it under a
  name, and with no connection it is kept and sent later, never twice.
  With the app closed a notification says what became of it; with the
  app open, the app does.
- The Android app shows the site's notifications as its own, so it has
  the buttons too.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
@claude
Merge remote-tracking branch 'origin/main' into claude/pm-push
05b1606
@claude
fix(pm-console): a message too long for one push is cut to fit, not r…
9f66c5d
…efused

A message had no bound on its length. A body of twenty thousand
characters was sealed and posted as twenty thousand bytes, which a push
service refuses: it takes 4096 (RFC 8030 section 7.2).

A message that would be too long as it is sealed is cut to the longest
start that fits, in whole characters and marked as cut, with its
buttons kept. Buttons that could not fit beside any words at all are
left off.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b144fd1b-5d14-4d29-9bc2-c6a5489d4b1c
Commits

Reviewing files that changed from the base of the PR and between 5784706 and 9f66c5d.

Files selected for processing: 9

  • doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core.md
  • planning/roadmaps/pm-stack.md
  • pm-stack/console/edge/README.md
  • pm-stack/console/public/sw.js
  • pm-stack/console/src/notify.ts
  • pm-stack/console/src/push.ts
  • pm-stack/console/test/edge.test.ts
  • pm-stack/console/test/push.test.ts
  • pm-stack/console/test/sw.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 440365f into main Nov 24, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the claude/pm-push branch November 24, 2026 08:52
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
pm-console: the laptop's console has not followed main since 2026-11-23 22:09Z #13833
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@dezren39 @claude
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.