Skip to content

错误信息: Command failed with exit code 1 (exit code: 1) Error output: Check stderr output for details 执行类型:async execution #448

@luogao

Description

@luogao
Image

[02/05/26 00:18:32] INFO Using bundled Claude Code subprocess_cli.py:113
CLI:
/tmp/MEIg5TShL/claude_agent
sdk/_bundled/claude
ERROR Fatal error in message reader: Command query.py:216
failed with exit code 1 (exit code: 1)
Error output: Check stderr output for
details
2026-02-05 00:18:32 - [de44b747] - [in executor/agents/agno/thinking_step_manager.py:58] - INFO - Added thinking step: thinking.execution_failed
2026-02-05 00:18:32 - [de44b747] - [in executor/agents/claude_code/claude_code_agent.py:1366] - ERROR - Error in async execution: Command failed with exit code 1 (exit code: 1)
Error output: Check stderr output for details
Traceback (most recent call last):
File "executor/agents/claude_code/claude_code_agent.py", line 1140, in _async_execute
File "executor/agents/claude_code/claude_code_agent.py", line 1263, in _create_and_connect_client
File "claude_agent_sdk/client.py", line 164, in connect
await self._query.initialize()
File "claude_agent_sdk/_internal/query.py", line 153, in initialize
response = await self._send_control_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "claude_agent_sdk/_internal/query.py", line 377, in _send_control_request
raise result
File "claude_agent_sdk/_internal/query.py", line 170, in _read_messages
async for message in self.transport.read_messages():
File "claude_agent_sdk/_internal/transport/subprocess_cli.py", line 628, in _read_messages_impl
raise self._exit_error
claude_agent_sdk._errors.ProcessError: Command failed with exit code 1 (exit code: 1)
Error output: Check stderr output for details
2026-02-05 00:18:32 - [de44b747] - [in executor/callback/callback_client.py:121] - INFO - Sending callback: task_id=1 subtask_id=2, task_title=检查一下项目开发到哪里了, progress=100, task_type=online
2026-02-05 00:18:32 - [de44b747] - [in executor/callback/callback_client.py:169] - INFO - Sending callback to http://executor_manager:8001/executor-manager/callback, body: {'task_id': 1, 'subtask_id': 2, 'task_title': '检查一下项目开发到哪里了', 'subtask_title': '检查一下项目开发到哪里了 - spec-bot', 'executor_name': 'wegent-task-admin-bea1c5e8068521b', 'progress': 100, 'status': 'FAILED', 'error_message': '${thinking.execution_failed} async execution: Command failed with exit code 1 (exit code: 1)\nError output: Check stderr output for details', 'result': {'thinking': [{'title': 'thinking.initialize_agent', 'next_action': 'continue'}, {'title': 'thinking.execution_failed', 'next_action': 'continue', 'details': {'execution_type': 'async execution', 'error_message': 'Command failed with exit code 1 (exit code: 1)\nError output: Check stderr output for details'}}], 'blocks': []}, 'task_type': 'online'}
2026-02-05 00:18:32 - [de44b747] - [in executor/agents/base.py:127] - INFO - Reporting progress: 100%, status: FAILED, message: ${thinking.execution_failed} async execution: Command failed with exit code 1 (exit code: 1)
Error output: Check stderr output for details, result: {'thinking': [{'title': 'thinking.initialize_agent', 'next_action': 'continue'}, {'title': 'thinking.execution_failed', 'next_action': 'continue', 'details': {'execution_type': 'async execution', 'error_message': 'Command failed with exit code 1 (exit code: 1)\nError output: Check stderr output for details'}}], 'blocks': []}, task_type: online
2026-02-05 00:18:32 - [de44b747] - [in executor/callback/callback_client.py:209] - INFO - Received response from callback: 200, {"status":"success","message":"Successfully processed callback for task 1"}
2026-02-05 00:18:32 - [de44b747] - [in executor/callback/callback_client.py:213] - INFO - Callback sent successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions