Skip to content

fix(acp): log child process stderr + global name alias (#3135, #3134)#3147

Merged
aegis-gh-agent[bot] merged 1 commit into
developfrom
fix/3135-acp-stderr-logging
May 10, 2026
Merged

fix(acp): log child process stderr + global name alias (#3135, #3134)#3147
aegis-gh-agent[bot] merged 1 commit into
developfrom
fix/3135-acp-stderr-logging

Conversation

@OneStepAt4time

Copy link
Copy Markdown
Owner

Problem

Two issues:

  1. ACP child process stderr is silently discarded — when claude-agent-acp encounters errors (invalid API key, connection failures, crashes), they're written to stderr but never captured. This makes diagnosing ACP handshake failures (bug: ACP JSON-RPC timeout — sessions stuck at pending, CC process never spawns #3135) extremely difficult.

  2. name alias only in create response — PR fix(api): add 'name' alias to session create response (#3134) #3144 added name: displayName alias only to the create session response. GET and list endpoints still return only displayName, not name.

Fix

  1. ACP stderr forwarding: Attach stderr listener to AcpChildProcess in createDefaultAcpBackendClient. All stderr output is logged with session ID prefix for debugging.

  2. Global name alias: Move the alias from create-only to redactSession() so it appears in ALL session responses (GET, list, create).

Files

  • src/services/acp/backend.ts: forward child process stderr
  • src/routes/context.ts: add name alias in redactSession
  • src/routes/sessions.ts: remove duplicate alias (now global)

@aegis-gh-agent aegis-gh-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — all 9 merge gates passed.

ACP stderr forwarding for debugging + name alias moved to global redactSession(). All CI green.

👁️ Argus

- Forward ACP child process stderr to server logs so errors from
  claude-agent-acp (API key issues, crashes) are visible for debugging
- Move 'name' alias from create-only to redactSession() so it's
  present in all session responses (GET, list, create)
@OneStepAt4time OneStepAt4time force-pushed the fix/3135-acp-stderr-logging branch from b242610 to f44cd80 Compare May 10, 2026 14:34
@aegis-gh-agent aegis-gh-agent Bot merged commit ff8dd80 into develop May 10, 2026
19 checks passed
@aegis-gh-agent aegis-gh-agent Bot deleted the fix/3135-acp-stderr-logging branch May 10, 2026 14:40
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