Repository navigation
feat(gateway): push session PR indicators to subscribed clients - #115643
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 29, 2026 05:59
steipete
force-pushed
the
perf/pr-indicators-push
branch
from
July 29, 2026 07:15
7000531 to
bd16e42
Compare
steipete
force-pushed
the
perf/pr-indicators-push
branch
from
July 29, 2026 08:10
7bf48c4 to
7f7f573
Compare
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
to yetval/openclaw
that referenced
this pull request
Jul 29, 2026
* origin/main: (224 commits) fix(memory): preserve Windows session ownership (openclaw#115851) fix(compaction): drop context-engine fallback on codex ownership skip (openclaw#114155) (openclaw#115666) fix(msteams): ignore blank certificate settings (openclaw#109112) fix(usage): guard malformed DeepSeek payloads (openclaw#110785) docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) ... # Conflicts: # src/agents/apply-patch.ts # src/agents/sandbox/fs-bridge-mutation-helper.ts
pull Bot
pushed a commit
to yann0001/openclaw
that referenced
this pull request
Jul 29, 2026
* origin/main: docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) fix(setup): make Gemini recovery actionable (openclaw#115835) fix(terminal-core): prevent String.replace $ pattern injection in display-string (openclaw#111398) refactor(channels): share ingress retention defaults (openclaw#115824) fix(nostr): profile imports vary on timestamp ties (openclaw#111798)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
…claw#115643) * feat(gateway): push session PR indicators to subscribed clients * test(gateway): fix PR indicator drift * chore(protocol): allowlist PR-indicator event for native apps (Control UI surface) * test: align PR indicator lifecycle coverage * fix(ui): scope session PR store listeners to active watchers
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
* origin/main: docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) fix(setup): make Gemini recovery actionable (openclaw#115835) fix(terminal-core): prevent String.replace $ pattern injection in display-string (openclaw#111398) refactor(channels): share ingress retention defaults (openclaw#115824) fix(nostr): profile imports vary on timestamp ties (openclaw#111798)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Problem This Solves
Sidebar PR indicators were pull-on-top-of-pull: every client ran a 60s timer calling
controlUi.sessionPullRequestsfor its visible sessions; the gateway answered from a 60s GitHub cache. With the rest of the dashboard slow-log fixed, this poller was the largest remaining line (51 calls × 79ms per 50min in production), N clients paid N polls for identical data, and updates converged only on the next timer tick.Why This Change Was Made
Operator-requested design change: the gateway owns the GitHub poll (webhooks aren't viable for self-hosted gateways), pushes updates, and does the work only for sessions someone is actually looking at.
User Impact
PR chips update via push across all open dashboards simultaneously; the per-client 60s RPC chatter disappears; GitHub API spend stays demand-proportional (no subscribers → no polling) and is deduplicated across clients.
Evidence
controlUi.sessionPullRequests.subscribe(replace-set semantics: each call replaces the connection's watched keys; empty set or disconnect unsubscribes; 200-key bound) andcontrolUi.sessionPullRequests.changed(initial per-key snapshot on subscribe, then hash-based deltas; per-key status ready/rate-limited/unavailable with last-known data retained). No protocol version bump; Android protocol catalog regenerated (enum-only surface there); no Swift changes.