Skip to content

Emit LLM stream lifecycle events#26971

Merged
kitlangton merged 1 commit into
devfrom
fix/llm-emit-lifecycle-events
May 12, 2026
Merged

Emit LLM stream lifecycle events#26971
kitlangton merged 1 commit into
devfrom
fix/llm-emit-lifecycle-events

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • emit step/text/reasoning lifecycle events from native LLM protocol streams
  • teach tool-stream helpers to emit tool input start/end events consistently
  • update provider and tool-runtime tests to enforce lifecycle event ordering

Verification

  • cd packages/llm && bun typecheck
  • cd packages/llm && bun run test -- test/tool-runtime.test.ts test/tool-stream.test.ts test/provider/openai-chat.test.ts test/provider/openai-compatible-chat.test.ts test/provider/openrouter.test.ts test/provider/openai-responses.test.ts test/provider/anthropic-messages.test.ts test/provider/gemini.test.ts test/provider/bedrock-converse.test.ts
  • bunx prettier --check
  • git diff --check HEAD~1..HEAD

@kitlangton kitlangton merged commit 8030a6c into dev May 12, 2026
10 of 11 checks passed
@kitlangton kitlangton deleted the fix/llm-emit-lifecycle-events branch May 12, 2026 01:31
leohenon pushed a commit to leohenon/opencode-vim that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant