denberek_obsidian-agent-fleet/src
zhaoming-mike 18742fd60e fix: pass Claude prompt via stdin to avoid ENAMETOOLONG on Windows
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>
2026-06-29 10:12:23 +08:00
..
adapters fix: pass Claude prompt via stdin to avoid ENAMETOOLONG on Windows 2026-06-29 10:12:23 +08:00
components release: 0.13.6 — code-quality cleanup (type-safety, assertions, confirm modal) 2026-06-14 13:09:03 -07:00
modals release: 0.13.6 — code-quality cleanup (type-safety, assertions, confirm modal) 2026-06-14 13:09:03 -07:00
services release: 0.15.0 — accurate per-turn cost tracking, channel follow-ups, Discord docs 2026-06-21 19:42:24 -07:00
utils release: 0.15.0 — accurate per-turn cost tracking, channel follow-ups, Discord docs 2026-06-21 19:42:24 -07:00
views release: 0.14.0 — Discord channel, channel targeting, reflection visibility, usage tracking, Enter-to-send 2026-06-19 23:22:07 -07:00
constants.ts release: 0.14.0 — Discord channel, channel targeting, reflection visibility, usage tracking, Enter-to-send 2026-06-19 23:22:07 -07:00
defaults.ts release: 0.15.0 — accurate per-turn cost tracking, channel follow-ups, Discord docs 2026-06-21 19:42:24 -07:00
fleetRepository.ts release: 0.15.0 — accurate per-turn cost tracking, channel follow-ups, Discord docs 2026-06-21 19:42:24 -07:00
main.ts release: 0.15.0 — accurate per-turn cost tracking, channel follow-ups, Discord docs 2026-06-21 19:42:24 -07:00
settingsTab.ts release: 0.14.0 — Discord channel, channel targeting, reflection visibility, usage tracking, Enter-to-send 2026-06-19 23:22:07 -07:00
types.ts release: 0.14.0 — Discord channel, channel targeting, reflection visibility, usage tracking, Enter-to-send 2026-06-19 23:22:07 -07:00
wikiKeeperTemplate.test.ts open-source: ship full TypeScript source + 0.13.2 2026-06-14 10:59:26 -07:00
wikiKeeperTemplate.ts release: 0.13.4 — warning cleanup (trashFile, builtin-modules, unused vars) 2026-06-14 11:39:05 -07:00