You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
interactive shell sends prompt_cache_key on chat-completions endpoints but zero exec doesn't #624
For comparison:
6. Run the same prompt via headless mode instead: zero exec -p "hello"
7. This succeeds and returns a normal response
Expected behavior
The interactive TUI should return a response just like zero exec does, since both use the same
provider config and the endpoint doesn't support prompt_cache_key. Ideally the client should
either omit prompt_cache_key for openai-compatible providers that don't advertise support for it,
or expose a config flag to disable it per-provider.
Actual behavior
The interactive TUI fails every request with:
provider request error: Validation: Unsupported parameter(s): prompt_cache_key
zero exec with an identical provider/model config works correctly and returns valid completions,
indicating the interactive shell's request path adds a parameter that the one-shot exec path does not.
Interactive TUI always creates a session and sets PromptCacheKey from the session ID.
The OpenAI-compatible chat-completions transport then serializes prompt_cache_key.
Strict gateways (NVIDIA NIM, etc.) reject unknown fields; plain zero exec usually has no session ID so it never sent the field — which is why exec worked and the TUI failed.
Fix
Omit prompt_cache_key for provider_kind: openai-compatible.
Keep it for official OpenAI so multi-turn prefix-cache routing still works.
Existing workaround still works: ZERO_DISABLE_PROMPT_CACHE_KEY=1.
Local workaround until this ships
export ZERO_DISABLE_PROMPT_CACHE_KEY=1
Then relaunch the interactive shell.
Thanks for the clear repro and exec vs TUI comparison — that made the session-ID path difference obvious.
Activity
PierrunoYT commentedon Jul 9, 2026
Working on it!
CengSin commentedon Jul 10, 2026
Set the environment variable
export ZERO_DISABLE_PROMPT_CACHE_KEY=1, then relaunch the interactive shell.gnanam1990 commentedon Jul 10, 2026
Fix PR opened
A fix is up in: #636
Root cause
PromptCacheKeyfrom the session ID.prompt_cache_key.zero execusually has no session ID so it never sent the field — which is why exec worked and the TUI failed.Fix
prompt_cache_keyforprovider_kind: openai-compatible.ZERO_DISABLE_PROMPT_CACHE_KEY=1.Local workaround until this ships
export ZERO_DISABLE_PROMPT_CACHE_KEY=1Then relaunch the interactive shell.
Thanks for the clear repro and exec vs TUI comparison — that made the session-ID path difference obvious.
fix(openai): omit prompt_cache_key for openai-compatible providers (T…