Skip to content

Fix TaskHub OpenCode model override handling - #11

Open
muqiao215 wants to merge 1 commit into
mainfrom
fix/taskhub-opencode-model-override
Open

Fix TaskHub OpenCode model override handling#11
muqiao215 wants to merge 1 commit into
mainfrom
fix/taskhub-opencode-model-override

Conversation

@muqiao215

Copy link
Copy Markdown
Owner

Summary

  • preserve explicit OpenCode task models during TaskHub runtime pre-resolution
  • add a regression test for tasks that target OpenCode while the foreground runtime uses another provider

Problem

On hosts like racknerd-436b0c0, foreground opencode is usable, but background tasks fail with error:opencode_default_model_unresolved even when the task entry already carries model: zhipuai/glm-5.1.

Root cause: TaskHub._run() special-cased opencode by calling resolve_runtime_provider_target("opencode", ""), which discarded the explicit task model and forced default-model discovery.

Testing

  • pytest -q tests/tasks/test_hub.py tests/cli/test_service_extended.py -q

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