Skip to content

Feature/agent refactor - #37

Merged
Louis-7 merged 12 commits into
mainfrom
feature/agent-refactor
Sep 17, 2026
Merged

Louis-7 merged 12 commits into
mainfrom
feature/agent-refactor

Conversation

@Louis-7

@Louis-7 Louis-7 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Pull Request Template

Description

Use ai-skd to manage providers.

Related Issue

Closes # (issue number)

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Other

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

The legacy ollama-ai-provider returns LanguageModelV1, which AI SDK 7
rejects at runtime. Switch to ollama-ai-provider-v2 and enable strict
Ollama API compatibility.
Agent reasoning was read from config but never forwarded to the AI SDK.
Map enabled to medium effort and disabled to none so providers (including
Ollama think) receive the correct setting.
AI SDK 7 rejects system roles in messages by default. Hotkey agents
with instructions therefore produced no response. Map history without
system roles and send instructions as a separate option.
AI SDK v7 emits HTTP failures as stream error parts instead of throwing, so the chat completed as if the reply succeeded. Forward the provider message (with status code) as an error bubble and align the icon to the first line of wrapped text.
@Louis-7
Louis-7 merged commit 0c91053 into main Sep 17, 2026
4 checks passed
@Louis-7
Louis-7 deleted the feature/agent-refactor branch September 17, 2026 01:58
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