Skip to content

fix(ci): workflow.ts loadFocusPrompt null ref + E2E squad name fixture (blocking squads log PR #712) #715

@agents-squads

Description

@agents-squads

Problem

PR #712 (squads log command) has 2 failing CI tests that block merge. These are regressions unrelated to the squads log feature itself.

Failures

1. test/lib/workflow.test.ts — 5 tests failing

TypeError: Cannot read properties of undefined (reading 'match') at loadFocusPrompt src/lib/workflow.ts:73:25

loadFocusPrompt calls .match() on an undefined value at line 73. Fix: add null check before .match().

2. test/e2e/first-run.e2e.test.ts — 1 test failing

AssertionError: expected [ 'company', 'demo', ...(3) ] to deeply equal [ 'company', 'intelligence', ...(2) ]

Squad name fixture is stale — test expects squads that no longer exist in squads init output. Fix: update fixture to match current init output.

Why it matters

squads log (PR #712) is a Tier 1 observability improvement independent of the v0.3.0 release. It cannot merge until these CI failures are fixed.

Dispatch

Assign to cli-lead or contributor familiar with workflow.ts.

Detected by ops-worker CI scan 2026-03-31.

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