Skip to content

feat(handlers): telemetry write handlers routed through DaemonProxy (Phase 2c-6a)#511

Merged
jinhongkuan merged 2 commits into
devfrom
feat/daemon-02c-6a-telemetry-writes-via-daemon
May 23, 2026
Merged

feat(handlers): telemetry write handlers routed through DaemonProxy (Phase 2c-6a)#511
jinhongkuan merged 2 commits into
devfrom
feat/daemon-02c-6a-telemetry-writes-via-daemon

Conversation

@jinhongkuan

Copy link
Copy Markdown
Contributor

Summary

Phase 2c-6a — migrate the three telemetry-only write handlers (handle_feedback, handle_skill_begin, handle_skill_end) to route through the daemon. Server-side dispatchers in protocol/handlers/writes.py already wired by #503; this PR migrates the call-sites and adds boundary tests.

Telemetry writes are first in the 2c-6 sequence because they don't mutate the ledger — pure PostHog events. Concurrency / single-writer / destructive-write boundary work lands in 2c-6b/c/d.

Plan refs

Test plan

  • pytest tests/test_telemetry_writes_via_daemon.py — boundary tests through real daemon subprocess
  • ruff format --check . && ruff check . clean
  • CI green on dev (merging on lint-only per @jinhongkuan directive)

🤖 Generated with Claude Code

…Phase 2c-6a)

Split handle_feedback / handle_skill_begin / handle_skill_end into thin
MCP-side facades + _impl cores. Facades delegate to ctx.daemon when
available; fall through to in-process impl on any error. Server-side
dispatchers in protocol/handlers/writes.py updated to call _impl
directly to avoid infinite RPC loops. DaemonProxy gains feedback,
skill_begin, skill_end methods mirroring history's shape.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c3db929e-d5a7-4351-84dc-9f25a12ddaf0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/daemon-02c-6a-telemetry-writes-via-daemon

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@jinhongkuan jinhongkuan enabled auto-merge May 23, 2026 21:52
…mmary method)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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