Skip to content

Ignore unusable LLM keys for workflow bootstrap#398

Merged
marccampbell merged 2 commits into
mainfrom
debug-openai-default-for-cron-workflows
Jun 10, 2026
Merged

Ignore unusable LLM keys for workflow bootstrap#398
marccampbell merged 2 commits into
mainfrom
debug-openai-default-for-cron-workflows

Conversation

@marccampbell

Copy link
Copy Markdown
Contributor

Summary

  • skip blank external LLM keys when selecting OpenClaw onboard/auth defaults
  • skip exporting blank external LLM key env vars while preserving blank Ollama support
  • resolve workflow-created claws to the active usable hub LLM key/model when no workflow model is configured
  • repair empty model/key resolution during replicated bootstrap for already-created claws

Root cause

Cron workflow claws can be created with empty default_model and llm_key when the workspace/workflow does not specify them. If the hub has a stale blank OpenAI key, bootstrap still selected/exported it, leaving OpenClaw to ask for OpenAI auth even though the workflow never requested OpenAI.

Tests

  • go test ./pkg/hub
  • make test

@greptile-apps

greptile-apps Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "Ignore unusable LLM keys for workflow bo..." | Re-trigger Greptile

Comment thread pkg/hub/server.go
@greptile-apps

greptile-apps Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "Keep fallback LLM key and model aligned" | Re-trigger Greptile

@marccampbell marccampbell merged commit 891e4c4 into main Jun 10, 2026
11 checks passed
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