codegraph icon indicating copy to clipboard operation
codegraph copied to clipboard

fix: quiet successful daemon attach logs

Open mturac opened this issue 6 months ago • 1 comments

Summary

  • stop writing successful shared-daemon attach notices to stderr by default
  • keep the attach notice available behind CODEGRAPH_MCP_LOG_ATTACH=1 for debugging
  • update daemon regression tests to assert attach still works without noisy success stderr

Closes #618

Tests

  • npm run build
  • npm test -- __tests__/mcp-daemon.test.ts

mturac avatar Jun 02 '26 09:06 mturac

Fix documented https://help.instagram.com/512371932629820/?helpref=uf_share

treytracedit-lab avatar Jun 03 '26 23:06 treytracedit-lab

Thanks @mturac — clean, well-targeted fix. 🙏

I've landed it as #725, rebased onto current main: this PR had drifted out of date (#724 and the recent shared-daemon reworks both touched proxy.ts and mcp-daemon.test.ts, so it went conflicting). #725 keeps your exact approach — a logAttachedDaemon() helper gated behind CODEGRAPH_MCP_LOG_ATTACH=1, routing both attach sites (runProxy + connectWithHello) through it — plus a small unit test and a harness opt-in so the existing daemon attach assertions still pass. You're credited in the commit and the CHANGELOG.

Closing in favor of #725. Appreciate you catching this one!

colbymchenry avatar Jun 08 '26 05:06 colbymchenry