Skip to content

fix(endpoint): repair active user runtime config after installs#275

Merged
shukieshah merged 1 commit into
mainfrom
fix/user-config-repair-installed
Jul 1, 2026
Merged

fix(endpoint): repair active user runtime config after installs#275
shukieshah merged 1 commit into
mainfrom
fix/user-config-repair-installed

Conversation

@shukieshah

Copy link
Copy Markdown
Contributor

Summary

  • Add a hidden system endpoint helper that repairs the active console user's native Claude/Codex/Gemini OTLP config and refreshes supported user hooks.
  • Run that helper from macOS package postinstall so package updates do not write user runtime config as root only.
  • Make endpoint repair tolerate transient collector port handoff delays before reporting a real local OTLP port conflict.

Test plan

  • cd cli/beacon && go test ./internal/endpoint/collector ./internal/endpoint/lifecycle ./internal/endpoint/hooks ./cmd
  • sh packaging/macos/test-endpoint-scripts.sh

Made with Cursor

Comment thread cli/beacon/cmd/endpoint_user_config.go
@shukieshah shukieshah self-assigned this Jun 30, 2026
@shukieshah
shukieshah force-pushed the fix/user-config-repair-installed branch from 6309f02 to e7ceeb2 Compare June 30, 2026 23:44

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e7ceeb2. Configure here.

Comment thread cli/beacon/cmd/endpoint_user_config.go
Comment thread cli/beacon/cmd/endpoint_user_config.go
@shukieshah
shukieshah force-pushed the fix/user-config-repair-installed branch 2 times, most recently from 3b22267 to 88977e0 Compare June 30, 2026 23:51
Ensure system package repairs update the active console user's native Claude/Codex OTLP config as well as hooks, and make collector repair tolerate transient launchd port handoff delays.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shukieshah
shukieshah force-pushed the fix/user-config-repair-installed branch from 88977e0 to 5e71998 Compare July 1, 2026 00:06
@shukieshah
shukieshah merged commit f6b9a09 into main Jul 1, 2026
18 checks passed
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