mirror of
https://github.com/denberek/obsidian-agent-fleet.git
synced 2026-07-22 07:47:06 +00:00
The Claude Code adapter passed the full prompt (~44 KB with skills, context, and memory) as a command-line argument via `-p <prompt>`. On Windows, CreateProcessW has a 32,767-character command-line limit, causing `spawn ENAMETOOLONG` for any agent with multiple skills or substantial context (e.g. Wiki Keeper). Claude Code supports reading the prompt from stdin when `-p` is used without a positional prompt argument — the same pattern the Codex adapter already uses with `-`. Changes: - src/adapters/claudeCodeAdapter.ts: remove opts.prompt from args, add stdinPayload to the return value - src/adapters/types.ts: update ExecInvocation.stdinPayload comment - src/adapters/claudeCodeAdapter.test.ts: update buildExec test expectations (prompt via stdinPayload, not in args) Tested: all 252 tests pass. Manually verified on Windows 10 with Claude Code CLI. Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| adapters | ||
| components | ||
| modals | ||
| services | ||
| utils | ||
| views | ||
| constants.ts | ||
| defaults.ts | ||
| fleetRepository.ts | ||
| main.ts | ||
| settingsTab.ts | ||
| types.ts | ||
| wikiKeeperTemplate.test.ts | ||
| wikiKeeperTemplate.ts | ||