feat(analytics): attribute Claude Desktop sessions by repository and branch - #447
feat(analytics): attribute Claude Desktop sessions by repository and branch#447mykolanehrych wants to merge 3 commits into
Conversation
…branch Resolve and attribute the correct repository/branch per Claude Desktop session (TCP process lookup, per-request X-CodeMie-Repository header, session-to-repository map with await-poll, X-CodeMie-Branch header injection), fix Cowork vs Code tab session attribution and branch fallback, add api-key auth support for local dev/Code integration sessions, rename Desktop sandbox repository label to 'Cowork', and harden --add-dir path handling and lsof/repo-resolution logic. Ref: EPMCDME-12687
f449fce to
f52c76c
Compare
|
[AUTO_CLOSE_WARNING] ⏰ This pull request is older than 14 days and will be automatically closed in 16 more days (when it reaches 30 days old)! To maintain this PR, either convert it to Draft or complete your changes and merge. |
Automated review — blockersFocused on architecture, patterns, correctness, DRY, YAGNI. Minor issues intentionally omitted. 0. Policy blocker — user-header manipulation is a strictly secured operationThis PR extends Fix direction: Split the header-injection changes out of this PR and route them through the security-review process; keep the analytics attribution work in the telemetry runtime, where header injection is not the surface. 1.
|
|
[AUTO_CLOSE_WARNING] 🔒 This pull request was automatically closed after being older than 30 days with no activity. Contact maintainers to reopen if needed. |
Summary
Adds accurate repository/branch attribution for Claude Desktop sessions in CodeMie Analytics, and adds api-key based auth support for local Code/Desktop proxy integrations.
Before
After
Changes
X-CodeMie-Repositoryheader, session-to-repository map with await-poll)X-CodeMie-Branchheader for Claude Desktop session attributionClaude Desktop/DefaulttoCowork--add-dirpath handling (reject non-absolute paths, lazy regex) and consolidatelsof/repo-resolution logicImpact
Claude Desktop sessions are now attributed to the correct repository and branch in analytics instead of falling back to defaults, and local dev/Code integrations can authenticate via api key.
Checklist
Ref: EPMCDME-12687