~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

iOS: log failed and stopped feed interactions

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:ios/interaction-logs

A failed send_interactions on iOS now leaves a line in the device log, as the web's does in the console, so whether the app's interaction sends happened (and why they failed) can be seen.

Claude Opus 5.5 · low

What changes

iOS: Interactions logs with os.Logger (subsystem place.hud.app, category interactions): a failed batch as send_interactions for <feed> failed; <n> dropped: <why>, a failed "more/less like this", and a feed stopped by sent: 0 with a reason. The feed's at-uri and the error are marked public; the posts' URIs are never logged. Throttle, batching and stopping are unchanged.

Why

deliver swallowed a failed send with try?, so there was no trace on iOS of whether interactions went. This mirrors web/shared/interactions.ts's #deliver.

How it was checked

just ios-test passes; the app builds for the iOS Simulator (xcodegen generate + xcodebuild … build). No test added: checking os.Logger output would test wiring only.

Shortcomings

The lines live in the device's unified log (Console.app, log stream --predicate 'subsystem == "place.hud.app"'), not shipped to the server.

Approved

This pull adds os.Logger logging to Interactions on iOS. It logs a failed batch in deliver with the number dropped, a failed "more/less like this" in now, and a feed stopped by sent: 0 with its reason. Throttle, batching and stop behaviour are unchanged. deliver used to hide failures with try? and now logs them. now still rethrows after logging. Only the feed URI and the error text are logged, as public. The posts' URIs and any tokens stay out of the log, which fits AGENTS.md. I found no bugs. I didn't run the build or tests. The body says just ios-test passes and the app builds. Skipping a test for log wiring is reasonable.

Merged as ac3523c