Repository navigation
Description
Summary
taste learning is refused for any BYOK model, but the docs say BYOK keeps local taste learning working and only local-only mode disables cmd taste push/pull.
Expected Behavior
The preference is recorded locally in the project taste files, matching byok.md: > What stops working, by design: Command Code catalog (gateway) models, /share, /usage, the server-proxied web_search/web_fetch tools, cmd taste push/pull, and backend agent generation. Your BYOK providers, and everything local keep working exactly as before. product-help.md also states taste processing runs on the user's codebase and stores learning data locally only.
Actual Behavior
The tool returns: Taste learning is unavailable on BYOK - switch to a Command Code model with /model or cmd --model first. No preference is recorded, even though tasteLearning is true in .commandcode/settings.json. In harness/dist/index.js, createTasteTool checks isByok() BEFORE the enablement check and returns early (~line 72127), so the learning toggle can never take effect for BYOK models. The automatic post-run learner is gated the same way: tasteLearningEnabled = async () => !isByok({ model: activeModel() }) && isTasteLearningEnabled({...}) (~line 71476). That message reads as a billing restriction, which contradicts the docs.
Steps to reproduce the issue
- Use a BYOK provider model as the session model (here: deepseek/deepseek-v4-flash-vision-exp).
- Ensure taste learning is enabled: tasteLearning: true in .commandcode/settings.json (project scope).
- Ask the agent to record a preference (call the taste tool), or let a run end so the automatic learner fires.
- Observe: the tool returns the BYOK unavailable notice and no taste file changes.
Command Code Version
0.1.65
Operating System
Windows
Terminal/IDE
Desktop
Shell
cmd.exe
Session file (optional)
No response
Fix prompt (optional)
Either drop !isByok(...) from the local learning path (keep the guard only on the remote push/pull path), or check the enablement toggle first in createTasteTool and have tasteLearningEnabled stop gating on isByok. Also update the notice text so it distinguishes local-only mode from a BYOK model.
Additional context
The automatic post-run learner keeps writing to .commandcode/taste/ in this setup, so local learning itself is clearly fine; only the taste tool and the BYOK-gated paths refuse. This is not local-only mode: cmd --local-only was not in use, and no CMD_LOCAL_ONLY env var or localOnly key in config.json. Desktop build: C:\Program Files...\resources\app\package.json says @commandcode/desktop 0.1.65; the bundled harness at node_modules@commandcode\harness\dist\index.js is the file referenced above.
Activity