Skip to content

bug: "'additionalProperties' is required to be supplied and to be false." when parse-prd #1601

@Farley-Chen

Description

@Farley-Chen

Description

When using Task Master v0.42 in a project where the three configured models (main, research, and fallback) are all set to gpt5.2, running PRD parsing fails. The process fails during Codex CLI object generation and exits with a non-zero status code.

Steps to Reproduce

  1. Initialize Task Master in a project:

    task-master init
  2. Configure the three models to all use gpt5.2:

    • main: gpt5.2
    • research: gpt5.2
    • fallback: gpt5.2
  3. Run PRD parsing:

    task-master parse-prd .\prd.md

Expected Behavior

task-master parse-prd .\prd.md should successfully parse the PRD and generate a structured JSON task list, then exit successfully.

Actual Behavior

The command fails with an API error (400 Bad Request). Codex CLI exits with code 1, causing Task Master to fail the PRD parsing step.

Screenshots or Logs

[ERROR] [codex-cli] Error event: unexpected status 400 Bad Request: {
  "error": {
    "message": "Invalid schema for response_format 'codex_output_schema': In context=('properties', 'metadata', 'anyOf', '0'), 'additionalProperties' is required to be supplied and to be false.",
    "type": "invalid_request_error",
    "param": "text.format.schema",
    "code": "invalid_json_schema"
  }
}
[ERROR] [codex-cli] Turn failed: unexpected status 400 Bad Request: {
  "error": {
    "message": "Invalid schema for response_format 'codex_output_schema': In context=('properties', 'metadata', 'anyOf', '0'), 'additionalProperties' is required to be supplied and to be false.",
    "type": "invalid_request_error",
    "param": "text.format.schema",
    "code": "invalid_json_schema"
  }
}
[ERROR] [codex-cli] Process exited with code 1 after 17156ms
[ERROR] Codex CLI object generation failed: Codex CLI exited with code 1 {"error":{"name":"AI_APICallError","url":"codex-cli://exec","requestBodyValues":{"prompt":"You are an AI assistant specialized in analyzing Product Requirements Documents (PRDs) and generating a structured, logically ordered, dependency-aware and sequenced list of development tasks in JSON "},"isRetryable":false,"data":{"exitCode":1,"stderr":"Warning: no last agent message; wrote empty content to C:\\Users\\31200\\AppData\\Local\\Temp\\codex-cli-qoOKJt\\last-message.txt\n","promptExcerpt":"You are an AI assistant specialized in analyzing Product Requirements Documents (PRDs) and generating a structured, logically ordered, dependency-aware and sequenced list of development tasks in JSON "}}}
[WARN] Attempt 1 failed for role main (generateObject / codex-cli): Codex CLI API error during object generation: Codex CLI exited with code 1

Environment

  • Task Master version: v0.42
  • Node.js version: v22.19.0
  • Operating system: Windows 11
  • IDE (if applicable): PowerShell

Additional Context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions