Skip to content

fix(statusline): fix Windows process filter and PS profile output noise - #10

Open
zuluion wants to merge 1 commit into
AndyAWD:mainfrom
zuluion:fix/2026-08-06_fix_windows_process_filter_and_quota_fetching
Open

fix(statusline): fix Windows process filter and PS profile output noise#10
zuluion wants to merge 1 commit into
AndyAWD:mainfrom
zuluion:fix/2026-08-06_fix_windows_process_filter_and_quota_fetching

Conversation

@zuluion

@zuluion zuluion commented Aug 6, 2026

Copy link
Copy Markdown

Fixes #9

Summary of Changes

  1. WMI Process Query & CLI Recognition:

    • Updated findServerCandidates() in fetch-local-quota.mjs to include 'Name like ''%antigravity%'' or Name like ''%agy%'' or Name like ''%language_server%''' in WMI -Filter.
    • Expanded process name recognition to (lower.includes('antigravity') || lower.includes('agy')) && !lower.includes('statusline-quota') to properly match antigravity-cli.exe.
  2. PowerShell Profile Output Filtering:

    • Extracted JSON array/object starting from the first [ or { in output before calling JSON.parse() to tolerate $PROFILE warnings (such as Set-PSReadLineOption: ...).
  3. Test Sandbox Reliability:

    • Added retry logic (maxRetries: 5, retryDelay: 100) when deleting temporary sandboxes in test-counters.mjs on Windows.

…se in fetch-local-quota.mjs

修改文件:
├── skills/antigravity-cli-statusline/scripts/fetch-local-quota.mjs — 修正 Windows WMI 进程过滤条件以支持 antigravity-cli.exe,并拦截 PowerShell Profile 引起的非 JSON 输出
└── skills/antigravity-cli-statusline/scripts/test-counters.mjs — 优化临时测试环境清理逻辑,增加删除重试机制
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.

fix(statusline): Fix Windows process filtering and PowerShell profile noise in fetch-local-quota.mjs

1 participant