Skip to content

deps: bump geny-executor 2.0.3 → 2.0.4 (Claude Code multi-turn stdin)#816

Merged
CocoRoF merged 1 commit into
mainfrom
fix/executor-2.0.4-multiturn-stdin
May 19, 2026
Merged

deps: bump geny-executor 2.0.3 → 2.0.4 (Claude Code multi-turn stdin)#816
CocoRoF merged 1 commit into
mainfrom
fix/executor-2.0.4-multiturn-stdin

Conversation

@CocoRoF
Copy link
Copy Markdown
Owner

@CocoRoF CocoRoF commented May 19, 2026

Summary

Pulls in geny-executor 2.0.4 which fixes the multi-turn stdin bug — every second turn of a Claude Code (CLI) Stage-6 session was failing with Error: Expected message role 'user', got 'assistant'.

The executor's build_stream_json_stdin now flattens canonical Anthropic-style multi-turn message history into a single synthetic type:user envelope. The CLI's stream-json input grammar strictly rejects envelopes carrying an embedded assistant / tool role; the executor owns the translation so hosts can keep sending the canonical multi-turn list shape regardless of which provider is wired to Stage 6.

Executor PR: CocoRoF/geny-executor#206
PyPI: https://pypi.org/project/geny-executor/2.0.4/

Test plan

  • Executor: 189/189 tests/llm_client/ pass, 3 new regression guards for multi-turn flattening
  • Manual on prod: VTuber session with env using claude_code_cli provider → tool-call → tool-result iteration completes without "Expected message role 'user'" error

🤖 Generated with Claude Code

…din)

2.0.4 fixes ``build_stream_json_stdin`` to flatten Anthropic-style
multi-turn message history into a single synthetic ``type:user``
envelope. Without this, every second turn of a Claude Code (CLI)
Stage-6 session failed with::

  Error: CLI '/usr/bin/claude' exited with code 1:
  Error: Expected message role 'user', got 'assistant'

— the CLI's stream-json input grammar rejects envelopes carrying an
embedded assistant / tool role. The executor now owns the
translation so hosts can keep sending the canonical Anthropic-style
multi-turn list shape regardless of which provider is wired up to
Stage 6.

See CocoRoF/geny-executor#206 for the full root-cause + design.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CocoRoF CocoRoF merged commit cdb0e7a into main May 19, 2026
1 check passed
@CocoRoF CocoRoF deleted the fix/executor-2.0.4-multiturn-stdin branch May 19, 2026 08:15
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.

1 participant