Skip to content

taste learning blocked on BYOK despite docs saying it's local-only that disables push/pull #1190

Backlog

Description

@sinnersruo-dot

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

  1. Use a BYOK provider model as the session model (here: deepseek/deepseek-v4-flash-vision-exp).
  2. Ensure taste learning is enabled: tasteLearning: true in .commandcode/settings.json (project scope).
  3. Ask the agent to record a preference (call the taste tool), or let a run end so the automatic learner fires.
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions