Skip to content

feat(telemetry): copy analytics to an optional destination - #647

Merged
lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/telemetry-copy
Nov 9, 2026
Merged

lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/telemetry-copy

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Fork maintainers can't keep their own copy of product analytics without replacing the upstream destination. This adds an optional second destination so they can have both.

What changed

  • Optional copy: a second PostHog-compatible destination, off by default. It gets the same events as upstream.
  • Isolated delivery: the copy has its own bounded queue, so a slow or unreachable receiver can't block upstream delivery.
  • Policy: both destinations follow the existing telemetry opt-out and managed policy.
  • Desktop: it forwards the two configuration variables from the user's login shell. This also works when shell discovery finishes after the server has started.

Validation

  • Checks: check:changed origin/lastcode/main passed. That covered 39 tests, affected package typechecks, format, lint, GraphQL checks and Knip.
  • CI: Quick CI passed on the current head against the current base.
  • Local exercise: an HTTP test received the same event at both destinations, each with its own key. An isolated runtime also delivered a matching copy to a hosted receiver, which returned HTTP 200; the event was visible in its activity view.
  • Review: two Terra xhigh rounds. The first reported a URL-normalization issue, which is fixed. The second was clean.

Not verified

  • Activation in an installed desktop app.

Implemented and reviewed with GPT-6.1 Terra at xhigh. Integrated and validated with GPT-6.1 Sol at xhigh through the Codex harness in LastCode. PR text edited with Claude Sonnet 5.5 through Claude Code.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T01:14:16.696518Z 7f9de5b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: bd82ddeb4a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 69127332d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus
lastobelus force-pushed the lastcode/telemetry-copy branch from 6912733 to 4f0af76 Compare November 8, 2026 20:43
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 4f0af761b2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus
lastobelus force-pushed the lastcode/telemetry-copy branch from 4f0af76 to 8d640e6 Compare November 8, 2026 20:59
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 8d640e6073

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus
lastobelus force-pushed the lastcode/telemetry-copy branch from 8d640e6 to d50f7d8 Compare November 9, 2026 00:42
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: d50f7d808a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Carry-Group: incubator

Carry-Observation: Optional LastCode analytics delivery and its desktop configuration form one feature.
@lastobelus
lastobelus force-pushed the lastcode/telemetry-copy branch from d50f7d8 to 7f9de5b Compare November 9, 2026 01:11
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 7f9de5bd26

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus
lastobelus merged commit e01f2ea into lastcode/main Nov 9, 2026
20 checks passed
@lastobelus
lastobelus deleted the lastcode/telemetry-copy branch November 9, 2026 01:37
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