Skip to content

fix: correct Slate adapter CLI flags + add integration tests#143

Merged
c-h- merged 1 commit intomainfrom
fix/issue-140-slate-integration-test
Mar 27, 2026
Merged

fix: correct Slate adapter CLI flags + add integration tests#143
c-h- merged 1 commit intomainfrom
fix/issue-140-slate-integration-test

Conversation

@c-h-
Copy link
Copy Markdown
Collaborator

@c-h- c-h- commented Mar 13, 2026

Fixes #140 (follow-up)

Changes

  • Fix -q flag usage (prompt as value of -q, not separate -p flag)
  • Add real integration tests against Slate binary (v1.0.15)
  • Document known bug: -q mode produces empty stdout (silent LLM skip)
  • Session tracking works via PID metadata as workaround
  • 569 tests passing (13 new, 2 skipped when no API key)

Known limitation

Slate v1.0.15 -q (non-interactive) mode exits 0 with empty output. Interactive mode works fine. This appears to be a TTY detection issue in Slate. Adapter handles this gracefully — session lifecycle tracked via PID, not stream output.

…loses #140)

Implement Slate adapter based on actual Slate CLI v1.0.15 research:
- Binary: `slate` (npm: @randomlabs/slate), not `slatecli`
- Prompt via `-q, --question <text>` (not `-p`)
- Structured output via `--output-format stream-json`
- Permission bypass via `--dangerously-set-permissions`
- Workspace via `-w, --workspace <path>`
- Resume via `--resume <session-id>` (not just `-c`)
- No --model flag (model configured via slate.json)

Documents confirmed bug: Slate v1.0.15 -q mode produces empty stdout
with exit 0 across all output formats. Adapter handles this gracefully
by tracking sessions via PID metadata rather than stream output.

Includes 29 unit tests + 8 integration tests (real CLI when available).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@c-h- c-h- force-pushed the fix/issue-140-slate-integration-test branch from c55d479 to 76e9f4a Compare March 27, 2026 14:49
@c-h- c-h- merged commit 5d1b72b into main Mar 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Slate harness — swarm-native coding agent via CLI + ACP

1 participant