mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
Merge pull request #2021 from codeflash-ai/feat/track-subagent-mode-posthog
feat: track subagent mode in PostHog
This commit is contained in:
commit
4392694ab5
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ from posthog import Posthog
|
|||
|
||||
from codeflash.api.cfapi import get_user_id
|
||||
from codeflash.cli_cmds.console import logger
|
||||
from codeflash.lsp.helpers import is_subagent_mode
|
||||
from codeflash.version import __version__
|
||||
|
||||
_posthog = None
|
||||
|
|
@ -36,7 +37,7 @@ def ph(event: str, properties: dict[str, Any] | None = None) -> None:
|
|||
return
|
||||
|
||||
properties = properties or {}
|
||||
properties.update({"cli_version": __version__})
|
||||
properties.update({"cli_version": __version__, "subagent": is_subagent_mode()})
|
||||
|
||||
user_id = get_user_id()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue