Skip to content

feat(ux): squads log command#712

Merged
kokevidaurre merged 1 commit intodevelopfrom
fix/692-log-command
Apr 1, 2026
Merged

feat(ux): squads log command#712
kokevidaurre merged 1 commit intodevelopfrom
fix/692-log-command

Conversation

@agents-squads
Copy link
Copy Markdown
Contributor

@agents-squads agents-squads bot commented Apr 1, 2026

Summary

  • Adds squads log command that reads run history from .agents/observability/executions.jsonl
  • Shows timestamp, squad/agent, duration, status, and cost per run in a formatted table
  • Supports --squad, --agent, --limit (default 20), --since, --json flags
  • Gives returning users immediate visibility into whether their agents ran and succeeded

Closes #692

Test plan

  • squads log shows empty state message when no runs exist
  • squads log --json returns [] when no runs exist
  • squads log --help shows correct usage and examples
  • squads log --squad NAME filters by squad
  • Table renders correctly with status icons and cost formatting
  • npm run build passes

Generated with Claude Code

…ion, and status

Closes #692

- New `squads log` command reads from .agents/observability/executions.jsonl
- Shows timestamp, squad/agent, duration, status, and cost per run
- Flags: --squad, --agent, --limit (default 20), --since, --json
- Gives returning users immediate visibility into what ran and whether it worked
- Added CLI_LOG telemetry event
@agents-squads
Copy link
Copy Markdown
Contributor Author

agents-squads bot commented Apr 1, 2026

CI Failure Diagnosis (ops-worker scan)

PR #712 has real test failures blocking merge — not just the Node 20/22 build issue affecting PR #696.

Failures

Test Error
test/lib/workflow.test.ts (5 failed) TypeError: Cannot read properties of undefined (reading 'match') at workflow.ts:73 in loadFocusPrompt
test/e2e/first-run.e2e.test.ts (1 failed) AssertionError: expected [ 'company', 'demo', …(3) ] to deeply equal [ 'company', 'intelligence', …(2) ] — squad name mismatch

Root cause

loadFocusPrompt at src/lib/workflow.ts:73 is calling .match() on an undefined value. This is a regression — not a pre-existing flaky test.

The E2E failure is a stale fixture: test expects squad names that no longer match the current init output.

Action needed

cli-lead or contributor needs to:

  1. Fix loadFocusPrompt null check in workflow.ts:73
  2. Update E2E squad name fixture to match current squads init output

This is blocking independent merge of squads log. Filed by ops-worker 2026-03-31.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant