Skip to content

fix: keep native Antigravity hook for unusable Bash - #263

Open
aikinley wants to merge 2 commits into
monk-io:mainfrom
aikinley:codex/fix-antigravity-unusable-bash
Open

fix: keep native Antigravity hook for unusable Bash#263
aikinley wants to merge 2 commits into
monk-io:mainfrom
aikinley:codex/fix-antigravity-unusable-bash

Conversation

@aikinley

@aikinley aikinley commented Aug 5, 2026

Copy link
Copy Markdown

Summary

  • probe a discovered Bash application before the native Antigravity hook yields to its POSIX sibling
  • bound that liveness probe to two seconds so a hung WSL launcher cannot consume the host hook budget
  • keep the PowerShell fallback active when Windows exposes a broken or hung WSL bash.exe
  • preserve delegation when Bash really can start a shell
  • add an isolated Windows regression covering failed, successful, and hung Bash launchers

On unmodified v0.1.54 the regression exits with:

FAIL: unusable bash command made the native Antigravity hook exit without its install guidance; stdout=''

With this change failed and hung launchers produce the intended monk-agent is not installed JSON, while a usable Bash command still suppresses duplicate native output. The hung-launcher case completes within the bounded fallback assertion.

Validation

  • powershell -File tests/antigravity-ensure-unusable-bash-stub.ps1
  • PowerShell parser: zero errors

Generated source note

GENERATED.md identifies this public tree as generated from monk-agent/plugin. That source repository is not publicly accessible, so this PR patches and tests the currently shipped artifact; the same production hunk and regression should be ported to the generator before the next release regeneration.

Fixes #258

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.

[Bug bounty] unusable Windows bash stub suppresses Antigravity ensure hook

1 participant