Skip to content

Show what the agent asks or replied in notifications - #1163

Merged
onevcat merged 1 commit into
mainfrom
feat/push-content-summary
Nov 22, 2026
Merged

onevcat merged 1 commit into
mainfrom
feat/push-content-summary

Conversation

@onevcat

@onevcat onevcat commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

With Show Details on, a notification showed the tab name but always the same text ("An agent needs your attention" / "An agent finished"), so it did not tell the user whether to act now. Now the body says what happened (docs-ai 095.015):

  • Blocked: the question on the agent's screen and the first line of its detail, e.g. "Trust this folder? · /private/tmp/cs-trust" or "Do you want to proceed? · rm -rf build". Same parser as the Chat view.
  • Done: the start of the agent's last reply, from the last 256 KB of its transcript, read off the main actor when the turn finishes.
  • One line, markdown marks removed, at most 180 characters. Without a summary the body stays generic. A body that would exceed the gateway's sealed limit (3,000, now in the shared contract, also tested by onevcat/prowl-push-gateway#2) falls back to the generic text.
  • The content is end-to-end encrypted as before; without Show Details the phone still shows only the generic text. The Show Details description now says what it adds.

Device check (iPhone One, TestFlight build, Show Details on, Debug Host from this branch, production APNs)

  • Blocked: "Trust this folder? · /private/tmp/cs-trust"
  • Done: "Prowl blinked. The office had emptied hours ago, but…" (the start of Claude's reply)

Tests

  • New MirrorPushSummaryTests: screen fixtures (folder trust, command permission, a plain shell), the Claude conversation fixture, the one-line form and truncation, the size fallback through the real sealing path.
  • MirrorPushContractTests checks the sealed limit; MirrorHostTests updated for the async details closure.
  • make check: pass. make test and make test-mirror-ios-unit: running, result posted below.

@onevcat

onevcat commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner Author

Full checks on 319b636: make test pass (all 11 suites, zero failures); make test-mirror-ios-unit: 226 passed.

@onevcat
onevcat merged commit 669a301 into main Nov 22, 2026
3 checks passed
@onevcat
onevcat deleted the feat/push-content-summary branch November 22, 2026 16:44
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