Skip to content

fix(acp): harden grok startup environment and npx recovery#662

Merged
kaizhou-lab merged 3 commits into
mainfrom
fix/grok-npx-provider-errors
Jul 22, 2026
Merged

fix(acp): harden grok startup environment and npx recovery#662
kaizhou-lab merged 3 commits into
mainfrom
fix/grok-npx-provider-errors

Conversation

@kaizhou-lab

@kaizhou-lab kaizhou-lab commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • strip SSL_CERT_FILE and SSL_CERT_DIR from agent subprocess environments while preserving NODE_EXTRA_CA_CERTS
  • repair managed npm _npx cache entries after ACP startup/handshake failure by computing npm's package hash from the actual CommandSpec and deleting only that single entry when it exists
  • keep stderr-based _npx path detection as a fallback for startup failures where the managed command cannot be computed
  • classify provider send failures as retryable provider network errors without automatic conversation replay

Verification

Notes

  • AionUi changes were not included; this fix is contained in AionCore.
  • ACP conversation startup and test-connection lifecycle remain separate; only npm _npx cache repair logic is shared.
  • The _npx repair does not clear the whole _npx cache; it clears only the computed entry for the failed command, then retries once.

@kaizhou-lab
kaizhou-lab merged commit 10cdd57 into main Jul 22, 2026
6 checks passed
@kaizhou-lab
kaizhou-lab deleted the fix/grok-npx-provider-errors branch July 22, 2026 05:47
piorpua pushed a commit that referenced this pull request Jul 23, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.51](v0.1.50...v0.1.51)
(2026-07-23)


### Features

* **project:** add project-bind foundation (db + aionui-project)
([#672](#672))
([70eae04](70eae04))
* **session-port:** route claude/codex through the direct-CLI
SessionAgentTask
([#609](#609))
([14efff8](14efff8))
* **team:** leader-only warmup with lazy teammate wakeup and per-member
attach ([#670](#670))
([f542da8](f542da8))


### Bug Fixes

* **acp:** harden grok startup environment and npx recovery
([#662](#662))
([10cdd57](10cdd57))
* **ci:** restore main migration immutability guard
([7603d44](7603d44))
* **cron:** use host timezone for conversation cron
([#652](#652))
([19b36f8](19b36f8))
* **skills:** repair butler cron and doc drift (2026-07-22 audit)
([#664](#664))
([273ac47](273ac47))
* **system:** release keep-awake on shutdown
([#666](#666))
([6e0b3a7](6e0b3a7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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