picoclaw/pkg/providers
I Putu Eddy Irawan ee5b61884a fix: migration ModelName, reasoning_content, shell regex, loop boundary
1. migration.go: Set ModelName to userModel when provider matches so
   GetModelConfig(userModel) can find the entry. Previously the migration
   created entries with the provider name as ModelName (e.g. "moonshot")
   but lookup used the model name (e.g. "k2p5"), causing "model not found".

2. openai_compat/provider.go: Preserve reasoning_content in conversation
   history. Thinking models (e.g. Kimi K2, DeepSeek-R1) return
   reasoning_content which must be echoed back. Without it, APIs return
   400: "thinking is enabled but reasoning_content is missing".

3. shell.go: Fix deny pattern regex for format/mkfs/diskpart to use
   (?:^|\s) instead of \b to avoid matching --format flags.
   Fix path extraction regex to use submatch to avoid matching flags
   like -rf as paths.

4. loop.go: Adjust forceCompression mid-point to avoid splitting
   tool-call/result message pairs, which causes API errors.
2026-03-01 08:44:15 +07:00
..
anthropic fix: cache system prompt with mtime-based auto-invalidation (#607) 2026-02-25 15:27:45 +08:00
openai_compat fix: migration ModelName, reasoning_content, shell regex, loop boundary 2026-03-01 08:44:15 +07:00
protocoltypes feat: Introduce LLM reasoning fields to LLM responses and enable routing reasoning output to dedicated channels. 2026-02-27 16:58:42 +08:00
antigravity_provider.go refactor: cleanup dead code and turn on dead code detection in CI (#515) 2026-02-24 21:52:25 +08:00
antigravity_provider_test.go fix(antigravity): normalize tool calls to avoid empty function names 2026-02-17 20:05:35 +05:30
claude_cli_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_cli_provider_integration_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_cli_provider_test.go Merge branch 'main' into fix-formatting 2026-02-20 20:02:53 +02:00
claude_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_provider_test.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
codex_cli_credentials.go feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
codex_cli_credentials_test.go enable dogsled 2026-02-25 21:14:19 +11:00
codex_cli_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_cli_provider_integration_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_cli_provider_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_provider.go Merge pull request #617 from Zhaoyikaiii/fix/repeated-context-reprocessing 2026-02-25 19:51:23 +08:00
codex_provider_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
cooldown.go style: fix gofmt formatting in cooldown files 2026-02-13 12:26:44 -03:00
cooldown_test.go style: fix gofmt formatting in cooldown files 2026-02-13 12:26:44 -03:00
error_classifier.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
error_classifier_test.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
factory.go Merge pull request #677 from yinwm/refactor/model-to-model-name 2026-02-24 19:05:40 +08:00
factory_provider.go fix(providers): support per-model request_timeout in model_list (#733) 2026-02-26 19:08:19 +11:00
factory_provider_test.go fix(providers): support per-model request_timeout in model_list (#733) 2026-02-26 19:08:19 +11:00
factory_test.go chore: update Claude model references to claude-sonnet-4.6 2026-02-20 12:15:04 +08:00
fallback.go fix(providers): support lookup-based fallback candidate resolution 2026-02-26 23:50:33 +08:00
fallback_test.go fix(providers): support lookup-based fallback candidate resolution 2026-02-26 23:50:33 +08:00
github_copilot_provider.go enable whitespace 2026-02-25 21:31:07 +11:00
http_provider.go fix(providers): support per-model request_timeout in model_list (#733) 2026-02-26 19:08:19 +11:00
legacy_provider.go fix:Openrouter in providers and modellist 2026-02-25 14:44:49 +08:00
model_ref.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
model_ref_test.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
tool_call_extract.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
toolcall_utils.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
types.go fix: cache system prompt with mtime-based auto-invalidation (#607) 2026-02-25 15:27:45 +08:00