Skip to content

Preserve native LLM tool context#27116

Merged
kitlangton merged 5 commits into
devfrom
fix/llm-package-native-fixes
May 12, 2026
Merged

Preserve native LLM tool context#27116
kitlangton merged 5 commits into
devfrom
fix/llm-package-native-fixes

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • pass tool call id/name into @opencode-ai/llm tool execute handlers
  • allow LLMEvent.stepFinish / requestFinish constructors to accept plain usage input
  • cover both behaviors with focused package tests

Verification

  • cd packages/llm && bun typecheck
  • cd packages/llm && bun run test -- test/schema.test.ts test/tool-runtime.test.ts test/generate-object.test.ts
  • prettier check on changed package files
  • git diff --check
  • pre-push root bun turbo typecheck

@kitlangton kitlangton marked this pull request as ready for review May 12, 2026 20:16
@kitlangton kitlangton merged commit dd14413 into dev May 12, 2026
10 checks passed
@kitlangton kitlangton deleted the fix/llm-package-native-fixes branch May 12, 2026 20:17
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