Skip to content

Codex: description: exceeds maximum length of 1024 characters #230

Closed

Description

@zeusihere

OpenAI Codex CLI (v0.116.0)
When running Codex CLI, it prompts: .codex/skills/gstack/SKILL.md: invalid description: exceeds maximum length of 1024 characters

Activity

  1. wmzhai commented on Mar 20, 2026

    @wmzhai

    I hit the same issue locally after reinstalling the latest main into Codex and was able to get a more precise repro.

    Environment:

    • gstack 0.9.0
    • Codex CLI 0.116.0

    Repro:

    1. Install/reinstall gstack for Codex with ./setup --host codex
    2. Run a minimal Codex command such as:
      codex exec "Use the gstack-review skill if available. In one short paragraph, tell me whether you can access it and what it is for. If it is unavailable, say unavailable." --json -s read-only
    3. Codex logs this during skill loading:
      failed to load skill /Users/diweiming/gstack/.agents/skills/gstack/SKILL.md: invalid description: exceeds maximum length of 1024 characters
      

    What I found:

    • The failing file is the generated root skill: .agents/skills/gstack/SKILL.md
    • Its frontmatter description is currently 1972 characters long
    • More specific generated skills like gstack-review still appear to load, but the root gstack skill itself does not load cleanly in Codex

    Expected:

    • Codex should be able to load the generated root gstack skill without validation errors

    Actual:

    • Codex rejects the root skill because the generated description exceeds its 1024-character limit

    Likely fix:

    • Truncate or otherwise rewrite the generated Codex description for the root gstack skill so it stays under Codex's 1024-character limit
  2. songlairui commented on Mar 20, 2026

    @songlairui

    I hit too

    ~/.claude/skills/gstack/.agents/skills/gstack/SKILL.md: invalid description: exceeds
      maximum length of 1024 characters
    
  3. Eddie0521 commented on Mar 20, 2026

    @Eddie0521

    the same
    .codex/skills/gstack/SKILL.md: invalid description: exceeds maximum length of 1024 characters

  4. garrytan commented on Mar 23, 2026

    @garrytan
    Owner

    Fixed in #346 (Wave 2 Codex Compatibility).

  5. loocor commented on Mar 23, 2026

    @loocor

    I’m increasingly reading bugs like this as evidence that metadata/frontmatter policy is part of the host integration contract, not just a one-off string-length fix.

    PR #364 / RFC #289 are mainly tackling the install/discovery/runtime side first, so they don’t resolve the Codex description cap by themselves:
    #364

    But this issue feels like a strong argument for the next phase too: generation should probably have an explicit per-host metadata/frontmatter profile alongside the path/install contract, so constraints like Codex’s description limit stop showing up as accidental breakage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions