Skip to content

codex hooks config is generated with invalid TOML schema #49

Description

@EricDasha

After installing code-abyss v4.7.1 for Codex on Windows, running codex fails:

Error loading config.toml: invalid type: map, expected a sequence
in `hooks`

The generated ~/.codex/config.toml contains:

[hooks.SessionStart]
timeout = 10
command = "bash \"C:/Users/Admin/.codex/skills/indexing-code/hooks/common/session-init.sh\""
matcher = "startup|resume"

[hooks.PreToolUse]
timeout = 5
command = "bash \"C:/Users/Admin/.codex/skills/indexing-code/hooks/common/pre-edit-check.sh\""
matcher = "Bash|shell"

But Codex expects array-style hooks:

[[hooks.SessionStart]]
matcher = "startup|resume"

[[hooks.SessionStart.hooks]]
type = "command"
command = "bash \"C:/Users/Admin/.codex/skills/indexing-code/hooks/common/session-init.sh\""
timeout = 10

[[hooks.PreToolUse]]
matcher = "Bash|shell"

[[hooks.PreToolUse.hooks]]
type = "command"
command = "bash \"C:/Users/Admin/.codex/skills/indexing-code/hooks/common/pre-edit-check.sh\""
timeout = 5

Could you update the Codex installer to generate the new hooks schema?

Also, on Windows, command = "bash ..." may fail if Git Bash is not in PATH, so command_windows support would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions