fix: correct Slate adapter CLI flags + add integration tests#143
Merged
Conversation
…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>
c55d479 to
76e9f4a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #140 (follow-up)
Changes
-qflag usage (prompt as value of-q, not separate-pflag)-qmode produces empty stdout (silent LLM skip)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.