Skip to content

fix(acp): filter configured models and surface failed turns - #14

Merged
CCGV2 merged 1 commit into
qiz029:mainfrom
CCGV2:codex/acp-configured-models
Oct 11, 2026
Merged

CCGV2 merged 1 commit into
qiz029:mainfrom
CCGV2:codex/acp-configured-models

Conversation

@CCGV2

@CCGV2 CCGV2 commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

ACP model choices now follow local provider configuration. Failed model turns send a labeled diagnostic text update before returning a structured JSON-RPC error, so clients can show and retain the failure instead of ending with only an idle indicator.

  • Filter the ACP catalog using credential metadata, saved no-auth custom services, and separate DeepSeek account/API-key routes. Keep the current model available and preserve native routing and the TUI catalog.
  • Include allowlisted network codes and elapsed time in DeepSeek transport failures without forwarding raw causes, credentials, or response bodies. Keep cancellation semantics intact.
  • Vendor the pinned ACP patch into the npm bundle and declare its SDK runtime dependency directly.
  • Add Markdown output guidance for literal backslashes, embedded backticks, and concise file-link labels.

Why

Addresses failure feedback and bounded diagnostics in KEV-94 and KEV-95, plus the agent-side guidance in KEV-99. Console rendering changes and history compatibility coverage are in pax-beehive/pax-console#180.

Checks run

  • Documentation checker and npm run lint.
  • Full npm run check: lint, both TypeScript checks, coverage, integration, package verification, and 63 evaluation tests passed. Ran outside the restricted sandbox because local test listeners require it.
  • npm run test:unit: 1,102 tests passed.
  • New error-patch helpers: 100% line, branch, and function coverage.
  • Source ACP probe: configured model filtering, selection/resume, current-model retention, tool approval, cancellation, and exactly one failure notice before the error response.
  • Local npm build and package verification, including vendored ACP and direct SDK dependency.
  • Installed-bundle ACP smoke test during development.

Notes

Configuration is not a reachability or credential-validity check; reconnect after credential changes. This does not establish the root cause of the reported repeated transport failures. The failure notice covers terminal model-turn errors; it is not a replacement for every admission or transport error path. Markdown guidance does not guarantee valid output from every model.

No npm release, version bump, or deployment is included. Linux container end-to-end checks remain for CI.

Scope model discovery to locally configured providers, retaining the active selection. Send a labeled failure notice before structured prompt errors and include bounded DeepSeek network diagnostics in source and npm runtimes.

Add Markdown output guidance, document the limits, and cover configuration, errors, cancellation, and packaged ACP behavior.

Validation: documentation checker, lint, 1102 unit tests, source ACP probe, npm build and package verification passed; new error patch helpers have 100% coverage.
@CCGV2
CCGV2 merged commit ea90adb into qiz029:main Oct 11, 2026
3 checks passed
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