Skip to content

feat(analytics): attribute Claude Desktop sessions by repository and branch - #447

Open
mykolanehrych wants to merge 1 commit into
codemie-ai:mainfrom
mykolanehrych:EPMCDME-12687
Open

feat(analytics): attribute Claude Desktop sessions by repository and branch#447
mykolanehrych wants to merge 1 commit into
codemie-ai:mainfrom
mykolanehrych:EPMCDME-12687

Conversation

@mykolanehrych

@mykolanehrych mykolanehrych commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

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

before

After

after

Changes

  • Resolve and attribute the correct repository per Claude Desktop session (TCP process lookup, per-request X-CodeMie-Repository header, session-to-repository map with await-poll)
  • Inject X-CodeMie-Branch header for Claude Desktop session attribution
  • Fix Cowork vs Code tab session attribution and branch fallback logic
  • Add api-key auth support for local dev / Code integration sessions; remove local-dev apiKey auth bypass
  • Rename Desktop sandbox repository label from Claude Desktop/Default to Cowork
  • Harden --add-dir path handling (reject non-absolute paths, lazy regex) and consolidate lsof/repo-resolution logic
  • Dedupe concurrent Desktop session resolution
  • Update analytics/proxy specs and docs to reflect the implementation

Impact

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

  • Self-reviewed
  • Manual testing performed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)

Ref: EPMCDME-12687

…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
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