Skip to content

fix: ban array indexing in monitoring scripts — use explicit mapping #902

@JeremyDev87

Description

@JeremyDev87

Purpose

zsh arrays are 1-indexed, bash arrays are 0-indexed. Using arrays in monitoring scripts caused wrong issue mapping and deletion of valid RESULT.json files.

Solution

Never use array indexing. Always use explicit "N:value" string mapping:

# BANNED
EXPECTED=("#888" "#811")
${EXPECTED[$IDX]}

# REQUIRED
for PANE_INFO in "1:#888" "2:#811"; do
  N="${PANE_INFO%%:*}"
  EXP="${PANE_INFO##*:}"
done

Add to taskMaestro SKILL.md and parallel-orchestrator agent.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixsub-issue상위 이슈의 하위 작업

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions