-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Description
I couldn't expand a task with the expand tool while using codex-cli provider, regardless of trying via command line or MCP server.
Steps to Reproduce
- set your provider setting to be codex-cli.
- run task-master expand --id=[your task id]
Expected Behavior
It should have successfully create some subtasks for the given main task.
Actual Behavior
It complains about missing some properties
Screenshots or Logs
|_ | _ | | __ | / | __ _ | | ___ _ __
| |/ / __| |/ / | |\/| |/ _ / __| / _ \ '|
| | (| _ \ < | | | | (| _ \ || __/ |
||_,|/|_\ || ||_,|/___|_|
Task Master v0.40.1
[tag] master
Expanding task 7...
[INFO] Reading tasks from .taskmaster\tasks\tasks.json
[INFO] Expanding task 7:
[INFO] Looking for complexity report at: .taskmaster\reports\task-complexity-report.json
[INFO] Complexity report not found. Skipping complexity check.
[INFO] Using default number of subtasks: 5
[INFO] Using standard prompt generation for task 7.
Generating 5 subtasks...
(repeats multiple times)
[ERROR] [codex-cli] Error event: unexpected status 400 Bad Request:
{
"error": {
"message": "Invalid schema for response_format 'codex_output_schema': In context=('properties', 'subtasks', 'items'), 'required' is required to be supplied and to be an array including every key in properties. Missing 'dependencies'.",
"type": "invalid_request_error",
"param": "text.format.schema",
"code": "invalid_json_schema"
}
}
[ERROR] [codex-cli] Turn failed: unexpected status 400 Bad Request
[ERROR] [codex-cli] Process exited with code 1 after ~15s
[ERROR] Codex CLI object generation failed: Codex CLI exited with code 1
[WARN] Attempt 1 failed for role main (generateObject / codex-cli)
[ERROR] Max retries reached for role main
[ERROR] Service call failed for role main (Provider: codex-cli, Model: gpt-5.2)
(repeats similar error sequence for roles: fallback, research β total repeats: several times)
[WARN] Attempt 1 failed for role fallback (generateObject / codex-cli)
[ERROR] Max retries reached for role fallback
[ERROR] Service call failed for role fallback (Provider: codex-cli, Model: gpt-5.1-codex-max)
[WARN] Attempt 1 failed for role research (generateObject / codex-cli)
[ERROR] Max retries reached for role research
[ERROR] Service call failed for role research (Provider: codex-cli, Model: gpt-5.2)
[ERROR] Error during AI call or parsing for task 7
[ERROR] Error expanding task 7
Error expanding task 7: Codex CLI exited with code 1
Environment
- Task Master version: v0.40.1
- Node.js version: 25.2.1
- Operating system: Microsoft Windows 11 Home 10.0.26200 26200
- IDE (if applicable): VScode
Additional Context
I tried switching node version a bit to older ones, namely 22.x.x and 24.x.x, but no luck.
I am also aware of the JSON schema issue discussed in #1522, and I also suffered the exact problem in v0.40.0, and now another schema thing haunts me now.
Metadata
Metadata
Assignees
Labels
Projects
Status