Skip to content

workflow-context.sh add fails with '$3: unbound variable' on single-file arg #959

@ryanrozich

Description

@ryanrozich

During /oneshot ADV-1075, calling 'workflow-context.sh add thoughts/shared/research/.md' (a single file path) failed with 'workflow-context.sh: line 149: $3: unbound variable'. The 'add' subcommand appears to require a 3rd positional arg but the usage string only documents '{init|add|recent|...}'. Expected: 'add ' registers a research/plan doc in .catalyst/.workflow-context.json. Observed: hard error under 'set -u'. Either make $3 optional or document the required arg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-submittedAuto-filed by catalyst feedback scriptoneshotFiled during /oneshot run

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions