fix(antigravity): pass plugin version, launch client, and local flag to monk-agent - #227
Open
emohack wants to merge 1 commit into
Open
fix(antigravity): pass plugin version, launch client, and local flag to monk-agent#227emohack wants to merge 1 commit into
emohack wants to merge 1 commit into
Conversation
…to monk-agent The main launchers (scripts/start-monk-agent.sh/.ps1) hand the spawned companion MONK_PLUGIN_VERSION, MONK_AGENT_LAUNCH_CLIENT, and MONK_AGENT_LOCAL so session metadata/telemetry report the real plugin version and launching client. The Antigravity PreInvocation cold-start hooks (.antigravity-plugin/hooks/ensure-monk-agent.sh/.ps1) start the companion with only the four auth/autospin variables, so every cold start reports an empty plugin version and no launch client, and a user-set MONK_AGENT_LOCAL is silently dropped. Mirror the launcher exports in both Antigravity hooks (behavior-preserving for existing users; launch client defaults to antigravity).
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
The main launchers (
scripts/start-monk-agent.sh/.ps1) hand the spawnedmonk-agentcompanionMONK_PLUGIN_VERSION,MONK_AGENT_LAUNCH_CLIENT, andMONK_AGENT_LOCALso session metadata/telemetry report the real plugin version and launching client (seestart-monk-agent.shstart_with_background_process()and the launchd plist).The Antigravity
PreInvocationcold-start hooks (.antigravity-plugin/hooks/ensure-monk-agent.sh/.ps1) start the companion with only the four auth/autospin variables, so every cold start on Antigravity:pluginVersionand nolaunch_clientin telemetry,MONK_AGENT_LOCAL(the agent's local-mode switch).Change
Mirror the launcher exports in both Antigravity hooks. Behavior-preserving for existing users; the launch client defaults to
antigravity(this hook is Antigravity-specific), matching the existing hardcoded telemetry comment.Verification
sh -npasses on the POSIX hook.