Skip to content

fix(agent-spawn): fall back to stdin for large prompts#307

Open
poe-code-agent[bot] wants to merge 1 commit into
mainfrom
fix/issue-306-stdin-fallback
Open

fix(agent-spawn): fall back to stdin for large prompts#307
poe-code-agent[bot] wants to merge 1 commit into
mainfrom
fix/issue-306-stdin-fallback

Conversation

@poe-code-agent
Copy link
Copy Markdown
Contributor

Summary

  • Add a 64 KiB prompt-size fallback to stdin for CLI spawn configs that support stdin mode.
  • Use the same fallback path in both buildSpawnArgs and spawn.
  • Cover large-prompt behavior with unit tests.

Fixes #306.

Tests

  • npm run test:unit -w @poe-code/agent-spawn -- packages/agent-spawn/src/agent-spawn.test.ts
  • npm run lint:types
  • npm run build -w @poe-code/agent-spawn
  • npm run lint:eslint -- packages/agent-spawn/src/spawn.ts packages/agent-spawn/src/agent-spawn.test.ts (passes with existing warnings in unrelated files)
  • npm test (pre-push hook)

Copy link
Copy Markdown
Contributor Author

@poe-code-agent poe-code-agent Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Auto-fallback to stdin when prompt exceeds ARG_MAX

0 participants